Maths Olympiad Prep

Library / /789 of 860

Algebra Difficulty 5.6 AIME, harder Find the answer

Define the sequence of positive integers {an}\left\{a_{n}\right\} as follows. Let a1=1,a2=3a_{1}=1, a_{2}=3, and for each n>2n>2, let ana_{n} be the result of expressing an1a_{n-1} in base n1n-1, then reading the resulting numeral in base nn, then adding 2 (in base nn). For example, a2=310=112a_{2}=3_{10}=11_{2}, so a3=113+23=610a_{3}=11_{3}+2_{3}=6_{10}. Express a2013a_{2013} in base ten.

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

Solution

We claim that for nonnegative integers mm and for 0n<32m,a32m+n=(32m+n)(m+2)+2n0 \leq n<3 \cdot 2^{m}, a_{3 \cdot 2^{m}+n}=\left(3 \cdot 2^{m}+n\right)(m+2)+2 n. We will prove this by induction; the base case for a3=6a_{3}=6 (when m=0m=0, n=0n=0) is given in the problem statement. Now, suppose that this is true for some pair mm and nn. We will divide this into two cases: Case 1: n<32m1n<3 \cdot 2^{m}-1. Then, we want to prove that this is true for mm and n+1n+1. In particular, writing a32m+na_{3 \cdot 2^{m}+n} in base 32m+n3 \cdot 2^{m}+n results in the digits m+2m+2 and 2n2 n. Consequently, reading it in base 32m+n+13 \cdot 2^{m}+n+1 gives a32m+n+1=2+(32m+n+1)(m+2)+2n=(22m+n+1)(m+2)+2(n+1)a_{3 \cdot 2^{m}+n+1}=2+\left(3 \cdot 2^{m}+n+1\right)(m+2)+2 n=\left(2 \cdot 2^{m}+n+1\right)(m+2)+2(n+1), as desired. Case 2: n=32m1n=3 \cdot 2^{m}-1. Then, we want to prove that this is true for m+1m+1 and 0. Similarly to the previous case, we get that a32m+n+1=a32m+1=2+(32m+n+1)(m+2)+2n=2+(32m+1)(m+2)+2(32m1)=(32m+1+0)((m+1)+2)+2(0)a_{3 \cdot 2^{m}+n+1}=a_{3 \cdot 2^{m+1}}=2+\left(3 \cdot 2^{m}+n+1\right)(m+2)+2 n=2+\left(3 \cdot 2^{m+1}\right)(m+2)+2\left(3 \cdot 2^{m}-1\right)=\left(3 \cdot 2^{m+1}+0\right)((m+1)+2)+2(0), as desired. In both cases, we have proved our claim.

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.