QlarIITy

MathematicsJEE Main 2025 · 24 JanuaryInteger

LetS={p1,p2,…,p10}S = \{p_1, p_2, \ldots, p_{10}\}be the set of first ten prime numbers. Let A=S∪PA = S \cup P, where PP is the set of all possible products of distinct elements of SS. Then the number of all ordered pairs (x,y)(x, y), x∈S,y∈Ax \in S, y \in A, such that xx divides yy, 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. Products of distinct primes correspond to sets of primes, and divisibility by a prime to membership in the set.

Concept refresher. A set of nn elements has 2n2^n subsets, and a given element belongs to exactly half of them:

N=2n−1N = 2^{n-1}

Picture the situation. The set AA contains the ten primes and all products of two or more different primes among them. So each element of AA is the product of the primes in some non-empty subset of SS, and different subsets give different numbers. A prime xx divides such a product exactly when xx is in the subset.

Approach. Count the subsets that contain a given prime and multiply by the number of primes.

  1. Step 1: One prime

    For a fixed prime xx, the elements yy of AA divisible by xx correspond to the subsets of SS that contain xx. The other 9 primes may each be in or out, so there are 29=5122^9 = 512 such elements, including y=xy = x.

  2. Step 2: All primes

    Each of the 10 primes gives 512 values of yy, so the number of ordered pairs is 10×512=512010 \times 512 = 5120.

Answer. 5120

Sanity check. The set AA has 210−1=10232^{10} - 1 = 1023 elements, and each prime divides just over half of them, 512.

Common wrong answers

  • 5110: Leaving out y=xy = x for each prime gives 10×511=511010 \times 511 = 5110; a prime divides itself.

Key takeaway

The trap. The prime itself is one of the elements it divides.

How toppers think. They translate divisibility into membership before counting.

Remember. 10×29=512010 \times 2^9 = 5120

More on Set Operations & Venn Diagrams