Solution:
Answer: 10
Partition the odd residues mod 1024 into 10 classes:
- Class 1: 1(mod4).
- Class n (2≤n≤9): 2n−1(mod2n+1).
- Class 10: −1(mod1024).
Let Sa be the power cycle generated by a. If a is in class 1, all of Sa is in class 1. If a is in class n (2≤n≤9), then Sa is in the union of class n and the residues 1(mod2n+1). If a is in class 10, then Sa is in the union of class n and the residues 1(mod1024). Therefore, Sa cannot contain two of the following residues: 5,22−1,23−1,…,210−1, and that at least 10 cycles are needed.
Note that 5128−1=(5−1)(5+1)(52+1)⋯(564+1) has exactly 9 factors of 2 in its prime factorization, while 5256−1=(5128−1)(5128+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,…,5255, the ratio between any two is a positive power of 5 smaller than 5256, 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 S5 contains members congruent to each element of class 1.
Similarly, let 2≤n≤9. Then the order of a, where a=2n−1, is 210−n. The 29−n terms a1,a3,…,a210−n−1 are pairwise not congruent and all in class n. Class n only has 29−n members, so Sa contains members congruent to each element of class n.
Finally, S−1 contains members congruent to the element of class 10.
The cycles S5,S−1, and 8 cycles Sa cover all the residues mod 1024, so the answer is 10.