Maths Olympiad Prep

Track / Stage 7 / 138 of 300 #1538 of 1964

Problem 1538

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Find the answer

Let NN denote the number of ordered 2011-tuples of positive integers (a1,a2,,a2011)(a_1,a_2,\ldots,a_{2011}) with 1a1,a2,,a2011201121\le a_1,a_2,\ldots,a_{2011} \le 2011^2 such that there exists a polynomial ff of degree 40194019 satisfying the following three properties:

- f(n)f(n) is an integer for every integer nn;
- 20112f(i)ai2011^2 \mid f(i) - a_i for i=1,2,,2011i=1,2,\ldots,2011;
- 20112f(n+2011)f(n)2011^2 \mid f(n+2011) - f(n) for every integer nn.
Find the remainder when NN is divided by 10001000.

Victor Wang

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Official solution

1. Understanding the Problem:
We need to find the number of ordered 2011-tuples of positive integers (a1,a2,,a2011)(a_1, a_2, \ldots, a_{2011}) such that there exists a polynomial ff of degree 4019 satisfying:
- f(n)f(n) is an integer for every integer nn,
- 20112f(i)ai2011^2 \mid f(i) - a_i for i=1,2,,2011i = 1, 2, \ldots, 2011,
- 20112f(n+2011)f(n)2011^2 \mid f(n + 2011) - f(n) for every integer nn.

2. Polynomial Properties:
- Since f(n)f(n) is an integer for every integer nn, ff must be a polynomial with integer coefficients.
- The condition 20112f(i)ai2011^2 \mid f(i) - a_i implies that f(i)ai(mod20112)f(i) \equiv a_i \pmod{2011^2}.
- The condition 20112f(n+2011)f(n)2011^2 \mid f(n + 2011) - f(n) implies that f(n+2011)f(n)(mod20112)f(n + 2011) \equiv f(n) \pmod{2011^2}.

3. **Analyzing the Polynomial ff:**
- The condition f(n+2011)f(n)(mod20112)f(n + 2011) \equiv f(n) \pmod{2011^2} suggests that f(x)f(x) is periodic with period 2011 modulo 201122011^2.
- This periodicity implies that f(x)f(x) can be written in a form that reflects this periodicity. Specifically, f(x)f(x) can be expressed as f(x)=g(x)+20112h(x)f(x) = g(x) + 2011^2 h(x), where g(x)g(x) is a polynomial of degree at most 4019 and h(x)h(x) is some polynomial.

4. Counting the Number of Valid Polynomials:
- To satisfy 20112f(n+2011)f(n)2011^2 \mid f(n + 2011) - f(n), the polynomial f(x)f(x) must be such that f(x+2011)f(x)f(x + 2011) - f(x) is divisible by 201122011^2.
- This implies that the coefficients of f(x)f(x) must be chosen such that the difference f(x+2011)f(x)f(x + 2011) - f(x) is zero modulo 201122011^2.

5. Using Polynomial Properties:
- Given f(x)=a4019x4019+a4018x4018++a1x+a0f(x) = a_{4019} x^{4019} + a_{4018} x^{4018} + \cdots + a_1 x + a_0, the condition f(x+2011)f(x)(mod20112)f(x + 2011) \equiv f(x) \pmod{2011^2} must hold.
- This implies that each coefficient aia_i must be chosen such that the polynomial remains invariant under the transformation xx+2011x \to x + 2011 modulo 201122011^2.

6. Counting the Number of Solutions:
- The number of such polynomials f(x)f(x) modulo 201122011^2 is determined by the number of ways to choose the coefficients aia_i such that the periodicity condition is satisfied.
- Since each aia_i can take on 201122011^2 different values, and there are 4020 coefficients (from a0a_0 to a4019a_{4019}), the total number of such polynomials is (20112)4020(2011^2)^{4020}.

7. Finding the Remainder:
- We need to find the remainder when the number of such polynomials is divided by 1000.
- (20112)4020(20112mod1000)4020(mod1000)(2011^2)^{4020} \equiv (2011^2 \mod 1000)^{4020} \pmod{1000}.
- 201111(mod1000)2011 \equiv 11 \pmod{1000}, so 20112112=121(mod1000)2011^2 \equiv 11^2 = 121 \pmod{1000}.
- Therefore, (20112)40201214020(mod1000)(2011^2)^{4020} \equiv 121^{4020} \pmod{1000}.

8. Simplifying the Exponentiation:
- We need to compute 1214020mod1000121^{4020} \mod 1000.
- Using Euler's theorem, since ϕ(1000)=400\phi(1000) = 400, we have 1214001(mod1000)121^{400} \equiv 1 \pmod{1000}.
- Thus, 1214020=(121400)10121201101212012120(mod1000)121^{4020} = (121^{400})^{10} \cdot 121^{20} \equiv 1^{10} \cdot 121^{20} \equiv 121^{20} \pmod{1000}.

9. Final Calculation:
- We need to compute 12120mod1000121^{20} \mod 1000.
- Using repeated squaring:
- 1212=14641641(mod1000)121^2 = 14641 \equiv 641 \pmod{1000},
- 6412=410881881(mod1000)641^2 = 410881 \equiv 881 \pmod{1000},
- 8812=776161161(mod1000)881^2 = 776161 \equiv 161 \pmod{1000},
- 1612=25921921(mod1000)161^2 = 25921 \equiv 921 \pmod{1000},
- 9212=848241241(mod1000)921^2 = 848241 \equiv 241 \pmod{1000},
- 2412=5808181(mod1000)241^2 = 58081 \equiv 81 \pmod{1000},
- 812=6561561(mod1000)81^2 = 6561 \equiv 561 \pmod{1000},
- 5612=314721721(mod1000)561^2 = 314721 \equiv 721 \pmod{1000},
- 7212=519841841(mod1000)721^2 = 519841 \equiv 841 \pmod{1000},
- 8412=707281281(mod1000)841^2 = 707281 \equiv 281 \pmod{1000}.

10. Conclusion:
- Therefore, 12120281(mod1000)121^{20} \equiv 281 \pmod{1000}.

The final answer is 281\boxed{281}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.