If you’ve ever wondered how dozens of cell phones can scream at the same 5G cell tower at exactly the same time without drowning each other out, the answer lies hidden in the mathematics of pseudo-random sequences.
For decades, the undisputed king of multiple access was Code Division Multiple Access (CDMA), which relied heavily on binary mathematical constructs known as Gold Codes. But as we shifted toward 4G and 5G, CDMA was largely abandoned in favor of OFDMA, and a new champion emerged for synchronization and network access: Zadoff-Chu (ZC) Sequences.
So why did the industry pivot? Can Zadoff-Chu sequences be used for CDMA? Let’s dive into the math, analyze the correlations, and see exactly why 5G acts the way it does.
The Battle-Tested Binary: Gold Sequences
Gold sequences are pseudo-random binary sequences mathematically constructed by taking the XOR (exclusive OR) of two preferred maximal-length sequences (m-sequences).

They were the darling of the 3G CDMA and GPS eras because they operate entirely in the binary domain and are real numbers (using simple \(+1\) and \(-1\) chips). From a hardware perspective, mapping these sequences to basic BPSK (Binary Phase Shift Keying) requires very cheap analog circuitry, which is perfect for early 2000s handsets.
But Gold sequences are famous for a very specific property: Bounded Correlation. When you run a cross-correlation between two different Gold codes, or an out-of-phase auto-correlation, the interference (or “sidelobes”) is mathematically guaranteed to never exceed a specific three-valued constraint limit.
For a sequence of length \(N = 2^n – 1\), the maximum interference correlation floor is dictated by:
\[ t(n) = 1 + 2^{\lfloor (n+2)/2 \rfloor} \]
For example, if we use a degree-7 polynomial (\(n=7\)), our sequence length is \(N = 127\). Evaluating the maximum sidelobe ratio relative to the main peak yields:
\[ \text{Sidelobe Level (dB)} = 20 \cdot \log_{10}\left( \frac{1 + 2^{(7+1)/2}}{127} \right) = 20 \cdot \log_{10}\left( \frac{17}{127} \right) \approx -17.47 \text{ dB} \]
That -17.5 dB floor acts as a strict guardrail, ensuring robust differentiation between users even when their signals collide asynchronous to each other.
While the cross-correlation floor protects against interference from other users, the auto-correlation profile is equally important for timing synchronization. If you look at the auto-correlation plot of a Gold code, you will see a massive, sharp spike exactly at the zero-delay mark, surrounded by a low, noise-like floor. Because the out-of-phase auto-correlation is strictly bounded by that same -17.5 dB limit, a receiver can instantly and unambiguously identify the exact microsecond a signal arrived, without being tricked by its own multi-path echoes.
For cell phones operating in dense urban environments scattered with buildings, trees, and automobiles, this extreme resistance to multipath interference is the Gold code’s ultimate trump card.
(Note: The plots below are generated using cyclic correlation to perfectly illustrate these theoretical bounds, which accurately models the continuous, never-ending transmission streams used in classic CDMA and GPS systems.)




Polyphase Perfection: Zadoff-Chu Sequences
While Gold codes constrain interference, Zadoff-Chu sets out to mathematically eliminate it. ZC sequences belong to a class of signals known as CAZAC (Constant Amplitude, Zero Auto-Correlation).
Unlike binary Gold codes, ZC signals are polyphase, meaning the sequence maps continuous analog phase rotations around the complex unit circle. The generic sequence formula for an odd length \(N_{ZC}\) is defined as:
\[ Z_u(n) = \exp\left(-j \frac{\pi u n (n+1)}{N_{ZC}}\right) \]
where \(u\) is the mathematical “root” (the assigned code id).

When you perform a cyclic auto-correlation of a Zadoff-Chu sequence (where the sequence wraps around itself, like a continuous broadcast), it defies typical noise characteristics. The sidelobes do not flatten into a noise floor, they literally drop out to \(-\infty\) dB zero-correlation outside of the exact zero-delay lag. It is a mathematically perfect pulse.
(Note: If you perform a standard linear correlation instead, where the sequences slide past each other and only partially overlap at the edges, that perfect wrapping is broken and a low noise floor will appear. The true magic of Zadoff-Chu relies strictly on its periodic properties.)




Just for comparison, we can examine the linear correlation versions of the ZC sequences (auto-correlation and cross-correlation). Notice the non-zero auto-correlation sidelobes and cross-correlation noise floor limit. This demonstrates the utility of using a cyclic correlation.


