Maths Olympiad Prep

Library / /637 of 860

Algebra Difficulty 5.3 AIME, harder Find the answer

Let N=302015N=30^{2015}. Find the number of ordered 4-tuples of integers (A,B,C,D){1,2,,N}4(A, B, C, D) \in\{1,2, \ldots, N\}^{4} (not necessarily distinct) such that for every integer n,An3+Bn2+2Cn+Dn, A n^{3}+B n^{2}+2 C n+D is divisible by NN.

A number or a short expression. Spacing and $ signs are ignored.

Solution

Note that n0=(n0),n1=(n1),n2=2(n2)+(n1),n3=6(n3)+6(n2)+(n1)n^{0}=\binom{n}{0}, n^{1}=\binom{n}{1}, n^{2}=2\binom{n}{2}+\binom{n}{1}, n^{3}=6\binom{n}{3}+6\binom{n}{2}+\binom{n}{1}. Thus the polynomial rewrites as 6A(n3)+(6A+2B)(n2)+(A+B+2C)(n1)+D(n0)6 A\binom{n}{3}+(6 A+2 B)\binom{n}{2}+(A+B+2 C)\binom{n}{1}+D\binom{n}{0} which by the classification of integer-valued polynomials is divisible by NN always if and only if 6A,6A+2B,A+B+2C,D6 A, 6 A+2 B, A+B+2 C, D are always divisible by NN. We can eliminate BB and (trivially) DD from the system: it's equivalent to the system 6A0(modN)6 A \equiv 0(\bmod N), 4A4C0(modN),BA2C(modN),D0(modN)4 A-4 C \equiv 0(\bmod N), B \equiv-A-2 C(\bmod N), D \equiv 0(\bmod N). So we want 121^{2} times the number of (A,C)(A, C) with A0(modN/6),CA(modN/4)A \equiv 0(\bmod N / 6), C \equiv A(\bmod N / 4). So there are N/(N/6)=6N /(N / 6)=6 choices for AA, and then given such a choice of AA there are N/(N/4)=4N /(N / 4)=4 choices for CC. So we have 6412=246 \cdot 4 \cdot 1^{2}=24 solutions total.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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