Lights Out
Consider a grid. A cell is either ON or OFF. When a cell is selected, that cell and all cells connected to that cell by an edge are toggled on-off, off-on. See the diagram for the cases of selecting a corner cell, an edge cell or central cell in a grid that has all cells on (white).

The goal is to get every cell to be off simultaneously. This is not possible for all starting states. A state is solvable if, by a process of selecting cells, the goal can be achieved.
Let be the number of solvable states for a grid. You are given , , and .
Let and be the Fibonacci sequence and define
You are given , and .
Find . Give your answer modulo .
关灯
考虑一个的格阵,其中每一格有开或关两种状态。当某一格被选中时,这一格以及相邻格的状态会发生变化,若原本是开则变为关,若原本是关则变为开。下图展示了原本所有格均为开状态(表示为白色)的格阵在选中了一个角上的格、一个边上的格和一个中间的格后的情景。

从任意起始状态出发,并不是总能够将所有格变为关状态。如果能够做到,则称相应的起始状态为可解的。
记为格阵下可解起始状态的数目。已知,,,。
考虑斐波那契数列,,并记
已知,,。
求,并将你的答案对取余。
Gitalking ...