If ZC is Perfect, Why Isn’t It Used for CDMA Data?
Given that ZC sequences provide infinite auto-correlation nulls and completely flat cross-correlation limits (\(1/\sqrt{N_{ZC}}\)), you might assume they would make the ultimate CDMA spreading sequence.
However, they were deliberately ignored for raw CDMA data transmission due to two critical factors:
- Hardware Complexity: Generating Gold codes takes a handful of simple XOR gates. Transmitting a polyphase ZC sequence precisely requires complex multi-level Digital-to-Analog Converters (DAC), effectively prohibiting their use in cheap, legacy hardware.
- The Doppler Achilles’ Heel: ZC sequences derive their perfect mathematical nulls from precise phase alignments. If a user is moving rapidly, the resulting Carrier Frequency Offset (Doppler Shift) warps the phase rotations. But unlike binary codes where Doppler just creates random noise, in the mathematics of Zadoff-Chu, a frequency offset is perfectly equivalent to a cyclic time shift. If the Doppler shift is too high, the correlation peak doesn’t just decay, it literally walks out of its assigned time slot and into the time slot of another user, causing a catastrophic “ghost signal” false alarm.




Notice something interesting about the main peaks? They decay at exactly the same rate. Regardless of whether you use a Gold code or a Zadoff-Chu sequence, the coherent sum of a signal undergoing a frequency offset decays along an identical \(sinc()\) curve based purely on the integration length.
The critical difference lies in how a receiver loses tracking lock (the dashed lines in the sweep plots). A receiver relies on the “gap” between the True Arrival Time (the blue line) and any false peaks (the dashed orange line); if a false peak crosses over the true peak, the receiver will lock onto the ghost signal, causing a catastrophic synchronization failure.
- The Zadoff-Chu Limit (\(\pm 0.5\) bins): For ZC sequences, the “Max Sidelobe” crossing the main peak isn’t a random noise spike, it’s the main peak literally shifting to the next time lag. At exactly \(\pm 0.5\) frequency bins, the energy is split equally between the true arrival time and a false lag. A standard ZC receiver simply cannot tolerate an offset greater than half a bin because the peak physically walks away.
- The Gold Sequence Resilience (\(\pm 0.8\) bins): The Gold sequence behaves traditionally. The Doppler offset destroys its phase coherence, causing the main peak to decay while the random noise sidelobes climb. It only fails when the main peak naturally decays down into that rising noise floor, surviving all the way out to \(\pm 0.8\) bins.
- The Sinc Bounce (\(\pm 1.5\) bins): If you look closely at the Gold sequence plot around \(\pm 1.5\) bins, the main peak actually bounces back above the noise floor as the \(sinc()\) function hits its secondary lobe! A smart receiver could technically re-acquire the Gold code at this extreme offset, whereas a receiver looking for a ZC sequence at the true arrival time would see a massive, dominant ghost-peak (10 dB stronger) sitting multiple lags away.
This violent interference behavior is exactly why modern OFDMA networks depend so heavily on robust carrier frequency tracking, and why high-mobility environments (like LEO satellites) often fall back on sequence designs that lean closer to Gold codes.

The Magic of Prime Sequence Lengths
When allocating codes to different users, the network needs a deep pool of unique sequences.
For Gold sequences, generating a family of length \(N\) yields exactly \(N + 2\) available sequences. For \(N=127\), a cell tower has exactly 129 Gold codes to hand out.
For Zadoff-Chu sequences, the available pool is mathematically dictated by the Euler Totient function, \(\phi(N_{ZC})\), which counts all integers coprime (sharing no factors) to the sequence length.
- If you design a system around a sequence length of 128, there are only 64 coprime roots available.
- If you design a system around a prime sequence length like \(127\), every number below it is coprime, yielding 126 available roots.
This prime-number trick is critical. It allows ZC sequences to rival the pool depths of Gold codes.
The Modern Verdict: 5G and the PRACH Preamble
Modern LTE (4G/5G) systems abandoned CDMA for bulk transmission to combat the multi-path fading limitations that throttle high-speed data, replacing it with OFDMA. However, LTE still utilizes the supreme correlation properties of Zadoff-Chu sequences directly under the hood.
When a 5G phone first tries to associate with a tower, it transmits a random access header called the PRACH preamble. This header is a pure Zadoff-Chu sequence (using large prime lengths like \(N=839\)).
Because ZC auto-correlation yields a pure \(-\infty\) dB null on any sequence delay, the cell tower actually issues the exact same ZC root to multiple interacting users, but instructs them to apply different cyclic time shifts. As long as the cyclic shift window is wider than the multi-path echo delay bouncing off nearby buildings, the users simply slide past each other, creating perfectly orthogonal interactions.
In the ultimate irony, telecom engineers retired CDMA, but weaponized its core mathematical philosophies, fused with the polyphase perfection of Zadoff-Chu sequences, to orchestrate the billion-device ballet of the 5G era.
