Professional Documents
Culture Documents
Russia Locally AP Problem: Camp Pss 1 Rohan Goyal
Russia Locally AP Problem: Camp Pss 1 Rohan Goyal
CAMP PSS 1
Rohan Goyal
August 7, 2021
Solution. Since the sequence doesn’t seem to grow fast enough, we will try to find large
sequences which locally behave almost like APs and if we skip the correct amount of
terms, we will get an AP. So, we do the proof in two parts-
First part, that there is an M such that within any non constant AP of size M , we will
have atleast one term with atleast one decimal digit 5 and then we will prove that there
exists an N such that in any N consecutive terms, there will be an M sized subsequence
which is an AP.
Lemma 1.1
Within any 10, 000 length non constant positive AP, there exists a term which has
atleast one digit in its decimal representation as 5.
Proof. WLOG, we can assume that the common difference is not a multiple of 10, else
you can look at the AP without the unit digit and so on.
Now, look at the sequence mod 10000. We infact claim that within this sequence
(mod 10, 000), we will find a term with a digit as 5.
Now, let the common difference be d (mod 10, 000) and a as the first term. Observe now,
that if for any c, we prove that a + cd (mod 10000) has a digit 5 then we will be done
since we can also look at c (mod 10000).
1
Rohan Goyal (August 7, 2021) Russia Locally AP Problem
Now, let c = c0 x + 8c0 . Now, a + d(c0 x + 8c0 ) ≡ a + 5000 + 625x (mod 10, 000) which
clearly works.
If 5 - d, then we can repeat the argument with 625 replaced with 16 and 5000 replaced
with 5000 ± 8 and atleast one of the two situations will work.
Claim 1.2 — For any M > 1, we can find an N such that in any consecutive N
terms of the sequence, there’s an M AP. The M = 1 case is meaningless.
2018 2018
Let bn = (n + 1) 2017 − n 2017 .
Lemma 1.3
cn = bn+1 − bn is decreasing.
Now, we look at cn = f (n) and showing that f has negative derivative which will imply
the result.
So, we want
1 1
(n + 2) 2017 + n 2017 1
< (n + 1) 2017
2
2017 2017
for n ≥ 0 which immediately follows as a +b2 ≥ ( a+b
2 )
2017 by AM-QM. The result is
1 1
now simply looking at a = n 2017 and b = (n + 2) 2017
Lemma 1.4
cn gets arbitrarily close to 0.
Proof. Let ak be the smallest term such that k > N 0 . Now, we have atleast 16M 2 + 1
terms in the sequence ai atleast as large as ak .
1
Pick t ≤ 4M such that min({tbk }, 1 − {tbk }) ≤ 4M
This is again easily possible by the following idea:
2
Rohan Goyal (August 7, 2021) Russia Locally AP Problem
Lemma 1.6
For any α ∈ R, n ∈ N, there exists m ∈ {1, 2, · · · n} such that
1
min({mα}, 1 − {mα}) ≤
n
Proof. FTSOC, assume this is impossible. Now, say r ∈ Si if ni {rα} ≤ i+1 n for i ∈
{0, 1, 2, · · · n − 1}. By our assumption, no r ∈ c0 . Thus, by PHP, there are i ∈
{0, 1, 2, · · · n − 1} and j =
6 k ∈ {1, 2, · · · n} such that j, k ∈ ci . Now, m = |i − j| just
works.
2018
Proof. Let di = b(k + it)c 2017 . So, we just want there to be an M sized AP in
{bd0 c , bd1 c , · · · bd4M c}
1 1
Now, consider {tbk } ≤ 4M and 1 − {tbk } ≤ 4M .
1
Case ({tbk } ≤ 4M ). In this case, we will infact find an AP in first M terms.
Now, observe that
1 16M 2 1
{tbk+ti } ≤ {tbk } + 4tick ≤ + 1000000
≤
4M 10000M 2M
1
Thus, {di+1 − di } ≤ 2M
Also, btbk c = btbk+it c and thus bdi+1 − di c is constant. Let this constant be D.
{ds+i+1 } ≥ {ds+i }
as
3
Rohan Goyal (August 7, 2021) Russia Locally AP Problem
1 1
Case (1 − {tbk } ≤ 4M ). Now, consider if 1 − {tbk+i } > 4M for any i. If this happens in
first 2M terms then we just look at last 2M terms of the series and finish as case 1.
1
Now, assume that 1 − {tbk+i } < 4M for i ∈ {1, 2, · · · 2M }. Now, we just repeat the
previous proof as is with first 2M terms and picking s such that {ds } is maximized.
Now, just set M = 10000 and by 1.1, we can finish as we can pick an N , where we will
always get an N sized AP!