OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10258 (first 371 terms from Reed Kelly)
EXAMPLE
a(5) = 2 so 1,2,3,4,5,1,2,3,4,5 is added to the end of the sequence at the fifth iteration.
MATHEMATICA
cr[n_] := Module[ { A = {1, 1, 2}, i, j }, For [ i = 3, i <= n, i++, A = Join[ A, Flatten[ Table[ Range[i], {A[[i]]} ]]]; ]; A ]
PROG
(PARI) a = vector(101, n, 1); m=0; for (n=1, 10, for (t=1, a[n], for (k=1, n, print1 (a[m++]=k", ")))) \\ Rémy Sigrist, Feb 09 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Reed Kelly, Feb 15 2007
STATUS
approved