Mathematical Background¶
Vigesimal Number System¶
Base-20 Decomposition¶
Any non-negative integer \(n\) can be represented in base 20 as:
where \(d_i \in \{0, 1, \ldots, 19\}\) are the vigesimal digits and \(L\) is the number of levels.
Bars and Dots¶
Each vigesimal digit \(d\) (0-19) is further decomposed:
This creates a two-level hierarchy within each digit position.
Feature Vector¶
For components="full" with \(L\) levels, each scalar produces a \(3L\)-dimensional feature vector:
Maya Calendar Mathematics¶
Tzolk'in Cycle¶
The Tzolk'in position is determined by two independent cycles:
where \(J\) is the Julian Day Number and \(J_0 = 584283\) is the GMT correlation epoch.
Since \(\gcd(13, 20) = 1\), the combined cycle length is \(13 \times 20 = 260\) days (by the Chinese Remainder Theorem).
Haab' Calendar¶
The Haab' position within its 365-day cycle:
The 5 Wayeb' days occur when month = 18 (the 19th "month").
Long Count (Mixed Radix)¶
The Long Count uses a modified vigesimal system:
The multipliers are:
| Level | Name | Radix | Cumulative |
|---|---|---|---|
| 0 | K'in | 20 | 1 |
| 1 | Uinal | 18 | 20 |
| 2 | Tun | 20 | 360 |
| 3 | K'atun | 20 | 7,200 |
| 4 | B'ak'tun | 20 | 144,000 |
Note the exception at level 1 → 2: the multiplier is 18 (not 20) so that a Tun ≈ 360 days, approximating the solar year.
Cyclical Encoding¶
For a component with period \(P\) and value \(v\):
This maps the cyclic variable to a unit circle, ensuring \(v = 0\) and \(v = P\) map to the same point, which is important for smooth feature transitions at cycle boundaries.
Calendar Round¶
The Calendar Round combines Tzolk'in (260 days) and Haab' (365 days):
This 52-year cycle was the longest period the Maya could reference without the Long Count.