OFFSET
1,2
COMMENTS
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
MATHEMATICA
w = {1, 2, 2};
i = 3;
Do[
w = Join[w, Array[Length[w] + 1 &, w[[i++]]]];
, {n, 10}
];
w
PROG
(PARI) flargest(va, n) = {vsa = vecsort(va, , 12); for (k=1, #vsa, if (vsa[k] < n, return (vsa[k])); ); }
lista(nn) = {voa = [1]; for (n=2, nn, newoa = flargest(voa, n) + voa[n-1]; print1(newoa - voa[n-1], ", "); voa = concat(voa, newoa); ); } \\ Michel Marcus, Mar 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ivan Neretin, Mar 20 2015
EXTENSIONS
More terms from Michel Marcus, Mar 24 2015
STATUS
approved