How to find the remainder of a very large number?!
Favorites|Homepage
Subscriptions | sitemap
HOME > > How to find the remainder of a very large number?!

How to find the remainder of a very large number?!

[From: ] [author: ] [Date: 12-04-02] [Hit: ]
You could do this the long way - calculate 10^2 = 100 === 9 mod 17, 10^4 === 9^2 === 13 mod 17, 10^8 = 13^2 === 16 mod 17, etc.........
how do i find the remainder of 10^400 divided by 17?

Thanks!$

-
If you raise 10 to a set of powers, it will cycle through a repeating set of values modulo 17. You could do this the long way - calculate 10^2 = 100 === 9 mod 17, 10^4 === 9^2 === 13 mod 17, 10^8 = 13^2 === 16 mod 17, etc... but there's a better way.

Euler's theorem states that for a prime number p:

a^(p-1) === 1 mod p

Therefore, 10^16 === 1 mod 17, and

10^400 = (10^16)^25 = 1^25 mod 17 = 1 mod 17

The remainder will be 1!

-
use the long step method
1
keywords: large,of,find,number,How,remainder,very,to,the,How to find the remainder of a very large number?!
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .