We need to find what is the remainder when \(54^{124}\) is divided by 17\(54^{124}\) = \((51 + 3)^{124}\) = \((17*3 + 3}^{124}\)
using binomial theorem if we open this then all terms except the last term will be a multiple of 17 => Remainder of all the terms except the last term with 17 will be zero
=> Remainder will be same as the remainder of the last term = \(3^{124}\) = \(3^{4*31}\) = \((3^4)^{31}\) = \(81^{31}\) = \((85 -4)^{31}\) = \((17*5 -4)^{31}\)
using binomial theorem if we open this then all terms except the last term will be a multiple of 17 => Remainder of all the terms except the last term with 17 will be zero
=> Remainder will be same as the remainder of the last term = \((-4)^{31}\) = -4 * \(4^{30}\) = -4 * \(4^{2*15}\) = -4 * \(16^{15}\) = -4 * \((17 - 1)^{15}\)
using binomial theorem if we open \((17 - 1)^{15}\) then all terms except the last term will be a multiple of 17 => Remainder of all the terms except the last term with 17 will be zero
=> Remainder will be same as the remainder of the last term * -4 = \((-1)^{15}\) = -1 * -4 = 4
So,
Answer will be AHope it helps!
Watch the following video to learn the Basics of Remainders