Find the number of pairs of integers ( n , m ) with 0 ≤ m < n ≤ 2 5 such that the polynomial f n , m ( x ) = x n + . . . + x m + 1 + 2 x m + . . . + 2 can be expressed as a product of two non-constant polynomials with integer coefficients.
Details and assumptions
The notation above means that the coefficient of x i in f n , m ( x ) equals 1 if m < i ≤ n and 2 if 0 ≤ i ≤ m .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
f n , m ( x ) = ( x n + x n − 1 + . . . + 1 ) + ( x m + x m − 1 + . . . + 1 )
( x − 1 ) ( x n + x n − 1 + . . . + 1 ) = x n + 1 − 1
If gcd(n+1, m+1) = d > 1, we can re-write n+1 = ad and m+1=bd.
Then we get:
( x − 1 ) ( x n + x n − 1 + . . . + 1 ) = x a d − 1
( x − 1 ) ( x n + . . . + 1 ) = ( x d − 1 ) ( x ( a − 1 ) d + x ( a − 2 ) d + . . . + x d + 1 )
( x − 1 ) ( x n + . . . + 1 ) = ( x − 1 ) ( x d − 1 + . . . + 1 ) ( x ( a − 1 ) d + . . . + 1 )
Therefore, we have ( x n + x n − 1 + . . . + 1 ) = ( x d − 1 + . . . + 1 ) ( x ( a − 1 ) d + . . . + 1 ) and ( x m + x m − 1 + . . . + 1 ) = ( x d − 1 + . . . + 1 ) ( x ( b − 1 ) d + . . . + 1 ) , and thus f n , m ( x ) = ( x d − 1 + . . . + 1 ) [ ( x ( a − 1 ) d + . . . + 1 ) + ( x ( b − 1 ) d + . . . + 1 ) ] is reducible.
Conversely, if gcd(n+1,m+1)=1, we arrive at f n , m ( x ) = x − 1 x n + 1 + x m + 1 − 2 , which is irreducible.
A simple checking of all possible (n,m) gives us 114 pairs of integers.
Let n + 1 = a , and m+1 = b
Observe that if the polynomial equates to (x^a + x^b - 2)/(x-1).
Observe that if gcd(a,b) = d, x^d - 1 is a factor of both (x^a - 1) and (x^b - 1). Thus if d > 1, b>= degree of (x^d-1)/(x-1) >= 1, and the original polynomial is reducible.
Brute force shows that all cases where a and b are coprime in the range (1,26) are irreducible. This gives us the answer of 114
Problem Loading...
Note Loading...
Set Loading...
Notice that f n , m ( x ) = x − 1 x n + 1 − 1 + x − 1 x m + 1 − 1 = x − 1 x n + 1 + x m + 1 − 2
Lemma 1. Suppose x is a complex root of the polynomial x n + 1 + x m + 1 − 2 . Then either ∣ x ∣ > 1 or x n + 1 = x m + 1 = 1 .
Proof. If ∣ x ∣ ≤ 1 then ∣ x n + 1 ∣ ≤ 1 and ∣ x m + 1 ∣ ≤ 1 . By the triangle inequality, ∣ x n + 1 + x m + 1 ∣ ≤ 2 with equality only if ∣ x ∣ = 1 and x n + 1 = x m + 1 . Moreover, x n + 1 + x m + 1 = 2 only if both x n + 1 and x m + 1 are equal to 1 .
Lemma 2. f n . m ( x ) can be written as a product of two polynomials with integer coefficients if and only if g cd ( n + 1 , m + 1 ) > 1 .
Proof. "if": Suppose g cd ( n + 1 , m + 1 ) = d > 1 . Then x d − 1 divides both x n + 1 − 1 and x m + 1 − 1 . Therefore, x d − 1 + . . . + 1 = x − 1 x d − 1 divides f n , m ( x ) .
"only if": Suppose f n . m = g ( x ) h ( x ) , where g and h are non-constant polynomials with integer coefficients. Clearly, the product of the leading coefficients of g and h is 1 , so the leading coefficients of g and h are ± 1 . If g cd ( n + 1 , m + 1 ) = 1 , then Lemma 1 implies that all complex roots of f n , m ( x ) ( x − 1 ) are either 1 or have absolute value strictly greater than 1 . So, because f ( 1 ) = n + m + 2 = 0 , all complex roots of f n , m have absolute value strictly greater than 1 . Now we look at the free terms of g and h . Because their product is 2 , one of them must be ± 1 . But then the product of all roots of this polynomial (with multiplicities) has absolute value 1 , a contradiction.
To complete the problem, using Lemma 2, we need to calculate the number of pairs ( n , m ) with 0 ≤ m < n ≤ 2 5 , such that g cd ( n + 1 , m + 1 ) > 1 . Equivalently, we are looking for the number of pairs of integers ( a , b ) , such that 1 ≤ b < a ≤ 2 6 and g cd ( a , b ) > 1 . There are many ways to do it, we will do it by counting the number of pairs with d ∣ g cd ( a , b ) , and using the inclusion and exclusion principle.
First, note that if d ∣ a and d ∣ b , then b ≥ d and a ≥ 2 d . Because a ≤ 2 6 , we only need to consider d ≤ 1 3 . If g cd ( a , b ) > 1 , there is a prime p = 2 , 3 , 5 , 7 , 1 1 , or 1 3 such that p ∣ g cd ( a , b ) .
Note that d ∣ g cd ( a , b ) if and only if a = d a 1 and b = d b 1 . Here 1 ≤ b 1 < a 1 ≤ d 2 6 . So the number of such pairs is 2 k ( k − 1 ) , where k = ⌊ d 2 6 ⌋ , the largest integer less than or equal to d 2 6 . In particular, for d = 2 the number of pairs with 2 ∣ g cd ( a , b ) is 2 1 3 ⋅ 1 2 = 7 8 . For d = 3 the number is 2 8 ⋅ 7 = 2 8 . For d = 5 it is 1 0 , for d = 7 it is 3 , for d = 1 1 and d = 1 3 it is 1 . If we just add these numbers, we will count twice the pairs with g cd ( a , b ) divisible by two primes. Note that no pairs have g cd ( a , b ) divisible by three primes, because all products of three primes are at least 2 ⋅ 3 ⋅ 5 = 3 0 . The only products of two primes that are not too big are 6 and 1 0 , with 6 and 1 pairs respectively. So, the final answer is ( 7 8 + 2 8 + 1 0 + 3 + 1 + 1 ) − ( 6 + 1 ) = 1 1 4 .