OFFSET
1,3
EXAMPLE
For n = 2 we have: 10 -> 01 -> 10; since the cycle started from the 0th iteration, a(2) = 0.
For n = 3 we have: 100 -> 000 -> 111 -> 111; since the cycle started from the 2nd iteration, a(3) = 2.
CROSSREFS
KEYWORD
nonn
AUTHOR
Angelo Rosso, Nov 03 2023
STATUS
approved