OFFSET
1,3
COMMENTS
A generalization of A004001.
LINKS
J. Grytczuk, Another variation on Conway's recursive sequence, Discr. Math. 282 (2004), 149-161.
FORMULA
PROG
(PARI) v=vector(150, j, 1); for(n=3, 150, g=v[v[v[v[n-1]]]]+v[n-v[v[v[n-1]]]]; v[n]=g); a(n)=v[n]
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 05 2004
STATUS
approved