OFFSET
1,1
LINKS
J. Grytczuk, Another variation on Conway's recursive sequence, Discr. Math. 282 (2004), 149-161.
FORMULA
a(A000045(n)-1) = n-4 for n>4.
PROG
(PARI) v=vector(1000, j, 1); for(n=3, 1000, g=v[v[v[n-1]]]+v[n-v[v[n-1]]]; v[n]=g); a(n)=sum(i=1, 3*n, if(v[i]-n, 0, 1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 05 2004
STATUS
approved