Rosetta Problems

禁断の数列

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/527