Question 145
The code setting of a cipher lock is established on an $n$-regular-polygon with vertices $A_1, A_2, \dots, A_n$: each vertex is assigned a number (0 or 1) and a color (red or blue), such that either the numbers or the colors on each pair of adjacent vertices are the same. We ask: How many code-sets can be realized for this lock?