Maths Olympiad Prep

Library / /133 of 144

Number theory Difficulty 8.8 Shortlist Find the answer

Let a>1a > 1 be a positive integer and d>1d > 1 be a positive integer coprime to aa. Let x1=1x_1=1, and for k1k\geq 1, define
xk+1={xk+dif a does not divide xkxk/aif a divides xkx_{k+1} = \begin{cases} x_k + d &\text{if } a \text{ does not divide } x_k \\ x_k/a & \text{if } a \text{ divides } x_k \end{cases}
Find, in terms of aa and dd, the greatest positive integer nn for which there exists an index kk such that xkx_k is divisible by ana^n.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Given a sequence defined as x1=1 x_1 = 1 , and for k1 k \geq 1 :
xk+1={xk+dif a does not divide xkxkaif a divides xk x_{k+1} = \begin{cases} x_k + d & \text{if } a \text{ does not divide } x_k \\ \frac{x_k}{a} & \text{if } a \text{ divides } x_k \end{cases}
we need to determine the greatest positive integer n n for which there exists an index k k such that xk x_k is divisible by an a^n .

### Analysis

1. Initial Observations:
- The sequence starts at x1=1 x_1 = 1 .
- We apply the operation xk+d x_k + d as long as xk x_k is not divisible by a a .

2. Divisibility Rule:
- Whenever xk x_k becomes divisible by a a , we divide it by a a .
- We aim to explore how deeply xk x_k can be divisible by a a , or how large n n can be such that anxk a^n \mid x_k .

3. Operation Analysis:
- Each time axk a \mid x_k , we reduce the power of a a in xk x_k by one (i.e., xkxk/a x_k \to x_k/a ).
- This reduction can occur only if, between consecutive axk a \mid x_k conditions, the additions xk+d x_{k} + d consistently reach a point xk0(moda) x_k \equiv 0 \pmod{a} .

4. Balancing Act:
- We require that adding d d , which is coprime to a a , should eventually lead back to a number divisible by higher powers of a a .

5. Rational Argument:
- If anxk a^n \mid x_k for some n n , then undergoing the reduction xk/a x_k/a for reaching an a^n implies:
- Possible continuous multiplication of a a (n (n times) without returning to situation without axk a \mid x_k .
- The key reaches through exploration that achieving xk x_k reduces by dividing a a into d1,d2, d^1, d^2, \ldots , up to dn d^n .

6. Critical Insight:
- Since an×x1=an×1=an a^n \times x_1 = a^n \times 1 = a^n , and our xk x_k grows through increments of d d ,
- The critical component driving when xk0(modan) x_k \equiv 0 \pmod{a^n} is fundamentally bound by how additions of d d can fill these slots.
- We resolve that the greatest n n for which this manipulation of xk x_k evolves is encapsulated by:
n=logad n = \lceil \log_a d \rceil

Hence, the greatest integer n n such that there exists some xk0(modan) x_k \equiv 0 \pmod{a^n} is:
logad \boxed{\lceil \log_a d \rceil}

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.