QlarIITy

MathematicsJEE Main 2022 · 28 JuneInteger

Let R1R_1 and R2R_2 be relations on the set {1,2,…,50}\{1, 2, \ldots, 50\} such that R1={(p,pn):pR_1 = \{(p, p^n) : p is a prime and n≥0n \geq 0 is an integer}\} and R2={(p,pn):pR_2 = \{(p, p^n) : p is a prime and n=0n = 0 or 1}1\}. Then, the number of elements in R1−R2R_1 - R_2 is ______.

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. A difference of two relations keeps the pairs of the first that the second lacks.

Concept refresher. A power pkp^k of a prime with k≥2k \geq 2 can stay within a bound MM only if

p2≤Mp^2 \leq M

so only the primes up to M\sqrt{M} matter.

Picture the situation. A pair (p,pn)(p, p^n) belongs to R1−R2R_1 - R_2 when n≥2n \geq 2 and pn≤50p^n \leq 50. Since 72=497^2 = 49 and 112=12111^2 = 121, only the primes 2, 3, 5 and 7 can occur. Each power gives exactly one pair.

Approach. List the powers with exponent at least 2 for each prime and count them.

  1. Step 1: The powers

    For the prime 2 the powers are 4, 8, 16 and 32; for 3 they are 9 and 27; for 5 only 25; for 7 only 49.

  2. Step 2: The count

    Each power gives one pair (p,pn)(p, p^n) of the difference, so the number of elements is 4+2+1+1=84 + 2 + 1 + 1 = 8.

Answer. 8

Sanity check. The next powers are 26=642^6 = 64, 34=813^4 = 81, 53=1255^3 = 125 and 73=3437^3 = 343, all beyond 50.

Common wrong answers

  • 7: Missing the pair with 49=7249 = 7^2 leaves seven of the eight powers and gives 7.
  • 23: Reading R2R_2 as n=1n = 1 only leaves the 15 pairs (p,1)(p, 1) in the difference and gives 23.

Key takeaway

The trap. Higher powers of the small primes are easy to miss in a list.

How toppers think. They bound the primes by the square root of the largest element.

Remember. 4+2+1+1=84 + 2 + 1 + 1 = 8

More on Relations