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:
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 (3)
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