JEE Main 2024MathematicsSets and RelationsMediumNumerical

JEE Main 2024Sets and Relations Question with Solution

JEE Main 2024 (01 Feb Shift 1)

Question

The number of elements in the set S=x,y,z:x,y,zZ,x+2y+3z=42,x,y,z0 equals ________

Enter your answer

Show full solutionCorrect answer: 169
Correct answer
169

Step-by-step explanation

Given,

x+2y+3z=42,x,y,z0

Now, taking cases for different value of z we get,

z=0; x+2y=42

Now, y can take values 0,1,2,....2122 elements

Similarly, we get

z=1; x+2y=3920 elements

z=2; x+2y=3619 elements

z=3; x+2y=3317 elements

z=4; x+2y=3016 elements

z=5; x+2y=2714 elements

z=6; x+2y=2413 elements

z=7; x+2y=2111 elements

z=8; x+2y=1810 elements

z=9; x+2y=158 elements

z=10; x+2y=127 elements

z=11; x+2y=95 elements

z=12; x+2y=64 elements

z=13; x+2y=32 elements

z=14; x+2y=01 elements

Total : 169

Practice this on the real CBT interface

Solve this JEE Main question (and the rest of the Sets and Relations chapter) on PrepSharp's TCS iON-style CBT player — with timer, bookmarks and session analytics.

Solve interactively →

About this question

This is a previous-year question from JEE Main 2024, covering the Sets and Relations chapter of Mathematics. PrepSharp catalogues every PYQ from JEE Main with a verified answer key and step-by-step solution prepared by IIT alumni — so you can search by chapter, topic or year and revise efficiently.