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

Home > Just Math
Absolute Value Muse (Posted on 2014-02-19) Difficulty: 3 of 5
Determine the number of integer solutions to:
|x|+ |y| + |z| = 15


The absolute value function F(x) = |x| is defined as:
        x if x ≥ 0
F(x) = 
       -x if x < 0

No Solution Yet Submitted by K Sengupta    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution | Comment 1 of 4

If restricted to non-negative integers, the number of solutions would be  C(17,2) = 136. If none of these involved zero as a value we could multiply by 8 for the combinations that could be negated. But the count of those that don't involve zeros is C(14,2) = 91, as we need to add 12 in all to the 1's in each variable.  This leaves 45 that involve zeros.

Three of the 45 involve two zeros each (x=15, y=15 and z=15), so 42 involve only 1 zero.  The three with double zeros need to be multiplied by 2, for positive/negative, and the 42 with only one zero need be multiplied by 4 for the combinations of positive/negative for the two non-zero values.

That's 91*8 + 42*4 + 3*2 = 902.

  Posted by Charlie on 2014-02-19 14:16:30
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (4)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information