Find the remainder when 798 is divided by 5.
We try to express 7 in terms of multiples of 5.If we write 7 = 10 - 3,it won't be very easy to expand it.So we will consider the next power of 7,49.
We can write 798=(49)49.If we write like this, we can write 49 = 50 - 1.It will be easy to expand also as (-1) only changes the sign of terms and the last term will be either 1 or (-1).
798=(50−1)49
(50−1)49=49C0(50)49−49C1(50)48+49C2(50)47............49C48(50)1−49C49
49C0(50)49−49C1(50)48+49C2(50)47............49×(50)1 is multiple of 5.We will replace it by 5k.
⇒(50−1)49=5k−1
⇒(50−1)49=5k−5+4
⇒(50−1)49=5(k−1)+4
⇒ The remainder will be 4.