Why $2$, $3$, and $5$? Lambert Series, Prime Logarithms, and a $48$-Step Octave for Musical Tuning
Abstract
The primes $2$, $3$, and $5$ generate many familiar frequency ratios in musical tuning. We identify three mathematical properties that distinguish these primes in a construction based on modular transformations of Lambert series. We derive an exact identity for $\log p$ for every odd prime $p$, together with a separate identity for $\log2$. Within this construction, all transformed Lambert-series arguments can be chosen real precisely for $p=2,3,5$. In the identities obtained for these three primes, every series argument has magnitude at most $e^{-2\pi}$, whereas the identity for $\log7$ requires complex arguments and contains a more slowly converging series.
The leading $\pi$-terms for $\log2$, $\log3$, and $\log5$ generate a $48$-step octave grid and recover its conventional prime mapping $(48,76,111)$ exactly, without rounding, while including the leading $\pi$-term for $\log7$ enlarges the grid to $1680$ steps. The identity for $\log7$ introduces no auxiliary logarithms of larger primes, whereas for every prime $11\le p<20000$, an exact computation identifies such logarithms in the construction.
The Lambert-series remainders provide exact corrections for just intervals and musical commas. For a published theoretical model of $22$ Hindustani shrutis, the additive $48$-step mapping assigns all $22$ ratios to distinct positions, with corrections no greater than $15.3$ cents in magnitude. These results establish precise arithmetic distinctions that parallel the prominence of $5$-limit tuning, without implying that number theory determines musical practice.