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.

A033099 Number of 3's when n is written in base b for 2<=b<=n+1.

Original entry on oeis.org

0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 2, 5, 2, 3, 4, 5, 2, 5, 3, 6, 4, 4, 3, 8, 5, 5, 6, 8, 3, 8, 4, 7, 5, 5, 6, 10, 5, 6, 7, 11, 6, 10, 6, 9, 9, 7, 6, 13, 7, 9, 9, 11, 7, 12, 10, 13, 9, 9, 8, 17, 6, 8, 11, 12, 9, 12, 8, 11, 9, 13, 8, 18, 10, 10, 13, 13, 10
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 3]; Array[f, 80] (* Robert G. Wilson v, Nov 14 2012 *)