All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Year by Year (Posted on 2004-11-23) Difficulty: 4 of 5
Consider N=2004^2004.

1) What are the first 3 digits of N?

2) What are the last 3 digits of N?

See The Solution Submitted by SilverKnight    
Rating: 2.3333 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution To Part II | Comment 7 of 8 |
(In reply to Solution To Part I by K Sengupta)

It can easily be shown in terms of analytical methods that:
376^m (mod 1000)
= 376, for any positive integer m............(i)

Now, we know that:
4^10 (Mod 1000) = 576, while:
576^5 (Mod 1000) = 376
Or, 4^50 (Mod 1000) = 376, for any positive integer m (from (i))
........... (ii)

Now, 2004(Mod 1000) = 4
or, 2004^p (Mod 1000) = 4^p (mod 1000), for any non negative integer  p.

Thus, substituting m = 40 in (ii), we obtain:

2004^2000 (Mod 1000)
= 4^2000 (Mod 1000)
= 376

But,
4^2002(Mod 1000) = 376*16 (Mod 1000)
= 16

Accordingly,
2004^2004 (Mod 1000)
= 16*16 (Mod 1000)
= 256

Consequently, the last three digits of N are 256

Edited on October 18, 2007, 6:29 am
  Posted by K Sengupta on 2007-10-18 06:28:07

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information