Most of the calculators unable to calulate Remainder of long division.
Today I am going to show you a easy way to Calculate Remainder of Long Division using square-and-multiply algorithm.
Consider example as (25)17 % 77
As we know,
2517 = 2516 x 251
So we perform steps as follows:
251 % 77 = 25
252 % 77 = 9
254 % 77 = 92 % 77 = 4
258 % 77 = 42 % 77 = 16
2516 % 77 = 162 % 77 =25
Since, 17 = 16 + 1 we stopped after 2516 % 77
Final computation,
(25)17 % 77 = { [ (25)16 % 77 ] x [ (25)1 % 77 ] } % 77
= { 25x25 } % 77
= 9
Happy Coding With Mathematics!
Today I am going to show you a easy way to Calculate Remainder of Long Division using square-and-multiply algorithm.
Consider example as (25)17 % 77
As we know,
2517 = 2516 x 251
So we perform steps as follows:
251 % 77 = 25
252 % 77 = 9
254 % 77 = 92 % 77 = 4
258 % 77 = 42 % 77 = 16
2516 % 77 = 162 % 77 =25
Since, 17 = 16 + 1 we stopped after 2516 % 77
Final computation,
(25)17 % 77 = { [ (25)16 % 77 ] x [ (25)1 % 77 ] } % 77
= { 25x25 } % 77
= 9
Happy Coding With Mathematics!
Comments