cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A273188 Numbers whose digit sum is divisible by 8.

Original entry on oeis.org

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

Views

Author

Elana Lessing, May 17 2016

Keywords

Comments

Is a(n) ~ 8n? - David A. Corneth, May 19 2016

Crossrefs

Cf. A062342 (subsequence of primes), A227793 (equivalent for 5).

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