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

Home > Just Math
Power 2 Sum Power 3 And 5 (Posted on 2008-10-04) Difficulty: 4 of 5
Determine all possible pair(s) of nonnegative integers (P, Q), that satisfy this equation:

                                         2P = 3Q + 5

See The Solution Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): Charlie --asking more | Comment 10 of 11 |
(In reply to re(2): Charlie --asking more by Ady TZIDON)

I don't know the algorithm used for 2^1000 for example, but I'm pretty sure it doesn't use logarithms, as, if it did, I'd expect less accuracy (i.e., not perfect accuracy) at least for some n in 2^n.

list
    5   T=time1000
   10   for I=1000 to 6000
   20    X=2^I
   30   next
   50   print time1000-T
OK
run
 103
OK

indicates 103 milliseconds for that run on a 2 GHz processor. However, my 4 GHz processor is much more than twice as fast at other things, so it depends on more than just the GHz.

There's a Wikipedia article on UBASIC, with links at the bottom for obtaining it.


  Posted by Charlie on 2008-10-05 19:12:03
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 (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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