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.)
Solution computer solution | Comment 2 of 10 |
for y=1:100
  for mult=1:100/y
    x=y*mult;
    tot=y-x+y+x+x*y+y/x;
    if tot==324
      disp([x y x+y y-x x*y y/x])
    end
  end
end

     x     y         x+y   x-y   x*y    y/x
    17    17          34     0   289     1

34  +   0 +  289  +   1   = 324

  Posted by Charlie on 2024-05-21 09:20:54
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
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