OFFSET
1,3
COMMENTS
Differs from A002024(n+1) from the first 8 on: there are only six "7", only seven "8", only eight "9" and "10" and "11" in the present sequence; from there on, n is repeated less than n-2 times. - M. F. Hasler, Feb 16 2014
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..1965
PROG
(PARI) lista(nn) = {va = vector(nn, i, (i==1) || (i==2)); ipos = 3; n = 2; while ((ipos <= nn), nbr = va[n] + va[n-1]; while (nbr && (ipos <= nn), va[ipos] = n; ipos++; nbr--); n++; ); for (i=1, nn, print1(va[i], ", ")); } \\ Michel Marcus, Feb 17 2014
(PARI) a=[1, 1]; for(n=2, 20, a=concat(a, vector(a[n]+a[n-1], j, n))); a \\ M. F. Hasler, Feb 17 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Aug 02 2007
STATUS
approved