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

Home > Numbers
Number = Power Remainder (Posted on 2009-08-20) Difficulty: 2 of 5
Determine all possible value(s) of a 4-digit non leading zero base ten positive integer x such that the remainder obtained upon dividing 2x by 10,000 is equal to x.

What are the possible value(s) of a 4-digit non leading zero base ten positive integer x such that the remainder obtained upon dividing 3x by 10,000 is equal to x?

See The Solution Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Qbasic solution | Comment 2 of 3 |

actually its fairly simple to implement in Qbasic as well

cls 0
b=2
pwrb=1
for x=1 to 999
 pwrb=(pwrb*b) mod 10000
next x
for x=1000 to 9999
 pwrb=(pwrb*b) mod 10000
 if pwrb=x then
  print x
 end if
next x

quickly finds 8736 for 2^x and changing b=2 to b=3 finds 5387 for 3^x


  Posted by Daniel on 2009-08-20 11:24:10
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (11)
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