A062753 Multiples of 4 whose sum of digits is also a multiple of 4.
4, 8, 40, 44, 48, 80, 84, 88, 112, 116, 152, 156, 192, 196, 220, 224, 228, 260, 264, 268, 332, 336, 372, 376, 400, 404, 408, 440, 444, 448, 480, 484, 488, 512, 516, 552, 556, 592, 596, 620, 624, 628, 660, 664, 668, 732, 736, 772, 776, 800, 804, 808, 840, 844
Offset: 1
Examples
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
Links
- Giovanni Resta, Table of n, a(n) for n = 1..10000 (first 1001 terms from Harry J. Smith)
Crossrefs
Subsequence of A008586.
Programs
-
Mathematica
Select[4 Range[250], Mod[Plus @@ IntegerDigits@ #, 4] == 0 &] (* Giovanni Resta, Jun 29 2018 *)
-
PARI
{ forstep (a=4, 10^3, 4, if (sumdigits(a)%4 == 0, print1(a, ", "))) } \\ Harry J. Smith, Aug 10 2009
Formula
Is a(n) ~ 16*n? - David A. Corneth, Jun 29 2018
Extensions
More terms from Larry Reeves (larryr(AT)acm.org), Jul 24 2001
Offset set to 1 by Giovanni Resta, Jun 29 2018
Comments