OFFSET
1,1
COMMENTS
The {b(n)} sequence is A084228. - N. J. A. Sloane, Jun 26 2014
Note that b(k)==0 (mod 3) for n>2.
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..107
FORMULA
Conjecture : a(n)/n^3 is bounded.
MATHEMATICA
k = 3; lst = {}; a = 3; While[k < 100000001, b = a + Total@ IntegerDigits@ a; If[b == a + 3, AppendTo[lst, k]; Print@ k]; a = b; k++]; lst (* Robert G. Wilson v, Jun 27 2014 *)
PROG
(PARI) upto(n)={my(L=List(), s=3, k=3); while(k<=n, my(t=sumdigits(s)); if(t==3, listput(L, k)); s+=t; k++); Vec(L)} \\ Andrew Howroyd, Oct 16 2024
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Jun 21 2003
EXTENSIONS
a(23) onward from Robert G. Wilson v, Jun 27 2014
STATUS
approved