JEE Main 2026 · 21 January · morning · Numerical answer · +4 / −1

Let S={(m,n):m,n∈ {1,2,3,…..,50}}. If the number of elements (m,n) in S such that 6ᵐ+9ⁿ is a multiple of 5 is p and the number of elements ( m,n ) in S such that m+n is a square of a prime number is q , then p+q is equal to ____ .

Answer and solution

Answer 1333

Solution

Maths sir · 4 steps

Work mod 5 for p, then list the prime squares up to 100 for q. Each half is a quick count.

  1. Reduce mod 5. 6 ≡ 1 and 9 ≡ -1 (mod 5), so 6ᵐ + 9ⁿ ≡ 1 + (-1)ⁿ (mod 5). This is 0 only when n is odd. The value of m does not matter.
  2. Count p. m can be any of 50 values and n any of the 25 odd values. So p = 50 × 25 = 1250.
  3. Possible sums. Here 2 ≤ m+n ≤ 100, so the prime squares in range are 4, 9, 25, 49. The next one, 121, is too big. For a sum k ≤ 51, m runs from 1 to k-1 and n = k - m, so there are k-1 pairs.

    q = 3 + 8 + 24 + 48 = 83

  4. So. p + q = 1250 + 83 = 1333.

The common slip: 1285. Stopping at 5² = 25 and missing 7² = 49, which is still within 100, gives q = 35 and a total of 1285.

The idea to keep. For divisibility of big powers, replace each base by its remainder (use -1 where it helps). For pairs with a fixed sum k from {1,…,N} with k ≤ N+1, there are exactly k-1 ordered pairs.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Permutations & Combinations

Asked about 160 times in JEE Main since 2020. This question is from 2026.