OFFSET
1,1
EXAMPLE
a(5) = 28, because 10 is the 5th composite, and 28 is the first composite with sum of digits equal to 10. - Michel Marcus, May 19 2014
PROG
(PARI) lista(nn) = {vn = vector(nn, i, i); vc = select(x->iscomp(x), vn); vsd = vector(#vc, i, sumdigits(vc[i])); for (i=1, #vc, print1(vc[select(x->(x==vc[i]), vsd, 1)[1]], ", "); ); } \\ Michel Marcus, May 19 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 15 2002
EXTENSIONS
More terms from Michel Marcus, May 19 2014
STATUS
approved