Absolute Value Sum Inequality

How many ordered pairs of integers ( x , y ) (x,y) are there that satisfy x + y 10 |x| + |y| \leq 10 ?


The answer is 221.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

13 solutions

Pranav Arora
Nov 18, 2013

x + y 10 |x|+|y| \leq 10 represent a square with its vertices ( 10 , 0 ) , ( 0 , 10 ) , ( 10 , 0 ) (10,0),(0,10),(-10,0) and ( 0 , 10 ) (0,-10) . The area of the square is 200 200 units.

From Pick's Theorem , we have

A = i + b 2 1 \displaystyle A=i+\frac{b}{2}-1

where A A is the area of polygon (in this case, square), i i is the number of points lying inside the square and b b is the number of points lying on the edge of square.

From manual counting, the number of points on the edge are 40 i.e b = 40 b=40 .

We have to find N = i + b N=i+b .

A = i + b b 2 1 200 = N 21 \displaystyle A=i+b-\frac{b}{2}-1 \Rightarrow 200=N-21

N=221 \displaystyle \fbox{N=221}

Hi , i had a similar question, how would we solve for the no. of ordered pair of integers satisfying :

x 2 + y 2 100 x^2 + y^2 \leq 100

kushagraa aggarwal - 7 years, 6 months ago

Can you extend this method to x + y n |x| + |y| \leq n for an arbitrary value of n ? n?

Lino Demasi - 7 years, 6 months ago

Log in to reply

I am a simple guy doing some Math so I am not sure if I am capable enough of doing this. Here's what I tried:

The number of points on the edges are 4 ( n 1 ) + 4 = 4 n 4(n-1)+4=4n . The area of the square formed is 2 n 2 2n^2 .

From Pick's theorem,

A = N b 2 1 2 n 2 = N 2 n 1 \displaystyle A=N-\frac{b}{2}-1 \Rightarrow 2n^2=N-2n-1

N = 2 n 2 + 2 n + 1 \displaystyle \Rightarrow N=2n^2+2n+1

Does this look correct?

Pranav Arora - 7 years, 6 months ago

Log in to reply

Yes, its correct!!

Kishan k - 7 years, 6 months ago

Log in to reply

@Kishan K Gud one solution...

bittu thakur - 5 years, 1 month ago
T Wj
May 20, 2014

First, we solve for the number of ordered pairs of positive integer solutions (where x 0 , y 0 x \neq 0, y \neq 0 ). When x = 1 x=1 , y = { 1 , 2 , . . . , 9 } y=\{1,2,...,9\} , so there are n ( y ) = 9 n(y)=9 solutions; when x = 2 x=2 , n ( y ) = 8 n(y)=8 ; . . . when x = 9 x=9 , n ( y ) = 1 n(y)=1 . This gives us a total of 45. However, considering there are positive and negative x's and y's, so there are 45 × 4 = 180 45\times 4=180 solutions.

Now it's the time to count when either x or y is 0. when x = 0 x=0 , y = 10 , 9 , . . . 9 , 10 y={ -10,-9,...9,10} , n ( y ) = 21 n(y)=21 similarly, when y = 0 y=0 , n ( x ) = 21 n(x)=21 . However, we have repeated the extreme case, ( x , y ) = ( 0 , 0 ) (x,y) = (0,0) so altogether there are 180+21+21-1=221 ordered pairs :)

Mark Theng
May 20, 2014

The same problem without the absolute value signs is equivalent to choosing 2 balls out of 12 balls in a row: x would be the number of balls before the first chosen ball, and y would be the number of balls between the first and second chosen balls. The total number of pairs of integer values for x and y would then be ( 12 2 ) = 66 \dbinom{12}{2}=66 .

With the absolute value signs, for each possible pairs of integers (x,y) in the above problem, x and y can now be either positive or negative. This means, for all combinations when x and y are not zero, there are now four combinations: x and y are positive, x is positive but y is negative, x is negative but y is positive, or x and y are negative.

When only x is zero, there are two combinations: y is positive or y is negative. When only y is zero, there are, similarly, two combinations. When both x and y are zero, there is only one combination.

There is one combination when x and y are zero, and 10 combinations each for when only one of x or y is zero. This leaves 66 1 10 10 = 45 66-1-10-10=45 combinations where neither x nor y is zero.

Thus, the total number of possible combinations is 45 × 4 + 2 × ( 10 × 2 ) + 1 = 221 45 \times 4+2 \times (10 \times 2) + 1=221 .

Aakash Kansal
May 20, 2014

