A circular disk is divided into n sectors, each shaped like a piece of pie and all meeting at the centre point of the disk. Each sector is to be painted either red, green or blue in such a way that no two adjacent sectors are painted the same colour. Let P(n) denote the number of distinct ways to paint the disk.
a) Find explicitly P(1), P(2), P(3). b) Find a recurrence relation for P(n) in terms of P(n-1) and P(n-2) for each integer n>3.
I've done part a, (3,6,6). But I'm stuck on how to approach part b. I've had trouble with finding recurrence relations in general, so a approach that I could apply in the future would also help. Thanks in advance!