OFFSET
1,1
COMMENTS
Sequence is infinite since 4*10^k, k>=0 is a subsequence. - Michel Marcus, Jun 29 2018
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000 (first 1001 terms from Harry J. Smith)
FORMULA
Is a(n) ~ 16*n? - David A. Corneth, Jun 29 2018
EXAMPLE
44 is a term of the sequence since 4 + 4 = 8 which is also a multiple of 4;
112 is a term of the sequence since 1 + 1 + 2 = 4 and 4 is obviously a multiple of 4.
8 is a multiple of 4. Numbers having digitsum 8 and are divisible by 4 below 1000 are: {8, 44, 80, 116, 152, 224, 260, 332, 404, 440, 512, 620, 800}. - David A. Corneth, Jun 29 2018
MATHEMATICA
Select[4 Range[250], Mod[Plus @@ IntegerDigits@ #, 4] == 0 &] (* Giovanni Resta, Jun 29 2018 *)
PROG
(PARI) { forstep (a=4, 10^3, 4, if (sumdigits(a)%4 == 0, print1(a, ", "))) } \\ Harry J. Smith, Aug 10 2009
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Lisa O Coulter (lisa_coulter(AT)my-deja.com), Jul 15 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jul 24 2001
Offset set to 1 by Giovanni Resta, Jun 29 2018
STATUS
approved