Case 1 .when zero is included then For x=0,y has 21 choises For y=0,x has 21 choises But (0,0) counted two times so net solution in case 1 are 21+21-1=41 Case 2.when x and y are non zeroFor x>0, y>0 We have x+y from 2 to 10. Thus we get [1+2+3+4+5+6+7+8+9]=45 sol Now we have four types of solution as (x,y),(x,-y),(-x,y),(-x,-y) SO net sol in case 2 =45*4=180 Final ans =case1+case2=41+180=221

Aleck Zhao
May 20, 2014

Recall that absolute value is a piecewise-defined function, y = x y = x -y=x\\ y=x .Our inequality can be written in the form y x + 10 |y|\leq-|x|+10 . If we use our above definition of absolute value, we can split this further into two inequalities, y x + 10 y x 10 , y\leq-|x|+10\\ y\geq|x|-10, remembering to flip the direction of the inequality in the second inequality to account for multiplying y y by 1 -1 . Now we can graph these two absolute value functions separately by applying transformations to the function y = x y=|x| . When we graph them, we see the region they enclose is a square with the axes as its diagonals, and vertices at the points ( 10 , 0 ) , ( 10 , 0 ) , ( 0 , 10 ) , ( 0 , 10 ) . (10,0),(-10,0),(0,10),(0,-10). The number of ordered pairs ( x , y ) (x,y) that satisfy our original inequality is the number of lattice points (points with integer coordinates) on or enclosed by this region. The "successful" ordered pairs form four "triangles", one in each quadrant. The number of points in each "triangle" is the sum of all the numbers from 1 1 to 10 10 , which is 1 + 2 + 3 + + 10 = 10 ( 10 + 1 ) 2 = 55. 1+2+3+\cdots+10=\frac{10(10+1)}{2}=55. Since we have four of these "triangles", there are a total of 4 × 55 = 220 4\times55=220 points. Finally, we must account for the origin, which is not counted in any of the four "triangles." This gives us a total of 220 + 1 = 221 220+1=\boxed{221} ordered pairs.

Nahom Yemane
Jan 2, 2014

We have the easiest solution x = 0 , y = 0 x=0 ,y=0 Then all the solutions of the form x = 0 , 1 y 10 x=0, 1 \leq y \leq 10 so 10 of these but also y = 0 , 1 x 10 y=0, 1 \leq x \leq 10 which gives another 10. 10 + 10 = 20 10+10=20 . But for each of these pairs of x , y x,y the value which is greater than 0 0 can be replaced with its negative counterpart since we wish to satisfy x + y 10 |x| + |y| \leq 10 so really we can double this to get 2 × 20 = 40 2 \times 20=40 Remembering x = 0 , y = 0 x=0, y=0 was a solution we have 41 41 pairs of x and y with that satisfy the inequality with one or both of x x or y y being 0 0

Now for the easy part where we don't have to consider as many split cases in order to accommodate for the fact that 0 = 0 -0=0 . We're not interested in 0 0 anymore because we've found all solutions with zeroes.

We have:

x = 1 , 1 y 9 x=1, 1 \leq y \leq 9

9 c a s e s 9 cases

x = 2 , 1 y 8 x=2, 1 \leq y \leq 8

8 c a s e s 8 cases

                            Continue up to x=9

x = 9 , y = 1 x=9, y=1

1 c a s e 1 case

A total of 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 9+8+7+6+5+4+3+2+1 = ( 9 ) ( 10 ) 2 = 45 \frac{(9)(10)}{2}=45

Since we can change the sign of E A C H EACH number of E A C H EACH pair we have 4 × 45 = 180 4\times 45=180

Giving a total of 180 + 41 = 221 180+41=\boxed{221}

Abhijeeth Babu
Nov 20, 2013

