QlarIITy

MathematicsJEE Main 2024 · 1 FebruaryInteger

The number of elements in the setS={(x,y,z):x,y,z∈Z,x+2y+3z=42,x,y,z≥0}S = \{(x, y, z) : x, y, z \in Z, x + 2y + 3z = 42, x, y, z \geq 0\}equals ______

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. An equation with unequal coefficients is counted by fixing the variable with the largest coefficient.

Concept refresher. The equation x+2y=mx + 2y = m has one solution in non-negative integers for each yy from 0 up to the whole part qq of m2\dfrac{m}{2}, so their number is

N=q+1N = q + 1

Picture the situation. Since 3z≤423z \leq 42, zz runs from 0 to 14. For each zz the equation becomes x+2y=42−3zx + 2y = 42 - 3z, where yy can be any integer from 0 up to half of the right side and xx is then fixed. So the solutions are counted zz by zz.

Approach. Count the solutions for each value of the third variable and add.

  1. Step 1: One value of the third variable

    For a fixed zz, yy can take the values 0 up to the whole part of 42−3z2\dfrac{42 - 3z}{2}, and x=42−3z−2yx = 42 - 3z - 2y is then determined.

  2. Step 2: Even values

    For z=0,2,4,…,14z = 0, 2, 4, \ldots, 14 the counts are 22, 19, 16, 13, 10, 7, 4 and 1, which add to 92.

  3. Step 3: Odd values

    For z=1,3,5,…,13z = 1, 3, 5, \ldots, 13 the counts are 20, 17, 14, 11, 8, 5 and 2, which add to 77. So the set has 92+77=16992 + 77 = 169 elements.

Answer. 169

Sanity check. The two lists are arithmetic progressions: 82(22+1)=92\dfrac{8}{2}(22 + 1) = 92 and 72(20+2)=77\dfrac{7}{2}(20 + 2) = 77.

Common wrong answers

  • 168: Stopping at z=13z = 13 misses the solution (0,0,14)(0, 0, 14) and gives 168.

Key takeaway

The trap. The formula with binomial coefficients needs all coefficients equal to one.

How toppers think. They split the fixed variable into even and odd values so that each list is an arithmetic progression.

Remember. 92+77=16992 + 77 = 169

More on Set Operations & Venn Diagrams