OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 218 terms from Harry J. Smith)
EXAMPLE
4 is an element of the sequence, since 4 is a multiple of 4 the sum of whose digits is 4; 220 is an element of the sequence, since 220 = 4*55 and 2 + 2+ 0 = 4.
MATHEMATICA
Select[4Range[120000], Total[IntegerDigits[#]]==4&] (* Harvey P. Dale, May 07 2011 *)
PROG
(PARI) SumDE(x, y)= { local(s); s=0; while (x>9 && s<y, s+=x-10*(x\10); x\=10); s+=x; return(s==y) } { n=-1; forstep (m=4, 10^9, 4, if (SumDE(m, 4), write("b063997.txt", n++, " ", m); if (n==217, break)) ) } \\ Harry J. Smith, Sep 05 2009
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Lisa O. Coulter (lcoulter(AT)stetson.edu), Sep 06 2001
EXTENSIONS
More terms from Ray Chandler, Sep 28 2003
STATUS
approved