A278182 Number of dots in Maya numeral representation of n.
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
Examples
a(1) = 1 because 1 in Maya numerals is "." (one dot). a(2) = 2 because 2 in Maya numerals is ".." (two dots).
Links
- Wikipedia, Maya numerals
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.