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.

A278182 Number of dots in Maya numeral representation of n.

Original entry on oeis.org

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

Views

Author

Keywords

Examples

			a(1) = 1 because 1 in Maya numerals is "." (one dot).
a(2) = 2 because 2 in Maya numerals is ".." (two dots).
		

Crossrefs

Cf. A006968.

Programs

  • Mathematica
    Table[ Mod[n, 5] + Floor[Mod[n, 100]/20]  , {n, 0, 359}]

Formula

a(n) = (n mod 5) + floor(n mod 100 / 20) for 0<=n<=359.