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

Home > Numbers
Three 3 digit numbers using 1-9 (Posted on 2010-11-11) Difficulty: 3 of 5
There are three 3 digit numbers such that the digits 1,2,3...8,9 are used once each to write them. They are found to be in the ratio 1:3:5 Find all such possible triplets.

No Solution Yet Submitted by Vishal Gupta    
Rating: 2.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution the program to find them | Comment 2 of 3 |

DEFDBL A-Z
DECLARE SUB permute (a$)
CLS
a$ = "123456789": h$ = a$
DO
  a = VAL(LEFT$(a$, 3))
  b = VAL(MID$(a$, 4, 3))
  c = VAL(RIGHT$(a$, 3))
  IF a * 3 = b AND b * 5 = c * 3 THEN PRINT a; b; c
  permute a$
LOOP UNTIL a$ = h$

does find only one solution:

 129  387  645


  Posted by Charlie on 2010-11-11 18:50:28
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 (12)
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