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

Home > Just Math
An Atypical Evaluation (Posted on 2006-08-13) Difficulty: 4 of 5
Determine all possible positive integers x and y such that 3x-2y=17.

See The Solution Submitted by K Sengupta    
Rating: 4.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
computer exploration--possible spoiler | Comment 1 of 6

10   X=3:P=27
20   while X<1000000
30     Y=log(P-17)/log(2)
35     Yr=int(Y+0.5)
40     if abs(Y-Yr)<0.00000001 then print x,y
80     X=X+1:P=P*3
90   wend

finds only x=4, y=6, before overflowing the capacity of the log function at x = 5432.

  Posted by Charlie on 2006-08-13 12:00:31
Please log in:
Remember me:
Sign up! | Forgot password

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

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information