Well when I first saw the problem, I thought of Polya's comment about generalizing a problem using a smaller version of it, so I drew the graph of x + y 2 |x|+|y|\leq2 and of x + y 3 |x|+|y|\leq3 which is an trivial one with the help of graph transformations. The graph was symmetrical and a square, I could figure that for x + y 2 |x|+|y|\leq2 the number of integral solutions are 2 ( 2 ( 2 ( 2 1 ) + 1 + 2 ( 2 2 ) + 1 ) + 2 2 + 1 = 13 2\cdot (2(2(2-1)+1+2(2-2)+1)+2\cdot 2 +1=13 and for x + y 3 |x|+|y|\leq3 it was 2 ( 2 ( 3 1 ) + 1 + 2 ( 3 2 ) + 1 + 2 ( 3 3 ) + 1 ) + 2 3 + 1 2(2(3-1)+1+2(3-2)+1+2(3-3)+1)+2\cdot 3 +1 . So we generalize the formula into P n = 2 ( 2 ( n 1 ) + 1 + 2 ( n 2 ) + 1 + + 2 ( n n ) + 1 ) + 2 n + 1 = 2 n 2 + 2 n + 1 P_n=2(2(n-1)+1+2(n-2)+1+ \cdots +2(n-n)+1)+2\cdot n +1=2n^2+2n+1 , which can be proved by induction, which we do so, Let P n = 2 ( n ( n 1 ) + 1 + n ( n 2 ) + 1 + + n ( n n ) + 1 ) + 2 n + 1 = 2 n 2 + 2 n + 1 P_n=2(n(n-1)+1+n(n-2)+1+ \cdots+ n(n-n)+1)+2 \cdot n +1=2n^2+2n+1 be our induction basis, since P 1 = 5 P_1=5 is true, we can assume P k P_k to be true, then P k + 1 P_{k+1} should also be true, and we verify it. P k + 1 = 2 ( 2 ( k + 1 1 ) + 1 + 2 ( k + 1 2 ) + 1 + + 2 ( k + 1 ( k + 1 ) ) + 2 ( k + 1 ) + 1 = 2 ( 2 ( k + ( k 1 ) + ( k 2 ) + + 1 ) + 1 + 1 + + k+1 times ) + 2 ( k + 1 ) + 1 P_{k+1}=2(2(k+1-1)+1+2(k+1-2)+1+\cdots+2(k+1-(k+1))+2\cdot (k+1)+1=2(2(k+(k-1)+(k-2)+ \cdots + 1)+1+1+ \cdots + \text {k+1 times})+2(k+1)+1 \implies P k + 1 = 2 ( 2 ( k ( k + 1 ) 2 ) + k ) + 2 ( k + 1 ) + 1 = 2 ( k + 1 ) ( k + 1 ) + 2 ( k + 1 ) + 1 = 2 ( k + 1 ) 2 + 2 ( k + 1 ) + 1 P_{k+1}=2(2(\dfrac{k(k+1)}{2})+k)+2(k+1)+1=2(k+1)(k+1)+2(k+1)+1=2(k+1)^2+2(k+1)+1 , thus P k + 1 P_{k+1} is true, hence P n P_n is true.

So P 10 = 2 ( 10 ) 2 + 2 ( 10 ) + 1 = 221 P_{10}=2(10)^2+2(10)+1=221 . _\square

Darn those dots.

Abhijeeth Babu - 7 years, 6 months ago

Log in to reply

I fixed the dots for you. You used \1dots, with the number 1. I'm guessing the command you were trying to use was \ldots (with the letter l (lower case L)). I actually used \cdots instead. Generally, we use \ldots when we have a list and \cdots when we have an operation. { 1 , 2 , 3 , , n } \{1,2,3,\ldots,n\} or 1 + 2 + 3 + + n . 1 + 2 + 3 + \cdots + n.

Lino Demasi - 7 years, 6 months ago

Log in to reply

Thank you. I think I got confused with the 1 and l.

Abhijeeth Babu - 7 years, 6 months ago

Should have used \dots \dots

Aejeth Lord - 7 years, 6 months ago
Lino Demasi
Nov 18, 2013

This is not a solution. How would you generalize this problem? Consider two related problems:

How many ordered pairs of integers are there that satisfy x + y n ? |x| + |y| \leq n?

How many ordered m m -tuples of integers are there that satisfy x 1 + x 2 + x m 10 ? |x_1| + |x_2| + \cdots |x_m| \leq 10?

These are both generalizations of the original problem. Can you solve these? What if we combine them both to get:

