Given an input polynomial (r) of length <=n and a prime number (p) such that an nth root of unity exists and the modular inverse of (n) modulus p exists. Convert the polynominal coefficents by Number Theoretic Transform (NTT) using the primitive nth root of unity as the generator mod p.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Return the 3n+1 sequence for n
8541 Solvers
-
How long is the longest prime diagonal?
415 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
897 Solvers
-
Diophantine Equations (Inspired by Project Euler, problem 66)
75 Solvers
-
Optimally fill a container with elements of different sizes
25 Solvers
More from this Author65
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!