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.

A053842 (Sum of digits of n written in base 7) modulo 7.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 0, 2, 3, 4, 5, 6, 0, 1, 3, 4, 5, 6, 0, 1, 2, 4, 5, 6, 0, 1, 2, 3, 5, 6, 0, 1, 2, 3, 4, 6, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 0, 2, 3, 4, 5, 6, 0, 1, 3, 4, 5, 6, 0, 1, 2, 4, 5, 6, 0, 1, 2, 3, 5, 6, 0, 1, 2, 3, 4, 6, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 2, 3, 4, 5, 6, 0, 1
Offset: 0

Views

Author

Henry Bottomley, Mar 28 2000

Keywords

Comments

a(n) is the sixth row of the array in A141803. - Andrey Zabolotskiy, May 18 2016

Crossrefs

Programs

  • Mathematica
    Table[Mod[Plus @@ IntegerDigits[n, 7], 7], {n, 0, 50}] (* G. C. Greubel, Nov 02 2017 *)
  • PARI
    a(n) = vecsum(digits(n, 7)) % 7; \\ Michel Marcus, May 18 2016

Formula

a(n) = A010876(A053828(n)). - Andrey Zabolotskiy, May 18 2016