Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

How many ternary strings of length six contain two consecutive 0's ?

Short Answer

Expert verified

There are 281 ternary strings of length six that contain two consecutive 0's.

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Given data

The person climbing the stairs can take one, two, or three stairs at a time.

02

Concept used of recurrence relation

A recurrence relation is an equation that recursively defines a sequence where the next term is a function of the previous terms (ExpressingFnas some combination ofFiwithi<n).

03

Find the number of ways person can climb

Let us use the recurrence relation a0=0a1=0,an=2an-1+2an-2+3n-2to derive a7 :

a0=0a1=0a2=2a1+2a1+32-2=0+0+1=1a3=2a2+2a1+33-2=2+2+3=5a4=2a3+2a2+34-2=10+2+9=21a5=2a4+2a3+35-2=42+10+27=79a6=2a5+2a4+36-2=158+42+81=281a0=0a1=0a2=2a1+2a1+32-2=0+0+1=1a3=2a2+2a1+33-2=2+2+3=5a4=2a3+2a2+34-2=10+2+9=21a5=2a4+2a3+35-2=42+10+27=79a6=2a5+2a4+36-2=158+42+81=281

Thus, there are 281 ways this person can climb a flight of eight stairs.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free