We know to find what is the remainder when \(104^{358}+7^{29}\) is divided by 5Lets solve the problem using two methods:Method 1: Units' Digit CycleTheory: Remainder of a number by 5 is same as the Remainder of the unit's digit of the number by 5(Watch this Video to Learn How to find Remainders of Numbers by 5)Units' digit of \(104^{358}\), will be same units' digit of \(4^{358}\)
We can do this by finding the pattern / cycle of unit's digit of power of 4 and then generalizing it.Unit's digit of \(4^1\) = 4
Unit's digit of \(4^2\) = 6
Unit's digit of \(4^3\) = 4
So, unit's digit of power of 4 repeats after every \(2^{nd}\) number.
=> If power is odd then units' digit is 4
=> If power is even then units' digit is 6
=> Unit's digits of \(104^{358}\) = 6We can do this by finding the pattern / cycle of unit's digit of power of 7 and then generalizing it.Unit's digit of \(7^1\) = 7
Unit's digit of \(7^2\) = 9
Unit's digit of \(7^3\) = 3
Unit's digit of \(7^4\) = 1
Unit's digit of \(7^5\) = 7
So, unit's digit of power of 7 repeats after every \(4^{th}\) number.
=> Remainder of 29 by 4 = 1
=> Units' digit of \(7^{29}\) = Units' digit of \(7^1\) = 7
=> Unit's digits of \(104^{358}\) + Unit's digits of \(7^{29}\) = 6 + 7 = 13
=> Remainder = Remainder of 13 by 5 = 3Method 2: Binomial TheoremWe solve these problems by using Binomial Theorem, where we split the number into two parts, one part is a multiple of the divisor(5) and a big number, other part is a small number.=> \(104^{358}+7^{29}\) = \((105 - 1)^{358}+(5 +2)^{29}\) Watch this video to MASTER BINOMIAL TheoremNow, when we expand this expression then all the terms except the last term will be a multiple of 5.=> All terms except the last term will give 0 as remainder then divided by 5
=> Problem is reduced to what is the remainder when the last term is divided by 5
=> What is the remainder when \(358C358 * 105^0 * (-1)^ {358}\) + \(29C29 * 5^0 * (2)^ {29}\) is divided by 5 = Remainder of 1 by 5 + Remainder of \(2^{29}\) by 5
Unit's digit of \(2^1\) = 2
Unit's digit of \(2^2\) = 4
Unit's digit of \(2^3\) = 8
Unit's digit of \(2^4\) = 6
Unit's digit of \(2^5\) = 2
Unit's digit of \(2^6\) = 4
So, unit's digit of power of 2 repeats after every \(4^{th}\) number.
=> Remainder of 29 by 4 = 1
=> Units' digit of \(2^{29}\) = Units' digit of \(2^1\) = 2
=> Remainder of 1 by 5 + Remainder of \(2^{29}\) by 5 = 1 + 2 = 3
So,
Answer will be BHope it helps!
MASTER How to Find Remainders with 2, 3, 5, 9, 10 and Binomial Theorem