OFFSET
1,3
COMMENTS
For n>0, a(A060816(n))=0. - Dmitry Kamenetsky, Feb 14 2017
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
FORMULA
a(n) = (n-1+a(n-1)) mod (2*(n-1)). - Jon Maiga, Jul 09 2021
MAPLE
MATHEMATICA
nxt[{n_, a_}]:={n+1, If[a>=n, a-n, a+n]}; Transpose[NestList[nxt, {1, 1}, 60]][[2]] (* Harvey P. Dale, May 04 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Dmitry Kamenetsky, Feb 14 2017
STATUS
approved