Maths Olympiad Prep

Library / /47 of 84

, 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 0a1,a2,a3,a4,a570 \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 0a1,,an70 \leq a_{1}, \ldots, a_{n} \leq 7 and 52a1++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 0a1,,an70 \leq a_{1}, \ldots, a_{n} \leq 7 and 52a1++2an5 \nmid 2^{a_{1}}+\ldots+2^{a_{n}}, there are exactly two possible values for an+1a_{n+1} such that 0an+170 \leq a_{n+1} \leq 7 and 52a1++2an+15 \mid 2^{a_{1}}+\ldots+2^{a_{n+1}}, because 2n1,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 0a1,,an70 \leq a_{1}, \ldots, a_{n} \leq 7 and 52a1++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 52a1++2an5 \mid 2^{a_{1}}+\ldots+2^{a_{n}}, so there are 8nf(n)8^{n}-f(n) for which 52a1++2an5 \nmid 2^{a_{1}}+\ldots+2^{a_{n}}. Therefore, f(n+1)=2(8nf(n))f(n+1)=2\left(8^{n}-f(n)\right).

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

Answer: 65286528

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: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.