2026-11-09

Problem — 2026-11-09

Medium

MediumCombinatorics

Twelve lamps stand evenly spaced around a circular plaza, so each lamp has exactly two neighbours. To save power, the city may switch on any set of lamps as long as no two neighbouring lamps are both on. The lamps are distinguishable (each has a fixed position), and the pattern with every lamp off counts. How many different on/off patterns are allowed?

Enter an integer

Show solution
For lamps in a straight line, let ana_n be the number of valid patterns of nn lamps. The last lamp is off (an−1a_{n-1} ways) or on with its neighbour off (an−2a_{n-2} ways), so an=an−1+an−2a_n=a_{n-1}+a_{n-2} with a1=2,a2=3a_1=2,a_2=3, giving 2,3,5,8,13,21,34,55,89,144,2332,3,5,8,13,21,34,55,89,144,233 for n=1,…,11n=1,\dots,11. On the circle, split on lamp 1. If it is off, lamps 22 to 1212 form a line of 1111: a11=233a_{11}=233. If it is on, lamps 22 and 1212 must be off and lamps 33 to 1111 form a line of 99: a9=89a_9=89. Total 233+89=322233+89=322.