Solveeit Logo

Question

Question: The set S, is defined as $S = \{(p,q, r) \in N^3: LCM(p, q, r) = 2^53^64^85^9 \text{ and }HCF(p, q, ...

The set S, is defined as S={(p,q,r)N3:LCM(p,q,r)=25364859 and HCF(p,q,r)=22334455}S = \{(p,q, r) \in N^3: LCM(p, q, r) = 2^53^64^85^9 \text{ and }HCF(p, q, r) = 2^23^34^45^5 \}.

Then, the digit in units place of n(S), is equal to

Answer

2

Explanation

Solution

Let p,q,rp, q, r be three natural numbers. We are given their HCF and LCM.

Let the prime factorization of p,q,rp, q, r be: p=2a13b15c1p = 2^{a_1}3^{b_1}5^{c_1} \dots q=2a23b25c2q = 2^{a_2}3^{b_2}5^{c_2} \dots r=2a33b35c3r = 2^{a_3}3^{b_3}5^{c_3} \dots where ai,bi,ci,a_i, b_i, c_i, \dots are non-negative integers.

The HCF of p,q,rp, q, r is given by H=22334455=2233(22)455=22332855=2103355H = 2^23^34^45^5 = 2^23^3(2^2)^45^5 = 2^23^32^85^5 = 2^{10}3^35^5. The LCM of p,q,rp, q, r is given by L=25364859=2536(22)859=253621659=2213659L = 2^53^64^85^9 = 2^53^6(2^2)^85^9 = 2^53^62^{16}5^9 = 2^{21}3^65^9.

For each prime factor, the minimum of the exponents in p,q,rp, q, r must equal the exponent in the HCF, and the maximum of the exponents must equal the exponent in the LCM.

For the prime factor 2, let the exponents be a1,a2,a3a_1, a_2, a_3. min(a1,a2,a3)=10\min(a_1, a_2, a_3) = 10 max(a1,a2,a3)=21\max(a_1, a_2, a_3) = 21 where a1,a2,a3a_1, a_2, a_3 are non-negative integers. Since min(a1,a2,a3)=10\min(a_1, a_2, a_3) = 10 and max(a1,a2,a3)=21\max(a_1, a_2, a_3) = 21, we must have 10ai2110 \le a_i \le 21 for i=1,2,3i=1, 2, 3. Let N2N_2 be the number of such triples (a1,a2,a3)(a_1, a_2, a_3). The set of possible values for aia_i is {10,11,,21}\{10, 11, \dots, 21\}, which has 2110+1=1221 - 10 + 1 = 12 elements. The total number of triples (a1,a2,a3)(a_1, a_2, a_3) with 10ai2110 \le a_i \le 21 is 12312^3. We need to subtract the triples where min(a1,a2,a3)>10\min(a_1, a_2, a_3) > 10 or max(a1,a2,a3)<21\max(a_1, a_2, a_3) < 21. min(a1,a2,a3)>10\min(a_1, a_2, a_3) > 10 means ai>10a_i > 10 for all ii, i.e., 11ai2111 \le a_i \le 21. The number of such triples is 11311^3. max(a1,a2,a3)<21\max(a_1, a_2, a_3) < 21 means ai<21a_i < 21 for all ii, i.e., 10ai2010 \le a_i \le 20. The number of such triples is 11311^3. min(a1,a2,a3)>10\min(a_1, a_2, a_3) > 10 and max(a1,a2,a3)<21\max(a_1, a_2, a_3) < 21 means 11ai2011 \le a_i \le 20 for all ii. The number of such triples is 10310^3. By the Principle of Inclusion-Exclusion, the number of triples where min(a1,a2,a3)>10\min(a_1, a_2, a_3) > 10 or max(a1,a2,a3)<21\max(a_1, a_2, a_3) < 21 is 113+113103=211310311^3 + 11^3 - 10^3 = 2 \cdot 11^3 - 10^3. The number of triples satisfying min(a1,a2,a3)=10\min(a_1, a_2, a_3) = 10 and max(a1,a2,a3)=21\max(a_1, a_2, a_3) = 21 is N2=123(2113103)=1232113+103N_2 = 12^3 - (2 \cdot 11^3 - 10^3) = 12^3 - 2 \cdot 11^3 + 10^3. N2=172821331+1000=17282662+1000=66N_2 = 1728 - 2 \cdot 1331 + 1000 = 1728 - 2662 + 1000 = 66.

Alternatively, consider the values a1,a2,a3a_1, a_2, a_3. They must be chosen from {10,11,,21}\{10, 11, \dots, 21\}. The set of values {a1,a2,a3}\{a_1, a_2, a_3\} must contain 10 and 21. Case 1: {a1,a2,a3}={10,21,k}\{a_1, a_2, a_3\} = \{10, 21, k\} where 10<k<2110 < k < 21. There are 2011+1=1020 - 11 + 1 = 10 possible values for kk. For each kk, the triple (10,21,k)(10, 21, k) and its permutations are possible. The values 10, 21, kk are distinct. There are 3!=63! = 6 permutations. Number of triples = 10×6=6010 \times 6 = 60. Case 2: {a1,a2,a3}={10,10,21}\{a_1, a_2, a_3\} = \{10, 10, 21\}. The possible triples are permutations of (10,10,21)(10, 10, 21). There are 3!2!=3\frac{3!}{2!} = 3 permutations: (10,10,21),(10,21,10),(21,10,10)(10, 10, 21), (10, 21, 10), (21, 10, 10). Number of triples = 3. Case 3: {a1,a2,a3}={10,21,21}\{a_1, a_2, a_3\} = \{10, 21, 21\}. The possible triples are permutations of (10,21,21)(10, 21, 21). There are 3!2!=3\frac{3!}{2!} = 3 permutations: (10,21,21),(21,10,21),(21,21,10)(10, 21, 21), (21, 10, 21), (21, 21, 10). Number of triples = 3. Total number of triples N2=60+3+3=66N_2 = 60 + 3 + 3 = 66.

For the prime factor 3, let the exponents be b1,b2,b3b_1, b_2, b_3. min(b1,b2,b3)=3\min(b_1, b_2, b_3) = 3 max(b1,b2,b3)=6\max(b_1, b_2, b_3) = 6 where b1,b2,b3b_1, b_2, b_3 are non-negative integers. The set of possible values for bib_i is {3,4,5,6}\{3, 4, 5, 6\}, which has 63+1=46 - 3 + 1 = 4 elements. Let N3N_3 be the number of such triples (b1,b2,b3)(b_1, b_2, b_3). Using the formula N=m32(m1)3+(m2)3N = m^3 - 2(m-1)^3 + (m-2)^3, where mm is the number of values in the range [min,max][min, max]. Here m=4m = 4. N3=43233+23=64227+8=6454+8=10+8=18N_3 = 4^3 - 2 \cdot 3^3 + 2^3 = 64 - 2 \cdot 27 + 8 = 64 - 54 + 8 = 10 + 8 = 18.

For the prime factor 5, let the exponents be c1,c2,c3c_1, c_2, c_3. min(c1,c2,c3)=5\min(c_1, c_2, c_3) = 5 max(c1,c2,c3)=9\max(c_1, c_2, c_3) = 9 where c1,c2,c3c_1, c_2, c_3 are non-negative integers. The set of possible values for cic_i is {5,6,7,8,9}\{5, 6, 7, 8, 9\}, which has 95+1=59 - 5 + 1 = 5 elements. Let N5N_5 be the number of such triples (c1,c2,c3)(c_1, c_2, c_3). Using the formula N=m32(m1)3+(m2)3N = m^3 - 2(m-1)^3 + (m-2)^3, where m=5m = 5. N5=53243+33=125264+27=125128+27=3+27=24N_5 = 5^3 - 2 \cdot 4^3 + 3^3 = 125 - 2 \cdot 64 + 27 = 125 - 128 + 27 = -3 + 27 = 24.

For any other prime factor kk, let the exponents be d1,d2,d3d_1, d_2, d_3. min(d1,d2,d3)=0\min(d_1, d_2, d_3) = 0 (from HCF) max(d1,d2,d3)=0\max(d_1, d_2, d_3) = 0 (from LCM) This implies d1=d2=d3=0d_1 = d_2 = d_3 = 0. There is only 11 possibility for the exponents of any other prime.

The total number of triples (p,q,r)(p, q, r) is the product of the number of possibilities for the exponents of each prime factor. n(S)=N2×N3×N5n(S) = N_2 \times N_3 \times N_5. n(S)=66×18×24n(S) = 66 \times 18 \times 24.

We need to find the digit in the units place of n(S)n(S). This is the units digit of 66×18×2466 \times 18 \times 24. The units digit of a product is the units digit of the product of the units digits of the factors. Units digit of 66 is 6. Units digit of 18 is 8. Units digit of 24 is 4. Units digit of n(S)n(S) = Units digit of (6×8×4)(6 \times 8 \times 4). 6×8=486 \times 8 = 48. Units digit is 8. Units digit of (48×4)(48 \times 4) = Units digit of (8×4)=32(8 \times 4) = 32. The units digit is 2.

The final answer is 2\boxed{2}.

Explanation of the solution:

  1. Determine the prime factorization of the given HCF and LCM.
  2. For each prime factor, the exponents in the triple (p,q,r)(p, q, r) must satisfy the minimum and maximum conditions given by the HCF and LCM exponents.
  3. For a prime factor with HCF exponent hh and LCM exponent ll, the exponents (e1,e2,e3)(e_1, e_2, e_3) in (p,q,r)(p, q, r) must satisfy heilh \le e_i \le l for i=1,2,3i=1, 2, 3, min(e1,e2,e3)=h\min(e_1, e_2, e_3) = h, and max(e1,e2,e3)=l\max(e_1, e_2, e_3) = l.
  4. The number of such triples (e1,e2,e3)(e_1, e_2, e_3) for a given prime is the number of ways to choose three numbers from the set {h,h+1,,l}\{h, h+1, \dots, l\} such that the minimum is hh and the maximum is ll. Let m=lh+1m = l - h + 1 be the number of values in the range. The number of such triples is m32(m1)3+(m2)3m^3 - 2(m-1)^3 + (m-2)^3.
  5. Calculate the number of possibilities for the exponents of each prime factor (2, 3, and 5).
    • For prime 2: h=10,l=21h=10, l=21, m=12m=12. Number of triples N2=1232(11)3+(10)3=17282(1331)+1000=17282662+1000=66N_2 = 12^3 - 2(11)^3 + (10)^3 = 1728 - 2(1331) + 1000 = 1728 - 2662 + 1000 = 66.
    • For prime 3: h=3,l=6h=3, l=6, m=4m=4. Number of triples N3=432(3)3+(2)3=642(27)+8=6454+8=18N_3 = 4^3 - 2(3)^3 + (2)^3 = 64 - 2(27) + 8 = 64 - 54 + 8 = 18.
    • For prime 5: h=5,l=9h=5, l=9, m=5m=5. Number of triples N5=532(4)3+(3)3=1252(64)+27=125128+27=24N_5 = 5^3 - 2(4)^3 + (3)^3 = 125 - 2(64) + 27 = 125 - 128 + 27 = 24.
  6. The total number of elements in set S is the product of the number of possibilities for each prime factor's exponents: n(S)=N2×N3×N5=66×18×24n(S) = N_2 \times N_3 \times N_5 = 66 \times 18 \times 24.
  7. To find the units digit of n(S)n(S), multiply the units digits of the factors: Units digit of (6×8×4)=(6 \times 8 \times 4) = Units digit of (48×4)=(48 \times 4) = Units digit of (8×4)=(8 \times 4) = Units digit of (32)=2(32) = 2.