Answer: 2
To find the value of 351(mod5), we can use Fermat's Little Theorem.
Fermat's Little Theorem states that if p is a prime number and a is an integer such that gcd(a,p)=1, then:
ap−1≡1(modp)Here, a=3 and p=5 (which is prime). Therefore:
35−1≡34≡1(mod5)Now, we express the exponent 51 in terms of 4:
51=4×12+3Using this, we can simplify the expression:
351=34×12+3=(34)12×33Taking modulo 5 on both sides:
351≡(1)12×33(mod5)351≡1×27(mod5)351≡27(mod5)Since 27=5×5+2, we have:
27≡2(mod5)Thus, the value of 351(mod5) is 2.