Fun math problem

Hey! What about my solution? It's the only non-mod solution around, because I figured most people would use mod to solve it, so I wanted to be "different" :p
...
Last three digits of [ - (2009C2)*100 + 2009*10 - 1 ]
= -[last digit of 2009C2]*100 + 90 -1
= -[2009!/2!2007!]*100 + 89
= -[2009*2008/2]*100 + 89
= -[last digit of 9*8/2]*100 + 89
= -511

1000-511 = 489

By saying take the "last n digits of x", you are more or less taking x mod 10^n. But agreed, it is a bit more intuitive than explicitly using mods.

The simplest way I could think of was to do (calculator required):
(2009^2009)%1000
= (9^2009)%1000
= (9^41*7*7)%1000
= (((9^41)^7)^7)%1000
= (((((9^41)%1000)^7)%1000)^7)%1000
(calculator now required... pc's calculator works fine, or TI89)
= (((409^7)%1000)^7)%1000
= (769^7)%1000
= 489
 
Last edited:
you wouldnt know that you needed to find 9^9 if you didn't know 2009^50 = 1 mod 1000
 
@ nitrocan: No, i don't even know what you're talking about.
step 1: read the question.
step 2: punch 9^9 on any 10 digit display calculator, then take the last 3 digits.
step 3: compare with the computer generated answer, find out you're right and be happy. :)
@brunson: college is college. what did you expect from me?
@ blah: lalala... it's national day and the olympics soon.
 
Dude, a 10-digit display calculator shows you the first 10 digits, not the last 10...
 
you dont get it. the reason 9^9 works because 2009^2009 = 2009^2000*2009^9 and 2009^2000 = 1 mod 1000 so it doesnt change the result, so 2009^9 would be our answer, 2009 = 9 mod 1000, so we're looking for 9^9. thats a proper answer.
 
Back
Top