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

Home > Numbers
Thirds and Differences (Posted on 2005-07-21) Difficulty: 2 of 5

Arrange the digits 1-9 so that the first 3 form a number that is 1/3 of the number formed by the last three and the three digits in the middle form a number that is the difference between them.

The numbers are as they appear, not summed.

No Solution Yet Submitted by Erik O.    
Rating: 3.0000 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution How about ... | Comment 2 of 12 |

... four solutions:

192  384  576
219  438  657
273  546  819
327  654  981

CLS
a$ = "123456789": h$ = a$
DO
  n1 = VAL(LEFT$(a$, 3))
  n2 = VAL(MID$(a$, 4, 3))
  n3 = VAL(RIGHT$(a$, 3))
  IF n3 = 3 * n1 AND n2 = n3 - n1 THEN
    PRINT n1; n2; n3
  END IF
  permute a$
LOOP UNTIL h$ = a$


  Posted by Charlie on 2005-07-21 16:15:01
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 (14)
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