OFFSET
1,2
COMMENTS
Starting with 1, each of the rest describes the previous number in a "digit + number_of_digits" manner. The odd-indexed digits are digits that appeared in the previous term, ordered by the first appearance. The even-indexed digits are how many times that digit appeared. [Edited by Michel Marcus, Oct 26 2021]
MATHEMATICA
NestList[FromDigits@Flatten@Tally@IntegerDigits@#&, 1, 30] (* Giorgos Kalogeropoulos, Oct 26 2021 *)
PROG
(PARI) lista(nn) = {my(v = vector(nn)); v[1] = 1; for (n=2, nn, my(vd = digits(v[n-1]), vu = Set(vd), vw = vector(#vu), pos=0, ss=""); for (i=1, #vd, if (!setsearch(Set(vw), vd[i]), pos++; vw[pos] = vd[i]); ); for (i=1, #vw, ss = concat(ss, vw[i]); ss = concat(ss, #select(x->(x==vw[i]), vd)); ); v[n] = eval(ss); ); v; } \\ Michel Marcus, Oct 26 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Adrian Lee (prof.adrian.lee(AT)gmail.com), May 07 2009
EXTENSIONS
More terms from Michel Marcus, Oct 26 2021
STATUS
approved