How many ordered pairs of integers ( x , y ) are there that satisfy ∣ x ∣ + ∣ y ∣ ≤ 1 0 ?
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.
Hi , i had a similar question, how would we solve for the no. of ordered pair of integers satisfying :
x 2 + y 2 ≤ 1 0 0
Can you extend this method to ∣ x ∣ + ∣ y ∣ ≤ n for an arbitrary value of n ?
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 . The area of the square formed is 2 n 2 .
From Pick's theorem,
A = N − 2 b − 1 ⇒ 2 n 2 = N − 2 n − 1
⇒ N = 2 n 2 + 2 n + 1
Does this look correct?
Log in to reply
Yes, its correct!!
First, we solve for the number of ordered pairs of positive integer solutions (where x = 0 , y = 0 ). When x = 1 , y = { 1 , 2 , . . . , 9 } , so there are n ( y ) = 9 solutions; when x = 2 , n ( y ) = 8 ; . . . when x = 9 , 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 4 5 × 4 = 1 8 0 solutions.
Now it's the time to count when either x or y is 0. when x = 0 , y = − 1 0 , − 9 , . . . 9 , 1 0 , n ( y ) = 2 1 similarly, when y = 0 , n ( x ) = 2 1 . However, we have repeated the extreme case, ( x , y ) = ( 0 , 0 ) so altogether there are 180+21+21-1=221 ordered pairs :)
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 ( 2 1 2 ) = 6 6 .
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 6 6 − 1 − 1 0 − 1 0 = 4 5 combinations where neither x nor y is zero.
Thus, the total number of possible combinations is 4 5 × 4 + 2 × ( 1 0 × 2 ) + 1 = 2 2 1 .
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
Recall that absolute value is a piecewise-defined function, − y = x y = x .Our inequality can be written in the form ∣ y ∣ ≤ − ∣ x ∣ + 1 0 . If we use our above definition of absolute value, we can split this further into two inequalities, y ≤ − ∣ x ∣ + 1 0 y ≥ ∣ x ∣ − 1 0 , remembering to flip the direction of the inequality in the second inequality to account for multiplying y by − 1 . Now we can graph these two absolute value functions separately by applying transformations to the function 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 ( 1 0 , 0 ) , ( − 1 0 , 0 ) , ( 0 , 1 0 ) , ( 0 , − 1 0 ) . The number of ordered pairs ( 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 to 1 0 , which is 1 + 2 + 3 + ⋯ + 1 0 = 2 1 0 ( 1 0 + 1 ) = 5 5 . Since we have four of these "triangles", there are a total of 4 × 5 5 = 2 2 0 points. Finally, we must account for the origin, which is not counted in any of the four "triangles." This gives us a total of 2 2 0 + 1 = 2 2 1 ordered pairs.
We have the easiest solution x = 0 , y = 0 Then all the solutions of the form x = 0 , 1 ≤ y ≤ 1 0 so 10 of these but also y = 0 , 1 ≤ x ≤ 1 0 which gives another 10. 1 0 + 1 0 = 2 0 . But for each of these pairs of x , y the value which is greater than 0 can be replaced with its negative counterpart since we wish to satisfy ∣ x ∣ + ∣ y ∣ ≤ 1 0 so really we can double this to get 2 × 2 0 = 4 0 Remembering x = 0 , y = 0 was a solution we have 4 1 pairs of x and y with that satisfy the inequality with one or both of x or y being 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 . We're not interested in 0 anymore because we've found all solutions with zeroes.
We have:
x = 1 , 1 ≤ y ≤ 9
9 c a s e s
x = 2 , 1 ≤ y ≤ 8
8 c a s e s
Continue up to x=9
x = 9 , y = 1
1 c a s e
A total of 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 2 ( 9 ) ( 1 0 ) = 4 5
Since we can change the sign of E A C H number of E A C H pair we have 4 × 4 5 = 1 8 0
Giving a total of 1 8 0 + 4 1 = 2 2 1
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 and of ∣ x ∣ + ∣ y ∣ ≤ 3 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 the number of integral solutions are 2 ⋅ ( 2 ( 2 ( 2 − 1 ) + 1 + 2 ( 2 − 2 ) + 1 ) + 2 ⋅ 2 + 1 = 1 3 and for ∣ x ∣ + ∣ y ∣ ≤ 3 it was 2 ( 2 ( 3 − 1 ) + 1 + 2 ( 3 − 2 ) + 1 + 2 ( 3 − 3 ) + 1 ) + 2 ⋅ 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 , 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 be our induction basis, since P 1 = 5 is true, we can assume P k to be true, then 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 ( 2 k ( k + 1 ) ) + 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 is true, hence P n is true.
So P 1 0 = 2 ( 1 0 ) 2 + 2 ( 1 0 ) + 1 = 2 2 1 . □
Darn those dots.
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 } or 1 + 2 + 3 + ⋯ + n .
Log in to reply
Thank you. I think I got confused with the 1 and l.
Should have used \dots …
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 ?
How many ordered m -tuples of integers are there that satisfy ∣ x 1 ∣ + ∣ x 2 ∣ + ⋯ ∣ x m ∣ ≤ 1 0 ?
These are both generalizations of the original problem. Can you solve these? What if we combine them both to get:
How many ordered m -tuples of integers are there that satisfy ( ∣ x 1 ∣ + ∣ x 2 ∣ + ⋯ ∣ x m ∣ ≤ n ?
Can you find a closed formula in terms of m and n ?
This is not a solution.
Can you think of any other generalizations that we could make to this question?
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= 2 2 1 .
Log in to reply
When choosing 2 elements from { 0 , 1 , 2 , … , 1 0 } , one of the choices is that we choose 9 and then choose 7 . How do we get a solution from this?
|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 pair of integers that equals to 0 , 4 pairs that equals to 1 , 8 pairs that equals to 2 , 1 2 pairs that equals to 3 .....
So clearly we have the pattern 1 , 4 , 8 , 1 2 , . . . , 4 0 .
Why 4 0 ? Expressing it mathematically, we get from the second element a pattern that can be expressed as 4 ( n + 1 ) (beginning with n = 0 ), and as the inequality says ≤ 1 0 , we go for the 1 0 t h element of the pattern. If we make 1 + 4 + 8 + • • • + 4 0 it is equal to 1 + 4 4 ∗ 5 and this is 2 2 1 .
First we consider when x = 1 0 . In this case there is only 1 solution ( y = 0 ). When x = 9 , there are 3 possible values for y ( y = ± 1 or y = 0 ). Following this pattern, we notice that there is an arithematic series, with common difference 2 and n t h term, U n = 2 ( 1 0 − n ) + 1 We want to sum this arithematic progression for values of n between 1 and 1 0 , for a total of 1 0 terms. Thus we have the sum, S 1 0 = 2 1 0 ⋅ [ 2 ⋅ 1 + ( 1 0 − 1 ) ⋅ 2 ] = 1 0 0 Now we multiply this by 2 to account for when x < 0 to get 2 0 0 . Finally, we consider the case when x = 0 . Following the arithmetic progression, we get the value U 0 = 2 0 + 1 = 2 1 We do not have to consider the negative equivalent of x in this case, so the final answer is, 2 0 0 + 2 1 = 2 2 1
reform the inequality to be
∣ y ∣ ≤ 1 0 − ∣ x ∣ → − ( 1 0 − ∣ x ∣ ) ≤ y ≤ 1 0 − ∣ x ∣
that means to for each x the variable y can be 2 ( 1 0 − ∣ x ∣ ) + 1 values and x can be 2 1 values that is − 1 0 , − 9 , . . . , 1 0 so the number of ( x , y ) is
∑ x = − 1 0 1 0 [ 2 ( 1 0 − ∣ x ∣ ) + 1 ] = [ 2 ( 1 0 − ∣ 0 ∣ ) + 1 ] + 2 ∑ x = 1 1 0 [ 2 ( 1 0 − ∣ x ∣ ) + 1 ] = 2 2 1
Calling F n the number of integer solutions to ∣ x ∣ + ∣ y ∣ < = n we have F 0 = 1 (just the point ( 0 , 0 ) )
F 1 = F 0 + 4 because it's the point ( 0 , 0 ) plus the points where ∣ x ∣ + ∣ y ∣ = 1 (that's a rotated square on the x y plane)
F 2 = F 1 + 8 because it's F 1 plus the points where ∣ 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
now it's easy to find F 1 0 = 2 2 1
Can you find a closed formula for F n using the formula F n = F n − 1 + 4 n that you found?
Log in to reply
Sure, we make the sum F 0 + F 1 + . . . F n this way:
F n = F n − 1 + 4 n
F n − 1 = F n − 2 + 4 ( n − 1 )
...
F 1 = F 0 + 4 . 1
F 0 = 1
Adding up the terms ( 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 ( 1 + 2 + . . . + ( n − 1 ) + n )
F n = 1 + 4 2 n ( n + 1 ) = 1 + 2 n 2 + 2 n
Problem Loading...
Note Loading...
Set Loading...
∣ x ∣ + ∣ y ∣ ≤ 1 0 represent a square with its vertices ( 1 0 , 0 ) , ( 0 , 1 0 ) , ( − 1 0 , 0 ) and ( 0 , − 1 0 ) . The area of the square is 2 0 0 units.
From Pick's Theorem , we have
A = i + 2 b − 1
where A is the area of polygon (in this case, square), i is the number of points lying inside the square and 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 = 4 0 .
We have to find N = i + b .
A = i + b − 2 b − 1 ⇒ 2 0 0 = N − 2 1
N = 2 2 1