Maths Olympiad Prep

Library / HMMT /44 of 79

HMMT, 2014

Number theory Difficulty 5.3 AIME, harder Prove it United States

Problem:

Compute the number of ordered quintuples of nonnegative integers (a1,a2,a3,a4,a5)\left(a_{1}, a_{2}, a_{3}, a_{4}, a_{5}\right) such that 0≤a1,a2,a3,a4,a5≤70 \leq a_{1}, a_{2}, a_{3}, a_{4}, a_{5} \leq 7 and 55 divides 2a1+2a2+2a3+2a4+2a52^{a_{1}}+2^{a_{2}}+2^{a_{3}}+2^{a_{4}}+2^{a_{5}}.

Solution

Solution:

Let f(n)f(n) denote the number of nn-tuples (a1,…,an)\left(a_{1}, \ldots, a_{n}\right) such that 0≤a1,…,an≤70 \leq a_{1}, \ldots, a_{n} \leq 7 and 5∣2a1+…+2an5 \mid 2^{a_{1}}+\ldots+2^{a_{n}}. To compute f(n+1)f(n+1) from f(n)f(n), we note that given any nn-tuple (a1,…,an)\left(a_{1}, \ldots, a_{n}\right) such that 0≤a1,…,an≤70 \leq a_{1}, \ldots, a_{n} \leq 7 and 5∤2a1+…+2an5 \nmid 2^{a_{1}}+\ldots+2^{a_{n}}, there are exactly two possible values for an+1a_{n+1} such that 0≤an+1≤70 \leq a_{n+1} \leq 7 and 5∣2a1+…+2an+15 \mid 2^{a_{1}}+\ldots+2^{a_{n+1}}, because 2n≡1,2,4,3,1,2,4,3(mod5)2^{n} \equiv 1,2,4,3,1,2,4,3 \pmod{5} for n=0,1,2,3,4,5,6,7n=0,1,2,3,4,5,6,7 respectively.

Also, given any valid (n+1)(n+1)-tuple (a1,…,an+1)\left(a_{1}, \ldots, a_{n+1}\right), we can remove an+1a_{n+1} to get an nn-tuple (a1,…,an)\left(a_{1}, \ldots, a_{n}\right) such that 0≤a1,…,an≤70 \leq a_{1}, \ldots, a_{n} \leq 7 and 5∤2a1+…+2an5 \nmid 2^{a_{1}}+\ldots+2^{a_{n}}, so these are in bijection. There are a total of 8n8^{n} nn-tuples, f(n)f(n) of which satisfy 5∣2a1+…+2an5 \mid 2^{a_{1}}+\ldots+2^{a_{n}}, so there are 8n−f(n)8^{n}-f(n) for which 5∤2a1+…+2an5 \nmid 2^{a_{1}}+\ldots+2^{a_{n}}. Therefore, f(n+1)=2(8n−f(n))f(n+1)=2\left(8^{n}-f(n)\right).

We now have f(1)=0f(1)=0, f(2)=2(8−0)=16f(2)=2(8-0)=16, f(3)=2(64−16)=96f(3)=2(64-16)=96, f(4)=2(512−96)=832f(4)=2(512-96)=832, f(5)=2(4096−832)=6528f(5)=2(4096-832)=6528.

Answer: 65286528

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

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.