OFFSET
1,2
FORMULA
a(5*a(n)-n) = a(n). Conjecture: Lim_inf a(n)/n = (5-sqrt(5))/10; Lim_sup a(n)/n = (5+sqrt(5))/10.
PROG
(PARI) {a(n)=local(A=vector(n), m=1); for(k=1, n, if(A[k]==0, A[k]=m; if(5*m-k<=#A, A[5*m-k]=m); m+=1)); A[n]}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Mar 11 2006
STATUS
approved