How many ordered m m -tuples of integers are there that satisfy ( x 1 + x 2 + x m n ? (|x_1| + |x_2| + \cdots |x_m| \leq n?

Can you find a closed formula in terms of m m and n ? n?

Moderator note:

This is not a solution.

Can you think of any other generalizations that we could make to this question?

Lino Demasi - 7 years, 6 months ago

Log in to reply

I clicked the wrong button, check out my solution, much simpler than all that mumbo jumbo...:

There are 11 elements in the set that satisfy the given conditions: 0-10. Use permutation formula (since we care about order), we get 11!/9!=110. Double the answer, since there are negative answers too, 220. Add the (0,0) combination, and we get 220+1= 221 \boxed{221} .

John M. - 7 years, 6 months ago

Log in to reply

When choosing 2 elements from { 0 , 1 , 2 , , 10 } , \{0,1,2,\ldots, 10\}, one of the choices is that we choose 9 9 and then choose 7. 7. How do we get a solution from this?

Lino Demasi - 7 years, 6 months ago
Anu Rag
Sep 12, 2017

|x|+|y|<=10 means the length of the diagonal =20 and it's a square with two sides parallel to the line y=x.

Any square whose two sides parallel to x=y satisfies/has the property that the number of integral points it covers(including the points that lie on the sides/border ) will be equal to ((diagonal/2)+1)^2 +((diagonal/2))^2. so here it will be 11^2+10^2. Simple! works for any bigger sided squares.

We have 1 1 pair of integers that equals to 0 0 , 4 4 pairs that equals to 1 1 , 8 8 pairs that equals to 2 2 , 12 12 pairs that equals to 3 3 .....

So clearly we have the pattern 1 , 4 , 8 , 12 , . . . , 40 1, 4, 8, 12, ..., 40 .

Why 40 40 ? Expressing it mathematically, we get from the second element a pattern that can be expressed as 4 ( n + 1 ) 4(n + 1) (beginning with n = 0 n=0 ), and as the inequality says 10 \leq{10} , we go for the 10 t h 10th element of the pattern. If we make 1 + 4 + 8 + + 40 1 + 4 + 8 + ••• + 40 it is equal to 1 + 44 5 1 + 44*5 and this is 221 \boxed{221} .

Oliver Welsh
Nov 18, 2013

First we consider when x = 10 x=10 . In this case there is only 1 1 solution ( y = 0 y=0 ). When x = 9 x=9 , there are 3 3 possible values for y y ( y = ± 1 y = \pm 1 or y = 0 y=0 ). Following this pattern, we notice that there is an arithematic series, with common difference 2 2 and n t h n^{th} term, U n = 2 ( 10 n ) + 1 U_{n} = 2(10 - n) + 1 We want to sum this arithematic progression for values of n n between 1 1 and 10 10 , for a total of 10 10 terms. Thus we have the sum, S 10 = 10 2 [ 2 1 + ( 10 1 ) 2 ] = 100 S_{10} = \frac{10}{2} \cdot [2 \cdot 1 + (10-1) \cdot 2] = 100 Now we multiply this by 2 2 to account for when x < 0 x < 0 to get 200 200 . Finally, we consider the case when x = 0 x=0 . Following the arithmetic progression, we get the value U 0 = 20 + 1 = 21 U_0 = 20 + 1 = 21 We do not have to consider the negative equivalent of x x in this case, so the final answer is, 200 + 21 = 221 200 + 21 = \fbox{221}

reform the inequality to be

y 10 x ( 10 x ) y 10 x |y| \leq 10-|x| \rightarrow -(10-|x|) \leq y \leq 10-|x|

that means to for each x x the variable y y can be 2 ( 10 x ) + 1 2(10-|x|)+1 values and x x can be 21 21 values that is 10 , 9 , . . . , 10 -10,-9,...,10 so the number of ( x , y ) (x,y) is

x = 10 10 [ 2 ( 10 x ) + 1 ] = [ 2 ( 10 0 ) + 1 ] + 2 x = 1 10 [ 2 ( 10 x ) + 1 ] = 221 \sum_{x=-10}^{10}[2(10-|x|)+1]=[2(10-|0|)+1]+2\sum_{x=1}^{10}[2(10-|x|)+1]=221

Felipe Sousa
Nov 17, 2013

Calling F n F_n the number of integer solutions to x + y < = n |x| + |y| <= n we have F 0 = 1 F_0=1 (just the point ( 0 , 0 ) (0,0) )

F 1 = F 0 + 4 F_1=F_0+4 because it's the point ( 0 , 0 ) (0,0) plus the points where x + y = 1 |x|+|y|=1 (that's a rotated square on the x y xy plane)

F 2 = F 1 + 8 F_2=F_1+8 because it's F 1 F_1 plus the points where x + y = 2 |x|+|y|=2 that's a square larger where we have 1 more point on each side

using this idea for induction we have F n = F n 1 + 4 n F_n = F_n-1 + 4n

now it's easy to find F 10 = 221 F_{10}=221

Can you find a closed formula for F n F_n using the formula F n = F n 1 + 4 n F_n = F_{n-1}+ 4n that you found?

Lino Demasi - 7 years, 6 months ago

Log in to reply

Sure, we make the sum F 0 + F 1 + . . . F n F_0+F_1+...F_n this way:

F n = F n 1 + 4 n F_n=F_{n-1}+4n

F n 1 = F n 2 + 4 ( n 1 ) F_{n-1}=F_{n-2}+4(n-1)

...

F 1 = F 0 + 4.1 F_1=F_0+4.1

F 0 = 1 F_0=1

Adding up the terms ( F i , 0 < = i < = n 1 F_i , 0<=i<=n-1 ) will cancel and we have

F n = 1 + 4 + 4.2 + . . . + 4 ( n 1 ) + 4 n F_n=1+4+4.2+...+4(n-1)+4n

F n = 1 + 4 ( 1 + 2 + . . . + ( n 1 ) + n ) F_n=1+4(1+2+...+(n-1)+n)

F n = 1 + 4 n ( n + 1 ) 2 = 1 + 2 n 2 + 2 n F_n=1+4\frac{n(n+1)}{2}=1+2n^2+2n

Felipe Sousa - 7 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...