Exercise 2114Number theory › CongruencesM1Added 3 Nov 2026
NTT and modular arithmetic (statement)
#NTT#number theory transform#FFT#modular
Statement
Describe the Number Theoretic Transform (NTT) and explain why it requires for a prime .
Hint
The NTT is FFT over a finite field. An -th primitive root of unity exists in iff .
Show solutionHide solution
Solution
Definition. The NTT computes the discrete Fourier transform over : , where is an -th primitive root of unity mod .
Existence of . By the structure of (cyclic of order ), contains an element of order iff .
Application. Fast polynomial multiplication over via NTT with complexity, used in computer algebra and cryptography.
Conclusion. The NTT requires ; typical choices use .