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 Python solution | Comment 10 of 12 |
192 384 576
219 438 657
273 546 819
327 654 981

------ Python code follows ------
from itertools import permutations

nums = [1,2,3,4,5,6,7,8,9]
for j in permutations(nums):
    x = 100*j[0] + 10*j[1] + j[2]
    y = 100*j[3] + 10*j[4] + j[5]
    z = 100*j[6] + 10*j[7] + j[8]
    if z != 3*x:
        continue
    if y != z-x:
        continue
    print(x,y,z)

  Posted by Larry on 2021-02-26 16:29:58
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 (13)
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