Letand . The number of elements in the relationis
Solution
Core idea. A condition that depends on the difference of two coordinates is counted difference by difference.
Concept refresher. In a set of consecutive integers the number of ordered pairs with is
for .
Picture the situation. With the condition is that is one of 0, 1, 2, 3, 4. This is a quadratic in the integer , which exceeds 4 as soon as is at all large. So only a few values of can work, and each gives a known number of pairs in .
Approach. Find the differences that give a value in the set and count the pairs for each.
Step 1: The allowed differences
The expression is 0 for , 5 for , for , 2 for and 9 for ; for other values it is larger still. So only and give a value in .
Step 2: The pairs
The difference 0 gives the 10 pairs , and the difference gives the 8 pairs with from 1 to 8. So has 18 elements.
Answer. 18
Sanity check. For the expression is 14 and for it is 20, confirming that no other difference works.
Common wrong answers
- 27: Accepting , whose value is not in , adds 9 pairs and gives 27.
Key takeaway
The trap. A negative value of the expression is not in a set of non-negative numbers.
How toppers think. They test the few small differences and stop when the expression exceeds the largest allowed value.
Remember.
More on Relations
- Consider the relation R on the set {-2, -1, 0, 1, 2} defined by (a, b) ∈ R if and only if 1 + ab > 0. Then…
- Let R = {(x, y) ∈ N × N: loge(x + y) ≤ 2}. Then the minimum number of elements, required to be added in R to…
- Let A = {1, 4, 7} and B = {2, 3, 8}. Then the number of elements, in the relation R = {((a₁, b₁), (a₂, b₂))…
- All 63 on Relations ›