11. (9th grade) In how many ways can the numbers $1,2,3,4,5,6$ be written in a row so that for any three consecutive numbers $a, b, c$, the quantity $a c-b^{2}$ is divisible by 7? Answer: 12.
Solution. Each subsequent member will be obtained from the previous one by multiplying by a certain fixed value (modulo 7). This value can only be 3 or 5. And the first term can be any, so there are 12 options in total.