A216997 Multiples of 8 that have a digit sum which is a multiple of 8.
8, 80, 88, 152, 224, 376, 440, 448, 512, 592, 664, 736, 800, 808, 880, 888, 952, 1016, 1096, 1160, 1168, 1232, 1304, 1384, 1456, 1520, 1528, 1672, 1744, 1816, 1896, 1960, 1968, 2024, 2176, 2240, 2248, 2312, 2392, 2464, 2536, 2600, 2608, 2680, 2688, 2752, 2824
Offset: 1
Examples
376 = 8*47 and 3+7+6 = 16 = 8*2.
Programs
-
JavaScript
function sumarray(arr) { t=0; for (i=0;i
-
Mathematica
Select[8*Range[400], Mod[Total[IntegerDigits[#]], 8] == 0 &] (* T. D. Noe, Sep 24 2012 *)
Comments