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:
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.
A sidewalk with n squares (in one long row) is to be painted. Each square will be painted red, bl...
specifically on finite i pmu r the number of objøcts or ways. Leave your answers in fornsiala form, such as C(3, 2) nporkan?(2) Are repeats poasib Two points each imal digits will have at least one xpeated digin? I. This is the oounting problem Al ancmher so ask yourelr (1) ls onder ipo n How many strings of four bexadeci ) A Compuir Science indtructor has a stack of blue can this i For parts c, d. and e, suppose...