Fresh features from the #1 AI-enhanced learning platform.Try it free
Fresh features from the #1 AI-enhanced learning platformCrush your year with the magic of personalized studying.Try it free
Question

a) Find a recurrence relation for the number of ways to lay out a walkway with slate tiles if the tiles are red, green, or gray, so that no two red tiles are adjacent and tiles of the same color are considered indistinguishable. b) What are the initial conditions for the recurrence relation in part (a)? c) How many ways are there to lay out a path of seven tiles as described in part (a)?

Solution

Verified
Step 1
1 of 4

(a) Let ana_n represent the number of ways to lay out a walkway with nn slate tiles if the tiles are red, green or gray, no two red tiles are adjacent and tiles of the same color are considered indistinguishable.

First case \textbf{First case } The right-most tile is green, then the walkway still needs n1n-1 slate tiles and there are then an1a_{n-1} ways to tile the remaining walkway according to the specifications.

Second case \textbf{Second case } The right-most tile is gray, then the walkway still needs n1n-1 slate tiles and there are then an1a_{n-1} ways to tile the remaining walkway according to the specifications.

Third case \textbf{Third case } The right-most tile is red and the tile next to it is green, then the walkway still needs n2n-2 slate tiles and there are then an2a_{n-2} ways to tile the remaining walkway according to the specifications.

Fourth case \textbf{Fourth case } The right-most tile is red and the tile next to it is gray, then the walkway still needs n2n-2 slate tiles and there are then an2a_{n-2} ways to tile the remaining walkway according to the specifications.

Adding the number of sequences of all three cases, we then obtain:

an=an1+an1+an2+an2=2an1+2an2a_n=a_{n-1}+a_{n-1}+a_{n-2}+a_{n-2}=2a_{n-1}+2a_{n-2}

Create an account to view solutions

Create an account to view solutions

Recommended textbook solutions

Discrete Mathematics and Its Applications 7th Edition by Kenneth Rosen

Discrete Mathematics and Its Applications

7th EditionISBN: 9780073383095Kenneth Rosen
4,283 solutions
Discrete Mathematics 8th Edition by Richard Johnsonbaugh

Discrete Mathematics

8th EditionISBN: 9780321964687 (2 more)Richard Johnsonbaugh
4,246 solutions
Discrete Mathematics and Its Applications 8th Edition by Kenneth Rosen

Discrete Mathematics and Its Applications

8th EditionISBN: 9781259676512Kenneth Rosen
4,397 solutions
Discrete Mathematics with Applications 5th Edition by Susanna S. Epp

Discrete Mathematics with Applications

5th EditionISBN: 9781337694193Susanna S. Epp
2,641 solutions

More related questions

1/4

1/7