Prove that for any natural n≥2, the number n times22⋯2−n−1 times22⋯2 is divisible by n.
I know, that it is a very old problem :blush: but it is a problem from olympiad.
This one wants a proof. Work it on paper, read the official solution, then mark
yourself honestly — the ladder only means something if the record is true.
Official solution
1. Define the functions f(n) and g(n) as follows: f(n)=n times22⋯2,g(n)=f(n)−f(n−1) Here, f(n) represents the tower of exponents with n layers of 2's.
2. Observe that: g(n)=f(n−1)(2g(n−1)−1) This follows from the fact that f(n)=2f(n−1).
3. Let n be an odd number and let ord2(n) be the minimal positive integer k such that n∣2k−1. This is the order of 2 modulo n.
4. Define x(n) as the maximal odd divisor of n and c(n)=x(ord2(x(n))).
5. We need to show that n∣f(n)−f(n−1). We will use induction on n.
6. Base case: For n=2, we have: f(2)=22=4,f(1)=2 Thus, f(2)−f(1)=4−2=2 Clearly, 2∣2.
7. Inductive step: Assume that for some k≥2, k∣f(k)−f(k−1). We need to show that k+1∣f(k+1)−f(k).
8. By the induction hypothesis, k∣f(k)−f(k−1). We need to show that k+1∣f(k+1)−f(k).
9. Consider the expression: f(k+1)=2f(k) and f(k)=2f(k−1) Therefore, f(k+1)−f(k)=2f(k)−2f(k−1)
10. Since k∣f(k)−f(k−1), we have f(k)≡f(k−1)(modk). Thus, 2f(k)≡2f(k−1)(modk) This implies that: 2f(k)−2f(k−1)≡0(modk)
11. Now, we need to show that k+1∣2f(k)−2f(k−1). Since k+1 is coprime to k, we can use the Chinese Remainder Theorem to conclude that k+1∣2f(k)−2f(k−1).
12. Therefore, by induction, n∣f(n)−f(n−1) for all n≥2.
■
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.