Question

A sidewalk with n squares (in one long row) is to be painted. Each square will be painted red, blue, or yellow with the prope
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) C1 = 3 as there are 3 ways to colour 1 square.
C2 = 3*2 = 6 ways as adjascent squares cannot have the same colour
C3 = 3*2*2 = 12 ways
C4 = 3*2*2*2 = 24 ways

b) Using the above same logic, the recursive formula here is computed as:

Cn = Cn-1 * (2), n greater or equal to 2. This is because the nth square can only have 2 colours and cannot have the same colour as the (n-1)th square.

c) Again from the above recursive formula, we can easily derive the closed formula for Cn as:

3 22-1 7t

This is the required closed formula here.

d) Checking by induction:

For n = 1, C1 = 3 which is true.

Now assuming that Ck = 3*2k-1 is true, Ck+1 = 3*2k-1*2 = 3*2k which is the formula,

Therefore proved by induction that the closed formula is correct here.

Add a comment
Know the answer?
Add Answer to:
A sidewalk with n squares (in one long row) is to be painted. Each square will be painted red, bl...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT