How many pairs?

How many ordered pairs ( x , y ) (x,y) are there with x { 0 , 1 , 2 , , 25 } , x \in \{0,1,2, \ldots, 25\}, y { 0 , 2 , 4 , , 50 } y \in \{0,2,4,\ldots, 50\} and x < y ? x < y?

Details and assumptions

For an ordered pair of integers ( a , b ) (a,b) , the order of the integers matter. The ordered pair ( 1 , 2 ) (1, 2) is different from the ordered pair ( 2 , 1 ) (2,1) .


The answer is 494.

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.

1 solution

Arron Kau Staff
May 13, 2014

We consider a general solution to the problem of how many pairs ( x , y ) (x,y) there are with x { 0 , 1 , 2 , , n } , x \in \{0,1,2, \ldots, n\}, y { 0 , 2 , 4 , , 2 n } y \in \{0,2,4,\ldots, 2n\} and x < y . x < y. We consider two cases. Either n = 2 k n = 2k or n = 2 k + 1. n = 2k+1.

When n = 2 k , n = 2k, we count the number of possible x x values for each y y value. For 0 y 2 k 0 \leq y \leq 2k there are y y values of x x that will give x < y . x < y. When y > 2 k , y > 2k, all n + 1 n+1 values of x x will give x < y . x < y. In the first instance, there are 2 + 4 + + 2 k = n ( n + 2 ) 4 2 + 4 + \cdots + 2k = \frac{n(n+2)}{4} pairs ( x , y ) (x,y) which will satisfy the conditions and in the second there are n ( n + 1 ) 2 \frac{n(n+1)}{2} pairs. In total this gives 3 n 2 + 4 n 4 \frac{3n^2 + 4n}{4} pairs when n = 2 k . n = 2k.

When n = 2 k + 1 n = 2k+1 we count in a similar manner. When 0 < y 2 k 0 < y \leq 2k there are y y values of x x with x < y . x < y. When y > 2 k y > 2k there are n + 1 n + 1 values of x x with x < y . x < y. This gives 2 + 4 + + n 1 = ( n + 1 ) ( n 1 ) 4 2 + 4 + \cdots + n-1 = \frac{(n+1)(n-1)}{4} pairs for the first instance and ( n + 1 ) ( n + 1 ) 2 \frac{(n+1)(n+1)}{2} pairs for he second instance, for a total of 3 n 2 + 4 n + 1 4 \frac{3n^2 + 4n + 1}{4} pairs when n n is odd.

We can combine the two formulae to get 3 n 2 + 4 n + 1 4 \left\lfloor\frac{3n^2 + 4n + 1}{4}\right\rfloor as the general value for each n . n. When n = 25 n = 25 this gives 494. 494.

To answer these type of questions, we should know the concept & we should have patience to solve this....... thank you @ Arron Kau

Ranjitha Gowda - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...