A273188 Numbers whose digit sum is divisible by 8.
0, 8, 17, 26, 35, 44, 53, 62, 71, 79, 80, 88, 97, 107, 116, 125, 134, 143, 152, 161, 169, 170, 178, 187, 196, 206, 215, 224, 233, 242, 251, 259, 260, 268, 277, 286, 295, 305, 314, 323, 332, 341, 349, 350, 358, 367, 376, 385, 394, 404, 413, 422, 431, 439, 440, 448, 457, 466
Offset: 1
Links
- Elana Lessing, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Range@ 600, Mod[Total@ IntegerDigits@ #, 8] == 0 &] (* Michael De Vlieger, May 19 2016 *)
-
PARI
isok(n) = sumdigits(n) % 8 == 0; \\ Michel Marcus, May 18 2016
Comments