Skip to main content
Back to Permutations & Combinations
JEE Main 2023
Permutations & Combinations
Permutations and Combinations
Easy

Question

The total number of 3-digit numbers, whose greatest common divisor with 36 is 2, is ___________.

Answer: 100

Solution

Key Concepts and Formulas

  • Greatest Common Divisor (GCD): The GCD of two integers aa and bb, denoted as gcd(a,b)gcd(a, b), is the largest positive integer that divides both aa and bb. If gcd(a,b)=Ggcd(a, b) = G, then gcd(a/G,b/G)=1gcd(a/G, b/G) = 1.
  • Prime Factorization and GCD: If a=p1a1p2a2a = p_1^{a_1} p_2^{a_2} \dots and b=p1b1p2b2b = p_1^{b_1} p_2^{b_2} \dots, then gcd(a,b)=p1min(a1,b1)p2min(a2,b2)gcd(a, b) = p_1^{\min(a_1, b_1)} p_2^{\min(a_2, b_2)} \dots.
  • Counting Integers in a Range: The number of integers in the range [A,B][A, B] (inclusive) is BA+1B - A + 1.

Step-by-Step Solution

Step 1: Translate the GCD condition.

We are given that gcd(N,36)=2gcd(N, 36) = 2, where 100N999100 \le N \le 999. The prime factorization of 36 is 36=22×3236 = 2^2 \times 3^2. Since gcd(N,36)=2gcd(N, 36) = 2, we can write N=2kN = 2k for some integer kk. Then gcd(2k,36)=2gcd(2k, 36) = 2, which means gcd(k,18)=1gcd(k, 18) = 1. Therefore, kk must not be divisible by 2 or 3, since 18=2×3218 = 2 \times 3^2. Since N=2kN = 2k, NN is divisible by 2. Since kk is not divisible by 2, NN is not divisible by 4. Therefore, N2(mod4)N \equiv 2 \pmod{4}. Also, since kk is not divisible by 3, N=2kN = 2k is not divisible by 3. So, we want to find the number of 3-digit integers NN such that 100N999100 \le N \le 999, N2(mod4)N \equiv 2 \pmod{4}, and N≢0(mod3)N \not\equiv 0 \pmod{3}.

Step 2: Find the number of 3-digit integers such that N2(mod4)N \equiv 2 \pmod{4}.

We want to count the number of integers NN such that 100N999100 \le N \le 999 and N=4k+2N = 4k + 2 for some integer kk. Substituting N=4k+2N = 4k+2 into the inequality gives 1004k+2999100 \le 4k+2 \le 999. Subtracting 2 from all parts gives 984k99798 \le 4k \le 997. Dividing by 4 gives 24.5k249.2524.5 \le k \le 249.25. Since kk is an integer, 25k24925 \le k \le 249. The number of integers kk in this range is 24925+1=225249 - 25 + 1 = 225. So there are 225 such integers NN. Let this set be S1S_1.

Step 3: Find the number of integers in S1S_1 that are also divisible by 3.

We want to find the number of integers NN such that 100N999100 \le N \le 999, N2(mod4)N \equiv 2 \pmod{4}, and N0(mod3)N \equiv 0 \pmod{3}. From N2(mod4)N \equiv 2 \pmod{4}, we have N=4k+2N = 4k + 2. Substituting this into N0(mod3)N \equiv 0 \pmod{3} gives 4k+20(mod3)4k + 2 \equiv 0 \pmod{3}. This simplifies to k+20(mod3)k + 2 \equiv 0 \pmod{3}, so k21(mod3)k \equiv -2 \equiv 1 \pmod{3}. Thus, k=3m+1k = 3m + 1 for some integer mm. Substituting this back into N=4k+2N = 4k + 2 gives N=4(3m+1)+2=12m+4+2=12m+6N = 4(3m + 1) + 2 = 12m + 4 + 2 = 12m + 6. We want to find the number of integers NN of the form 12m+612m + 6 such that 100N999100 \le N \le 999. Substituting N=12m+6N = 12m+6 into the inequality gives 10012m+6999100 \le 12m + 6 \le 999. Subtracting 6 gives 9412m99394 \le 12m \le 993. Dividing by 12 gives 94/12m993/1294/12 \le m \le 993/12, or 7.833...m82.757.833... \le m \le 82.75. Since mm is an integer, 8m828 \le m \le 82. The number of integers mm in this range is 828+1=7582 - 8 + 1 = 75.

Step 4: Calculate the final count.

The number of 3-digit integers NN such that gcd(N,36)=2gcd(N, 36) = 2 is the number of integers NN such that 100N999100 \le N \le 999 and N2(mod4)N \equiv 2 \pmod{4}, minus the number of those integers that are also divisible by 3. So, the total count is 22575=150225 - 75 = 150.

Common Mistakes & Tips

  • Be careful when translating the GCD condition into divisibility rules. Remember that gcd(a,b)=cgcd(a,b) = c implies that a/ca/c and b/cb/c are coprime.
  • Ensure you are counting integers within the correct range by carefully considering the endpoints.
  • When using modular arithmetic, simplify congruences to their simplest form to avoid mistakes.

Summary

We found the number of 3-digit integers NN such that gcd(N,36)=2gcd(N, 36) = 2 by first translating the GCD condition into divisibility rules, then counting the number of integers satisfying these rules, and finally subtracting the number of integers that satisfy both the desired condition and a contradictory condition (divisibility by 3). The final answer is 150.

Final Answer

The final answer is 150\boxed{150}.

Practice More Permutations & Combinations Questions

View All Questions