Maths Olympiad Prep

Library / HMMT February /1259 of 1302

HMMT February

Number theory Difficulty 6.1 National Olympiad Prove it United States

Problem:

Define a power cycle to be a set SS consisting of the nonnegative integer powers of an integer aa, i.e. S={1,a,a2,…}S = \{1, a, a^{2}, \ldots\} for some integer aa. What is the minimum number of power cycles required such that given any odd integer nn, there exists some integer kk in one of the power cycles such that n≡k(mod1024)n \equiv k \pmod{1024}?

Solutions — 2

Solution 1

Solution:

Answer: 10

Partition the odd residues mod 1024 into 10 classes:
- Class 1: 1(mod4)1 \pmod{4}.
- Class nn (2≤n≤9)(2 \leq n \leq 9): 2n−1(mod2n+1)2^{n}-1 \pmod{2^{n+1}}.
- Class 10: −1(mod1024)-1 \pmod{1024}.

Let SaS_{a} be the power cycle generated by aa. If aa is in class 1, all of SaS_{a} is in class 1. If aa is in class nn (2≤n≤9)(2 \leq n \leq 9), then SaS_{a} is in the union of class nn and the residues 1(mod2n+1)1 \pmod{2^{n+1}}. If aa is in class 10, then SaS_{a} is in the union of class nn and the residues 1(mod1024)1 \pmod{1024}. Therefore, SaS_{a} cannot contain two of the following residues: 5,22−1,23−1,…,210−15, 2^{2}-1, 2^{3}-1, \ldots, 2^{10}-1, and that at least 10 cycles are needed.

Note that 5128−1=(5−1)(5+1)(52+1)⋯(564+1)5^{128}-1 = (5-1)(5+1)(5^{2}+1) \cdots (5^{64}+1) has exactly 9 factors of 2 in its prime factorization, while 5256−1=(5128−1)(5128+1)5^{256}-1 = (5^{128}-1)(5^{128}+1) is divisible by 1024 so the order of 5 modulo 1024, the smallest positive power of 5 that is congruent to 1, is 256. Observe that among 50,51,…,52555^{0}, 5^{1}, \ldots, 5^{255}, the ratio between any two is a positive power of 5 smaller than 52565^{256}, so the ratio is not congruent to 1 and any two terms are not congruent mod 1024. In addition, all terms are in class 1, and class 1 has 256 members, so S5S_{5} contains members congruent to each element of class 1.

Similarly, let 2≤n≤92 \leq n \leq 9. Then the order of aa, where a=2n−1a = 2^{n}-1, is 210−n2^{10-n}. The 29−n2^{9-n} terms a1,a3,…,a210−n−1a^{1}, a^{3}, \ldots, a^{2^{10-n}-1} are pairwise not congruent and all in class nn. Class nn only has 29−n2^{9-n} members, so SaS_{a} contains members congruent to each element of class nn.

Finally, S−1S_{-1} contains members congruent to the element of class 10.

The cycles S5,S−1S_{5}, S_{-1}, and 8 cycles SaS_{a} cover all the residues mod 1024, so the answer is 10.

Solution 2

Solution:

Lemma. Given a positive integer n≥3n \geq 3, there exists an odd integer xx such that the order of xx modulo 2n2^{n} is 2n−22^{n-2}.

Proof. We apply induction on nn. The base cases of n=3,4n=3,4 are clearly true with x=3x=3, so suppose we have the statement holds for n−1n-1 and we wish to show it for nn where n≥5n \geq 5. Suppose no such integer xx exists, so we have x2n−3≡1(mod2n)x^{2^{n-3}} \equiv 1 \pmod{2^{n}} for all odd xx. But then remark that (x2n−4−1)(x2n−4+1)≡0(mod2n)(x^{2^{n-4}}-1)(x^{2^{n-4}}+1) \equiv 0 \pmod{2^{n}}. As n−4≥1n-4 \geq 1 we have x2n−4+1≡2(mod4)x^{2^{n-4}}+1 \equiv 2 \pmod{4} as all squares are 1(mod4)1 \pmod{4}, so it follows for the above relation to be true we require 2n−12^{n-1} divides x2n−4−1x^{2^{n-4}}-1 for all odd xx. However, by taking xx to have order 2n−32^{n-3} modulo 2n−12^{n-1} (which exists by the inductive hypothesis) we get a contradiction so we are done.

Now, let xx have order 282^{8} modulo 2102^{10}. Remark that if for some integer kk we had xk≡−1(mod210)x^{k} \equiv -1 \pmod{2^{10}}, we would have x2k≡1(mod210)x^{2k} \equiv 1 \pmod{2^{10}} so 27∣k2^{7} \mid k. In that case kk is even so as xx is odd we have xk≡1(mod4)x^{k} \equiv 1 \pmod{4} but −1+1024m-1+1024m is never 1(mod4)1 \pmod{4} for any integer mm so it follows −1-1 is not equal to xkx^{k} modulo 1024 for any integer kk. Thus it follows that when we let SS to be the set of powers of xx, then no two elements in SS and −S-S are congruent modulo 1024. As the order of xx is 256 and there are 512 possible odd remainders upon dividing by 1024, it immediately follows that every integer xx is congruent modulo 1024 to ±xk\pm x^{k} for some 1≤k≤2561 \leq k \leq 256 and some choice of sign.

Now, it is easy to see that x,−x,−x2,−x4,…,−x27,−x28x, -x, -x^{2}, -x^{4}, \ldots, -x^{2^{7}}, -x^{2^{8}} generating 10 power cycles works (xax^{a} for any aa is in the first, and then −x2ka-x^{2^{k} a} for odd aa is in the power cycle generated by −x2k-x^{2^{k}}). To show that we cannot do any better suppose there exist 9 power cycles which include all odd integers modulo 1024. Then remark that −x2k-x^{2^{k}} is congruent to a number in a power cycle modulo 1024 if and only if the power cycle is generated by an integer congruent to x−2k⋅a(mod1024)x^{-2^{k} \cdot a} \pmod{1024} where aa is an odd integer. It follows that 9 integers must be congruent to −xa1,−x2a2,…,−x256a9(mod1024)-x^{a_{1}}, -x^{2 a_{2}}, \ldots, -x^{256 a_{9}} \pmod{1024} for some odd integers a1,a2,…,a9a_{1}, a_{2}, \ldots, a_{9}. But then 3 is clearly not in any of the power cycles, contradiction so it follows we must have at least 10 power cycles so we are done.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.