Mathematics · Permutations and Combinations

JEE Main 2026 — 21 Jan — Morning Shift — Question 23

Let S={(m,n):m,n∈{1,2,3,…,50}}S=\{(m,n): m,n\in\{1,2,3,\ldots,50\}\}. If the number of elements (m,n)(m,n) of SS such that 6m+9n6^m+9^n is a multiple of 55 is pp, and the number of elements (m,n)(m,n) of SS such that m+nm+n is the square of a prime number is qq, then p+qp+q is equal to _____.

Answer: 1333

Numerical answer — enter this value.

Step-by-step solution

Here SS is the set of ordered pairs (m,n)(m,n) with m,n∈{1,2,…,50}m,n\in\{1,2,\ldots,50\}, so SS has 50×50=250050\times 50=2500 elements.

Finding pp: Work modulo 55.

6≡1(mod5)⇒6m≡1(mod5) for every m6\equiv 1 \pmod 5 \Rightarrow 6^m\equiv 1 \pmod 5 \text{ for every } m 9≡−1(mod5)⇒9n≡(−1)n(mod5)9\equiv -1 \pmod 5 \Rightarrow 9^n\equiv (-1)^n \pmod 5

Hence

6m+9n≡1+(−1)n(mod5)6^m+9^n\equiv 1+(-1)^n \pmod 5

This is 00 when nn is odd and 22 when nn is even. So 6m+9n6^m+9^n is a multiple of 55 exactly when nn is odd, and mm can be anything.

There are 5050 choices for mm and 2525 odd values of nn:

p=50×25=1250p=50\times 25=1250

Finding qq: Since 2≤m+n≤1002\le m+n\le 100, the possible squares of primes are 4,9,254, 9, 25 and 4949.

For a sum s≤51s\le 51, mm can take any value from 11 to s−1s-1, and n=s−mn=s-m then lies in {1,…,50}\{1,\ldots,50\}. So there are s−1s-1 ordered pairs:

  • m+n=4m+n=4: 33 pairs

  • m+n=9m+n=9: 88 pairs

  • m+n=25m+n=25: 2424 pairs

  • m+n=49m+n=49: 4848 pairs

q=3+8+24+48=83q=3+8+24+48=83

Answer:

p+q=1250+83=1333p+q=1250+83=1333

Answer key and solution verified before publishing.

Practise Permutations and Combinations

Start with this question, then two more from the same chapter — with a tutor that explains every step. Free.

Exam
JEE Main 2026
Subject
Mathematics
Chapter
Permutations and Combinations
Topic
Applications of Permuations and Combination