STEP 2 · 20 marks

STEP 2 1995 · Q2

Pure mathematics

I have nn fence posts placed in a line and, as part of my spouse’s birthday celebrations, I wish to paint them using three different colours red, white and blue in such a way that no adjacent fence posts have the same colours. (This allows the possibility of using fewer than three colours as well as exactly three.) Let rnr_n be the number of ways (possibly zero) that I can paint them if I paint the first and last post red and let sns_n be the number of ways that I can paint them if I paint the first post red but the last post either of the other two colours. Explain why rn+1=snr_{n+1}=s_n and find rn+snr_n+s_n. Hence find the value of rn+1+rnr_{n+1}+r_n for all n⩾1n\geqslant 1.

Prove, by induction, that

rn=2n−1+2(−1)n−13. r_n=\frac{2^{n-1}+2(-1)^{n-1}}{3}.

Find the number of ways of painting nn fence posts (where n⩾3n\geqslant 3) placed in a circle using three different colours in such a way that no adjacent fence posts have the same colours.

Read the questions freely. Sign in to check your answer, see the model answer and save your progress.