TOPICS
Search

Roots of Unity Filter


The roots of unity filter extracts the terms of a formal power series whose exponents lie in a specified residue class, by averaging suitable substitutions of roots of unity. Let F(x)=sum_(n>=0)a_nx^n have complex coefficients, let m be a positive integer, and let omega=e^(2pii/m). For 0<=r<m, the filtered series is

 1/msum_(j=0)^(m-1)omega^(-jr)F(omega^jx)=sum_(k>=0)a_(mk+r)x^(mk+r).

The multiplier of a_nx^n on the left is the average of omega^(j(n-r)) over j. The geometric series gives zero unless n=r  (modm), when every summand is 1 (Wilf 1994). Extracting these subsequences of coefficients is known as multisection of a series.

For example, the coefficient of x^n in product_(j=1)^(5q)(1+x^j) counts subsets of {1,...,5q} with element sum n. For a positive integer q, the polynomial has value 2^(5q) at 1 and 2^q at each nontrivial fifth root of unity. In the latter case each block of five factors has product 2, since it runs over all fifth roots of unity in the identity product_(j=0)^(4)(1+omega^j)=2, where omega=e^(2pii/5). Filtering for multiples of 5 and evaluating at 1 therefore gives (2^(5q)+4·2^q)/5 such subsets. 3Blue1Brown (2022) illustrates the case q=400.


See also

Discrete Fourier Transform, Generating Function, Root of Unity

Explore with Wolfram|Alpha

References

3Blue1Brown. "Olympiad Level Counting (Generating Functions)." YouTube. May 23, 2022. https://www.youtube.com/watch?v=bOXCLR3Wric.Wilf, H. S. Generatingfunctionology, 2nd ed. New York: Academic Press, 1994. https://www2.math.upenn.edu/~wilf/DownldGF.html.

Cite this as:

Weisstein, Eric W. "Roots of Unity Filter." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RootsofUnityFilter.html

Subject classifications