Linear congruence. \[ 3x+y\equiv21 \pmod 5\text{ and }x-y\equiv7\pmod 5 \] Find the smallest positive value of a such that \(x\equiv a\pmod 5\).
Can I rearrange the equation and subtract two equations together?
Just want to make sure that I can subtract congruence relationships together.
@ganeshie8
definitely yes, you can subtract/add : If \(a\equiv b \pmod{n}\) and \(c\equiv d\pmod{n}\), then \(a+c \equiv b+d \pmod n\)
Another question.
Given that p is a prime number show that \(p|(ab^p-a^pb)\) for all positive integers a and b.
familiar with Fermat's little thm ?
Nope. All I know is \(a^p\equiv a\pmod p\).
thats Fermat's little thm and yes thats all we need to know
\(a^p \equiv a \pmod p\) \(b^p \equiv b \pmod p\)
multiply first congruence by \(b\) multiply second congruence by \(a\) subtract
Join our real-time social learning platform and learn together with your friends!