1. Understanding the Problem:
We are given a complex number ω such that ω2013=1 and ωm=1 for m=1,2,…,2012. This means ω is a primitive 2013th root of unity. We need to find the number of ordered pairs (a,b) with 1≤a,b≤2013 such that
3(1+ω+⋯+ωa)(1+ω+⋯+ωb)
is an algebraic integer.
2. Cyclotomic Polynomials:
The sum 1+ω+⋯+ωa can be simplified using the formula for the sum of a geometric series:
1+ω+⋯+ωa=1−ω1−ωa+1
Since ω is a primitive 2013th root of unity, 1−ω is a unit in Z[ω].
3. Algebraic Integers:
A complex number is an algebraic integer if it is a root of some monic polynomial with integer coefficients. We need to determine when
3(1−ω)2(1−ωa+1)(1−ωb+1)
is an algebraic integer.
4. Automorphisms and Galois Theory:
Let fk denote the automorphism that sends ω to ωk where gcd(k,2013)=1. The number t=3(1−ωa+1)(1−ωb+1) must be an algebraic integer. By considering the field Q[ω], we know that fk(t) is also an algebraic integer.
5. **Units in Z[ω]:**
Since 1−ω is a unit in Z[ω], multiplying by it does not change the property of being an algebraic integer. Thus, t is an algebraic integer if and only if
3(1−ωa+1)(1−ωb+1)
is an algebraic integer.
6. Cyclotomic Polynomial Evaluation:
We use the fact that
k∈S∏fk(1−ωa+1)=Φn(1)φ(2013)/φ(n)
where n=gcd(2013,a+1)2013. By the lemma, Φn(1)=1 if n is not a prime power, and Φn(1)=p if n is a prime power p.
7. Condition for Algebraic Integer:
The expression
31200Φn(1)φ(2013)/φ(n)⋅Φn′(1)φ(2013)/φ(n′)
is integral if and only if gcd(a+1,2013)2013=gcd(b+1,2013)2013=3 or one of the gcd's is 2013.
8. Counting Valid Pairs:
For gcd(a+1,2013)2013=3, gcd(a+1,2013)=671. There are φ(3)=2 such values for a+1 and similarly for b+1. Thus, there are 2×2=4 pairs (a,b).
For one of the gcd's being 2013, there are 2013 choices for a and 2 choices for b, giving 2013×2=4026 pairs. Adding the cases where both gcd's are 2013, we get 2013×2−1+2×2=4029.
The final answer is 4029.