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

Home > Just Math
4 basic operations (Posted on 2024-05-21) Difficulty: 3 of 5
Let's select 2 integers in the range of 1 TO 100, say X and Y , (X>Y). To avoid fractions X should be a multiple of Y.
On those two integers we will perform 4 operations (addition, subtraction, multiplication and division) and then sum up the 4 answers.

Example X = 81 and Y = 9
sum would be 90
difference 72
product 729
and quotient 9

altogether 900

It's up to the solver to convert the final result, restoring the original values of X and Y.

Solve for final result 324

See The Solution Submitted by Ady TZIDON    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: Computer solution | Comment 5 of 10 |
(In reply to Computer solution by Larry)

(x,y) = (17,17) indeed produces the same sum of 324, but one of the given conditions was x>y which precludes x=y.


In my program, changing a 2 to a 1 in one line of code, allowing for x=y does add [17,17] to the solution set.

    for division in range(2, 1+int(100/y)):
    for division in range(1, 1+int(100/y)):

  Posted by Larry on 2024-05-21 09:59:08
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