- #1
22990atinesh
- 143
- 1
Homework Statement
Fermats little theorem states that
##a^{P-1} \mod P = 1 \mid ## a is coprime to P
Now I'm trying to solve this equation with the help of above theorem, But I'm ending up with wrong result
##2^{133} \mod 133##
Homework Equations
##a^{P-1} \mod P = 1##
##(A \times B) \mod n = [(A \mod n) \times (B \mod n)] \mod n##
The Attempt at a Solution
##2^{133} \mod 133##
##= 2^{132+1} \mod 133##
##= 2^{132} \times 2 \mod 133##
##= [2^{132} \mod 133] \times [2 \mod 133]##
##\because (A \times B) \mod n = [(A \mod n) \times (B \mod n)] \mod n##
##= 1 \times 2 = 2##
But the correct ans is ##2^{133} \mod 133 = 128##