OFFSET
0,7
EXAMPLE
For n = 1, when iterating with A353313, we obtain 1 -> 4 -> 9 -> 3 -> 1 -> etc, thus 1 itself is included in the closed cycle, and therefore a(1) = 0.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 14 2022
STATUS
approved