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

Home > Just Math
Some Squares Sum Year (Posted on 2014-01-16) Difficulty: 3 of 5
Each of x, y and z is a positive integer satisfying:
x2+y2+z2 = 2014

How many solutions are there? For which triplets is x+y+z a perfect square? How many distinct values can x+y+z have?

*** Disregard permutations. For example, (p,q,r) and (p,r,q) should be treated as the same solution.

See The Solution Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re: I can program -- same answers in Basic Comment 2 of 2 |
(In reply to I can program by Jer)

CLS
FOR x = 1 TO SQR(2014 / 3)
FOR y = x TO SQR((2014 - x * x) / 2)
  z = INT(SQR(2014 - x * x - y * y) + .5)
  IF x * x + y * y + z * z = 2014 THEN
    PRINT x; y; z, x + y + z,
    sr = INT(SQR(x + y + z) + .5)
    IF sr * sr = x + y + z THEN PRINT "*", sr:  ELSE PRINT
  END IF
NEXT
NEXT

 

             sum of
x y z squares is square? square root
3  18  41     62
3  22  39     64           *              8
5  15  42     62
5  30  33     68
9  13  42     64           *              8
13  18  39    70
14  27  33    74
18  27  31    76
21  22  33    76

  Posted by Charlie on 2014-01-16 15:53:34
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 (21)
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