Let (respectively, ) be the number of 5-digit integers obtained by using the digits 1, 2, 3, 4, 5 with repetitions (respectively, without repetitions) such that the sum of any two adjacent digits is odd. Then is equal to
KVPY 2018 Maths Q62: Fundamental principle of counting
From the KVPY 2018 · Stream SA paper. Try it, check your answer, then read the worked solution below.
Answer and worked solution
Try it yourself first, then check your working against this.
Worked solution
Two adjacent digits have an odd sum only if one is odd and one is even. So the parities must alternate. The digits 1, 3, 5 are odd (3 of them) and 2, 4 are even (2 of them).
With repetition:
- pattern OEOEO:
- pattern EOEOE:
So .
Without repetition: only OEOEO fits, using all three odd and both even digits, so .
Hence .
(C)
Concepts used: odd sum of neighbours forces alternating parity, counting with and without repetition
Practise this topic
Every past question tagged to the same part of the syllabus, with solutions.
Similar questions from other papers
Past questions on the same topic (Fundamental principle of counting), each with a worked solution.
- Let S={A=[a b; c d]:a,b,c,d∈{0,1,2,3,4} and A²-4A+3I=0} be a set of 2×2 matrices. Then the number of matrices in S, for which the sum of the…JEE Main 2026 (4 Apr Shift 1) · Maths Q5
- Let A={1,2,3,4,5,6}. The number of one-one functions f:A→ A such that f(1)≥3, f(3)≤4 and f(2)+f(3)=5, is ___.JEE Main 2026 (5 Apr Shift 1) · Maths Q21
- Consider the matrix P = (2 0 0; 0 2 0; 0 0 3). Let the transpose of a matrix X be denoted by Xᵀ. Then the number of 3×3 invertible matrices Q with…JEE Advanced 2025 (Paper 1) · Maths Q4
- The number of different 5 digit numbers greater than 50000 that can be formed using the digits 0, 1, 2, 3, 4, 5, 6, 7, such that the sum of their…JEE Main 2025 (28 Jan Shift 1) · Maths Q7
- The largest n∈N such that 3ⁿ divides 50! is:JEE Main 2025 (2 Apr Shift 1) · Maths Q6
- If the number of seven-digit numbers, such that the sum of their digits is even, is m· n·10ⁿ; m,n∈{1,2,3,…,9}, then m+n is equal to ___JEE Main 2025 (3 Apr Shift 1) · Maths Q21