Maths Olympiad Prep

Track / Stage 5 / 267 of 400 #867 of 1964

Problem 867

AIME late
Number theory Difficulty 5.7 Find the answer

N3. Let a>1a>1 be a positive integer, and let d>1d>1 be a positive integer coprime to aa. Let x11x_{1}-1 and, for k1k \geqslant 1, define
xk+1={xk+d if a doesn’t divide xk,xk/a if a divides xk. x_{k+1}=\left\{\begin{array}{ll} x_{k}+d & \text { if } a \text { doesn't divide } x_{k}, \\ x_{k} / a & \text { if } a \text { divides } x_{k} . \end{array}\right.

Find the greatest positive integer nn for which there exists an index kk such that xkx_{k} is divisible by ana^{n}.

The source for this one didn't record the answer, so there is nothing to check what you type against. Work it on paper and mark yourself against the solution below.

Official solution

Answer: nn is the exponent with d0:0d{d0}: 0d then ydSy-d \in S but aySa \cdot y \notin S; otherwise, if $yd, a\\ a \cdot y & \text{} { if } y1beanindexsuchthat be an index such that x_{k_{1}}-1$. Then
xk1=1,xk11=f1(1)=a,xk12=f1(a)=a2,,xk1n=an. x_{k_{1}}=1, \quad x_{k_{1}-1}=f^{-1}(1)=a, x_{k_{1}-2}=f^{-1}(a)=a^{2}, \ldots, \quad x_{k_{1}-n}=a^{n} .

Solution 3. Like in the first solution, xkx_{k} is relatively prime to dd and xkan/a=an1x_{k}a^{n} / a=a^{n-1} the LHS is strictly less than avna^{v-n}. This implies that on the RHS, the coefficients of avn,avn+1,a^{v-n}, a^{v-n+1}, \ldots must all be zero, i.e. zvnzvn+1zv1=0z_{v-n}-z_{v-n+1}-\cdots-z_{v-1}=0. This implies that there are nn consecutive decreasing indices in the original sequence.

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