- #1
ramsey2879
- 841
- 3
Let A be the complete set of ordered pairs of non-negative numbers which have a sum less or equal to N.
1. How many pairs are in the set?
2. If set A is sorted in ascending order 1st by the sum of the elements then by the value of each number reading from left to right the first such pair would be (0,0) the second (0,1), but can you find the sorted position of pair (a,b) as a function of a and b?
3. Answer questions 1 and 2 under the same assumptions but when dealing with triplets instead of pairs.
For the solutions to 1 and 2 see http://answers.yahoo.com/question/;...A3N1YmplY3Q-;_ylv=3?qid=20080103222238AAh2KWA
1. How many pairs are in the set?
2. If set A is sorted in ascending order 1st by the sum of the elements then by the value of each number reading from left to right the first such pair would be (0,0) the second (0,1), but can you find the sorted position of pair (a,b) as a function of a and b?
3. Answer questions 1 and 2 under the same assumptions but when dealing with triplets instead of pairs.
For the solutions to 1 and 2 see http://answers.yahoo.com/question/;...A3N1YmplY3Q-;_ylv=3?qid=20080103222238AAh2KWA
Last edited: