Textbook question:
Exactly three primes p with $ord_p (2) = 100$. Find them and show your list is complete.
My approach:
factorize $2^{100} - 1$ $2^{100} - 1 = 3^1*5^3*11^1*31^1*41^1*101^1*251^1*601^1*1801^1*4051^1*8101^1*268501^1$
for each of primes in above I tested if: $2^{100} \ (\bmod prime) =^{?}= 1$ and result is:
$3, 5, 11, 31, 41, 101, 251, 601, 1801, 4051, 8101, 268501$
So, I get $12$ primes but question says it should be $3$ primes. I am confused.
Sage code:
number = 2^100 - 1
arr = list(factor(number))
for (prime, exponent) in arr:
if 2^100 % prime == 1:
print prime