Modular forms are functions on the upper half-plane with extraordinary symmetry. The most famous is the discriminant Delta(tau), whose coefficients define the Ramanujan tau function. Reducing tau(p) modulo 23 classifies all primes into 3 classes, one per ideal class of Q(sqrt(-23)) where h(-23) = 3. The primes {2, 3, 5, 7, 11, 13} all sit in either the -1 class or the 0 class.
For any prime p (except 23), Ramanujan's tau function satisfies: 23 divides tau(p) if and only if p is a quadratic non-residue mod 23. The Legendre symbol sorts the primes:
| Prime p | tau(p) | tau(p) mod 23 | Class |
|---|---|---|---|
| 2 | -24 | -1 | QR (inner) |
| 3 | 252 | -1 | QR (inner) |
| 5 | 4830 | 0 | NR (outer) |
| 7 | -16744 | 0 | NR (outer) |
| 11 | 534612 | 0 | NR (outer) |
| 13 | -577738 | -1 | QR (inner) |
Inner primes {2, 3, 13} are quadratic residues mod 23. Outer primes {5, 7, 11} are non-residues. The Ramanujan congruence primes -- tau(n) has famous congruences at 5, 7, and 11 -- are exactly the outer class. All three hit tau mod 23 = 0.
Why 3 values? The imaginary quadratic field Q(sqrt(-23)) has class number h(-23) = 3. Its two quadratic forms of discriminant -23:
The Galois representation of Delta mod 23 is dihedral, induced from a Hecke character of Q(sqrt(-23)). For inert primes (NR): trace = 0. For split primes: trace depends on which of 3 ideal classes the prime above p falls into. Non-principal class: trace = -1. Principal class: trace = 2. The primes {2, 3, 13} all land in the non-principal class.
The j-invariant normalization uses 1728 = 12^3. Delta = (E4^3 - E6^2) / 1728.
Ramanujan proved: tau(n) = sigma_11(n) mod 691. This is the deepest congruence of the discriminant modular form.
All modular forms are polynomials in just two generators: E4 (weight 4) and E6 (weight 6). Every Eisenstein weight is even:
| Form | Weight | Factorization | Note |
|---|---|---|---|
| E4 | 4 | 2^2 | Generator 1 |
| E6 | 6 | 2 * 3 | Generator 2 |
| E8 | 8 | 2^3 | E8 Lie algebra rank |
| E10 | 10 | 2 * 5 | |
| E12 | 12 | 2^2 * 3 | Weight of Delta |
| E14 | 14 | 2 * 7 |
Cusp forms = modular forms that vanish at the cusps. The space S_k has dimension:
The first cusp form appears at weight 12 = Carmichael lambda of Z/210. The same number 12 that bounds the partition smooth zone (see Eta Bridge page).
The generating function for partitions is 1/eta(tau). The eta function's 24th power = Delta. 24 = 8 * 3 links three structures: the Cunningham chain c(n) = 2n+1, the Leech lattice (24 dimensions), and the modular form (eta^24 = Delta). The partition function p(n) is {2,3,5,7,11}-smooth for n <= 12. The unique cusp form has weight 12. Same number, same threshold.
Enter a prime p. See its class: QR inner (tau = -1 or 2) or NR outer (tau = 0). The primes {2, 3, 13} are inner. {5, 7, 11} are outer. 59 is the first principal-form prime.
Prime p:
Source code · Public domain (CC0)
.ax source compiled to WASM via self-hosting compiler. Zero HTML authored.