GCD and LCM Questions
GCD and LCM Questions
The concepts of the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) are cornerstones of
elementary number theory. While they are often introduced as simple arithmetic operations, their true significance
lies in the deep structural properties of integers they represent. This section establishes the theoretical bedrock
upon which all subsequent analysis is built, moving from intuitive definitions to the formal structure provided by the
Fundamental Theorem of Arithmetic.
The reliability and consistency of GCD and LCM calculations are not accidental; they are guaranteed by one of the
most important results in number theory.
Role in GCD/LCM
This theorem is the cornerstone that ensures the existence and uniqueness of the GCD and
LCM for any set of integers. It provides the theoretical justification for the prime factorization
method of computation. Without unique factorization, a number could have multiple, distinct
sets of prime factors, making it impossible to define a single "greatest" common divisor or
"least" common multiple in the way we do.1
With the theoretical foundation established, we can explore the primary algorithms for computing GCD and LCM.
● Procedure for GCD: The process involves finding the prime factorization of each number, identifying all
common prime factors, and multiplying them together, with each prime raised to the minimum exponent it
7
holds across all factorizations. For example, to compute
gcd(48,180), we first find the prime factorizations: 48=24⋅31 and 180=22⋅32⋅51. The GCD is then the product of
1
the common primes (2 and 3) raised to their minimum powers: 2min(4,2)⋅3min(1,2)⋅5min(0,1)=22⋅31⋅50=12.
● Procedure for LCM: The LCM is the product of all prime factors that appear in any of the factorizations, with
8
each prime raised to the maximum exponent it holds in any factorization. For the same numbers, the LCM is
1
2max(4,2)⋅3max(1,2)⋅5max(0,1)=24⋅32⋅51=720.
While prime factorization is conceptually clear, it is not the most efficient method for computation, especially for
large numbers. The Euclidean algorithm provides a much faster approach.
● The Subtractive Form: The historical basis of the algorithm is the principle that for a>b, gcd(a,b)=gcd(a−b,b).
By repeatedly subtracting the smaller number from the larger, the pair of numbers is reduced until they are
1
equal, at which point their common value is the GCD.
● The Division-Based (Modern) Form: A more efficient version uses the division algorithm, based on the
9
property that gcd(a,b)=gcd(b,a(modb)), where a(modb) is the remainder when a is divided by b. The process
is repeated until the remainder is zero. The last non-zero remainder is the GCD. For example, to find
10
gcd(270,192) :
1. 270=1⋅192+78
2. 192=2⋅78+36
3. 78=2⋅36+6
4. 36=6⋅6+0
The last non-zero remainder is 6, so gcd(270,192)=6.
● The Extended Euclidean Algorithm: This powerful extension of the algorithm finds integer coefficients x and
12
y that satisfy Bézout's Identity: ax+by=gcd(a,b). This is not merely a computational trick; it is a constructive
proof of the identity and is fundamental for computing modular multiplicative inverses, a critical operation in
modern cryptography.
The choice between the prime factorization method and the Euclidean algorithm reveals a profound distinction in
computational number theory. Finding the prime factors of a large integer is a computationally "hard" problem; no
known algorithm can do it in a time that scales polynomially with the number of digits. This difficulty is the bedrock
4
of the security of widely used cryptographic systems like RSA.
In stark contrast, the Euclidean algorithm is exceptionally efficient. Its running time is logarithmic in the size of the
12
smaller input, with a complexity of O(log(min(a,b))). This means it can compute the GCD of numbers with
hundreds of digits almost instantaneously. This dichotomy between the "easy" problem of finding a GCD and the
"hard" problem of factoring underpins much of modern digital security. The feasibility of public-key cryptography
relies on the ability to perform certain calculations (like finding modular inverses via the Extended Euclidean
Algorithm) quickly, while its security relies on the infeasibility of others (like factoring the product of two large
primes).
Beyond simple computation, GCD and LCM exhibit a rich algebraic structure. Exploring these properties reveals
elegant symmetries and allows the concepts to be generalized far beyond the integers.
The most critical relationship between the GCD and LCM of two numbers is captured in a single, elegant formula.
The Formula
For any two positive integers a and b, the product of their GCD and LCM is equal to the
product of the numbers themselves 9:
gcd(a,b)×lcm(a,b)=a×b
This identity is immensely practical, as it allows for the efficient calculation of the LCM once
the GCD is known (using the fast Euclidean algorithm).9
Proof 1 (Using Prime Factorization)
This proof relies on the min/max property of exponents. Let the prime factorization of a and b
be a=∏piαiand b=∏piβi, where piare prime numbers and the exponents are non-negative
integers.
From the definitions:
gcd(a,b)=∏pimin(αi,βi)
lcm(a,b)=∏pimax(αi,βi)
Multiplying these two expressions gives:
gcd(a,b)×lcm(a,b)=∏pimin(αi,βi)+max(αi,βi)
For any two numbers αiand βi, the identity min(αi,βi)+max(αi,βi)=αi+βiholds. Therefore:
gcd(a,b)×lcm(a,b)=∏piαi+βi=(∏piαi)×(∏piβi)=a×b
This proves the identity.7
Proof 2 (Using Divisibility)
This proof is more algebraic. Let d=gcd(a,b). By definition, we can write a=dx and b=dy for
some integers x and y. Crucially, x and y must be coprime (i.e., gcd(x,y)=1); otherwise, d would
not be the greatest common divisor.7
The LCM of a and b is the smallest number divisible by both dx and dy. Since x and y share no
common factors, this smallest common multiple must be dxy.
Thus, lcm(a,b)=dxy.
Now, we can evaluate the product:
gcd(a,b)×lcm(a,b)=d×(dxy)=(dx)(dy)=a×b.7
The operations of GCD and LCM obey several algebraic laws that mirror those found in other mathematical
structures, such as set theory (intersection and union) and logic (AND and OR). This is not a coincidence; it reflects
the underlying lattice structure of integers under the divisibility relation, where GCD is the meet and LCM is the
join. This duality explains the profound symmetry observed in their properties.
● Associativity and Commutativity: Both operations are commutative (gcd(a,b)=gcd(b,a)) and associative
(gcd(a,gcd(b,c))=gcd(gcd(a,b),c)). Associativity is what allows us to unambiguously define the GCD and LCM
4
for more than two numbers, for example, gcd(a,b,c)=gcd(a,gcd(b,c)).
● Distributive Laws: GCD and LCM distribute over each other in a manner analogous to how multiplication
8
distributes over addition.
○ gcd(a,lcm(b,c))=lcm(gcd(a,b),gcd(a,c))
○ lcm(a,gcd(b,c))=gcd(lcm(a,b),lcm(a,c))
These can be proven elegantly using the min/max properties of the prime exponents. For instance, the
exponent of a prime p in gcd(a,lcm(b,c)) is min(α,max(β,γ)), which can be shown to be equal to
max(min(α,β),min(α,γ)), the exponent of p in lcm(gcd(a,b),gcd(a,c)).
The act of generalizing concepts like GCD and LCM to other mathematical systems is a powerful way to
understand their essential nature. It reveals that their properties depend not on the integers themselves, but on
the underlying algebraic structure.
The concepts of GCD and LCM can be extended to rational numbers. For any set of fractions, they must first be
17
reduced to their simplest form. The formulas are then :
● GCD(ba,dc)=LCM(b,d)GCD(a,c)
● LCM(ba,dc)=GCD(b,d)LCM(a,c)
The justification for the LCM formula, for example, is that we seek the smallest positive rational number M/N such
that (M/N)/(a/b) and (M/N)/(c/d) are integers. This requires M to be a common multiple of a and c (and the smallest
such M is lcm(a,c)) and N to be a common divisor of b and d (and the largest such N to make the fraction smallest
18
is gcd(b,d)).
1
The concepts of divisibility, GCD, and LCM extend naturally to polynomials. For polynomials, the Euclidean
algorithm, adapted for polynomial long division, remains the most efficient method for computing the GCD.
In abstract algebra, the integers are an example of an integral domain. The properties of GCD and LCM are
guaranteed to hold in any Unique Factorization Domain (UFD), which is an integral domain where elements have
1
a unique factorization into "prime" (irreducible) elements. In more general integral domains that are not UFDs, a
1
GCD for two elements may not exist, or it may not be unique (up to multiplication by a unit).
A Euclidean Domain is a special type of integral domain where a division algorithm with remainder is defined,
allowing for the use of the Euclidean algorithm. All Euclidean domains are also UFDs. This explains why the
algorithm works for integers, Gaussian integers (a+bi), and polynomials over a field—they are all Euclidean
1
domains. This process of abstraction reveals that the familiar properties of GCD and LCM are consequences of a
deep algebraic structure, not just arbitrary rules of arithmetic.
In the context of quantitative aptitude, the abstract theory of GCD and LCM translates into powerful tools for
solving a specific range of word problems. The key to success is recognizing the underlying structure of a problem
to determine which operation is required.
● GCD Archetypes: These problems seek the largest common measure. Keywords like "greatest," "largest,"
"maximum," or phrases like "divide equally" and "identical groups" are strong indicators. Common scenarios
include:
○ Tiling/Cutting: Finding the largest size of square tile to pave a rectangular floor, or the longest possible
11
equal-length pieces to cut from multiple rods.
○ Grouping/Distribution: Arranging different items into the maximum number of identical packages or
22
forming the greatest number of teams with an equal distribution of members.
● LCM Archetypes: These problems seek the smallest common end-point. Keywords like "least," "smallest,"
"minimum," or phrases like "together," "simultaneously," and "next time they align" point towards LCM.
Common scenarios include:
○ Synchronization: Determining when periodic events, such as blinking lights, ringing bells, or runners on a
21
track, will next occur at the same time.
○ Matching Quantities: Finding the smallest number of items to purchase when they come in
22
different-sized packs, in order to have an equal number of each.
The following table provides a heuristic guide for identifying the correct operation.
Table 1: Heuristic Guide for Identifying GCD vs. LCM in Word Problems
Distribution & Grouping "greatest", "largest", Dividing Down: Finding the Tiling a 437 cm x 323 cm floor
"maximum", "divide equally", largest common measure that with the largest possible
"identical groups", "no fits into given quantities. 21
identical square slabs.
leftovers"
Synchronization & Cycles "least", "smallest", "minimum", Building Up: Finding the first Traffic lights at three crossings
"together", "simultaneously", common point in the future for change every 24, 36, and 72
"next time they align" multiple repeating cycles. seconds. When will they next
21
change simultaneously?.
● Case 1: Finding the greatest number that divides x,y,z to leave the same remainder in each case.
○ Method: The required number is the HCF of the differences between the numbers.
○ Solution: HCF(∣x−y∣,∣y−z∣,∣z−x∣).21
● Case 2: Finding the greatest number that divides x,y,z to leave specific remainders a,b,c, respectively.
○ Method: The required number must exactly divide x−a, y−b, and z−c.
○ Solution: HCF(x−a,y−b,z−c).21
● Case 3: Finding the least number which when divided by x,y,z leaves remainders a,b,c where the
difference x−a=y−b=z−c=k is constant.
○ Method: The number is k less than a common multiple of x,y,z.
○ Solution: LCM(x,y,z)−k.26
● Case 4: Finding the least number which when divided by x,y,z leaves the same remainder k in each
case.
○ Method: The number is k more than a common multiple of x,y,z.
○ Solution: LCM(x,y,z)+k.26
● General Case (Chinese Remainder Theorem): For problems with different divisors and different remainders
that do not fit the patterns above, the solution often requires the Chinese Remainder Theorem, a more
advanced technique for solving systems of congruences.
This section presents a curated set of 20 problems, progressing in difficulty from foundational calculations to
challenging proofs suitable for advanced study. Each problem is accompanied by a detailed solution.
Solution:
We will use the prime factorization method.27
Solution:
This is a synchronization problem, which requires finding the least common multiple (LCM) of
the time intervals.27 We need to find
LCM(6,8).
List the multiples of each number:
Multiples of 6: 6, 12, 18, 24, 30,...
Multiples of 8: 8, 16, 24, 32,...
The smallest common multiple is 24. Therefore, the bells will ring together again after 24
minutes.
If they first ring together at 10:00 AM, the next time will be 10:00 AM + 24 minutes = 10:24
AM.
Answer: 10:24 AM.
Question 3: Pencils come in packages of 10, and erasers come in packages of 12. What is the smallest number of
pencils and erasers that must be bought to have an equal number of each? How many packages of each item
should be bought?
Solution:
This problem requires finding the smallest total number that is a multiple of both 10 and 12,
which is the LCM.23
LCM(10,12):
Prime factorization of 10: 2×5
Prime factorization of 12: 22×3
LCM(10,12)=22×3×5=4×3×5=60.
The smallest number of each item to have is 60.
Number of pencil packages: 60÷10=6 packages.
Number of eraser packages: 60÷12=5 packages.
Answer: 60 of each item; 6 packages of pencils and 5 packages of erasers.
Question 4: A rectangular field is 180 m long and 105 m wide. It is to be paved with identical square tiles. What is
the largest possible size of each tile?
Solution:
To find the largest possible size of a square tile that can pave the field exactly, we need to find
the greatest length that can divide both the length and the width of the field. This is the HCF
of the dimensions.25
Solution:
The formula for the HCF of fractions is HCF(numerators)/LCM(denominators).28
Question 6: The HCF of two numbers is 12 and their difference is 12. Find the numbers.
Solution:
Let the two numbers be a and b. Since their HCF is 12, both numbers must be multiples of 12.
We can write them as a=12x and b=12y, where x and y are coprime integers (gcd(x,y)=1).28
Solution:
Let the numbers be 13x and 13y, where x and y are coprime integers.28
Question 8: Find the greatest number which will divide 3959, 4082, and 4164 leaving the same remainder in each
case.
Solution:
Let the required number be N and the common remainder be r. Then the numbers (3959−r),
(4082−r), and (4164−r) are all exactly divisible by N.
According to the property of such problems, N must also divide the differences between
these numbers.21
Difference 1: 4082−3959=123
Difference 2: 4164−4082=82
Difference 3: 4164−3959=205
The required number N is the HCF of these differences.
HCF(123,82,205).
Let's find the prime factors:
123=3×41
82=2×41
205=5×41
The only common prime factor is 41.
HCF(123,82,205)=41.
Answer: 41.
Question 9: Find the least number which when divided by 5, 6, 8, and 10 leaves a remainder of 2 in each case.
Solution:
This problem follows the structure: LCM(divisors)+common remainder.26
Solution:
This problem has different remainders. Let's check the difference between each divisor and
its corresponding remainder.26
10−3=7
11−4=7
15−8=7
22−15=7
The difference is constant (k=7). The form of the solution is m×LCM(divisors)−k.
First, find the LCM of 10, 11, 15, and 22.
10=2×5
11=11
15=3×5
22=2×11
LCM(10,11,15,22)=2×3×5×11=330.
We need the greatest four-digit number of the form 330m−7. The largest four-digit number is
9999.
Divide 9999 by 330 to find the largest multiple of 330 below it.
9999÷330≈30.3.
So, the largest multiple of 330 is 330×30=9900.
The number that is exactly divisible is 9900. The number that fits our remainder condition is
9900−7=9893.
Answer: 9893.
Subsection 4.3: Advanced Competitive Problems (Hard)
Question 11: Find the least number which when divided by 6, 12, 16, and 125 leaves 7 as remainder in each case,
but when divided by 11 leaves no remainder.
Solution:
This is a two-condition problem.21
First condition: The number, let's call it N, leaves a remainder of 7 when divided by 6, 12, 16,
and 125. This means N is of the form k×LCM(6,12,16,125)+7.
Let's find the LCM.
6=2×3
12=22×3
16=24
125=53
LCM(6,12,16,125)=24×31×53=16×3×125=48×125=6000.
So, N=6000k+7 for some integer k≥0.
Second condition: N is divisible by 11.
6000k+7≡0(mod11).
We need to find 6000(mod11).
6000=11×545+5. So, 6000≡5(mod11).
The congruence becomes:
5k+7≡0(mod11)
5k≡−7(mod11)
5k≡4(mod11)
We need to find the multiplicative inverse of 5 modulo 11. We can test values: 5×1=5,
5×2=10≡−1, so 5×(−2)≡1. Or 5×9=45=4×11+1≡1. The inverse is 9.
Multiply both sides by 9:
9×5k≡9×4(mod11)
1k≡36(mod11)
k≡3(mod11)
The smallest positive integer value for k is 3.
Now substitute k=3 back into the expression for N:
N=6000(3)+7=18000+7=18007.
Answer: 18007.
Question 12: The product of two natural numbers x,y and their HCF is 2520. If x>y, find the number of possible
pairs (x,y).
Solution:
Let h=HCF(x,y). We can write x=ha and y=hb, where a,b are coprime natural numbers and a>b
since x>y.29
The given condition is x×y×HCF(x,y)=2520.
Substituting our expressions:
(ha)×(hb)×h=2520
h3ab=2520.
We need to find integer solutions for h,a,b. Let's find the prime factorization of 2520:
2520=10×252=(2×5)×(4×63)=2×5×22×9×7=23×32×51×71.
So, h3ab=23×32×5×7.
Since h3 must be a perfect cube factor of this number, the only possibility for h>1 is h3=23,
which means h=2. (If h=1, ab=2520, many pairs. If h had a factor of 3, h3 would need 33, which
is not a factor of 2520).
With h=2, the equation becomes:
23ab=23×32×5×7
ab=32×5×7=9×35=315.
Now we need to find the number of pairs of coprime factors (a,b) of 315 such that a>b.
The factors of 315 are pairs (a,b):
1. (315, 1): gcd(315,1)=1. Valid.
2. (105, 3): gcd(105,3)=3. Invalid.
3. (63, 5): gcd(63,5)=1. Valid.
4. (45, 7): gcd(45,7)=1. Valid.
5. (35, 9): gcd(35,9)=1. Valid.
6. (21, 15): gcd(21,15)=3. Invalid.
There are 4 valid pairs for (a,b). Each corresponds to a unique pair (x,y).
Answer: 4.
Question 13: The sum of the LCM and HCF of two numbers is 1260. If their LCM is 900 more than their HCF, find
the product of the two numbers.
Solution:
Let the HCF be H and the LCM be L. We are given two equations 19:
1. L+H=1260
2. L=H+900
This is a system of two linear equations. Substitute (2) into (1):
(H+900)+H=1260
2H+900=1260
2H=360
H=180.
Now find L using equation (2):
L=180+900=1080.
The problem asks for the product of the two numbers. We use the fundamental identity: Product of numbers =
L×H.
Product = 1080×180=194400.
Answer: 194400.
Question 14: Three numbers are in the ratio 5:1:7 and their LCM is 7595. Find their HCF.
Solution:
Let the numbers be 5x,1x, and 7x, where x is their HCF.29 The numbers 5, 1, and 7 are pairwise
coprime.
The LCM of these numbers is found by taking the common factor x and multiplying it by the
LCM of the remaining ratios.
LCM(5x,x,7x)=x×LCM(5,1,7).
Since 5, 1, and 7 are coprime, their LCM is their product: 5×1×7=35.
So, the LCM of the numbers is 35x.
We are given that the LCM is 7595.
35x=7595
x=7595/35
x=217.
The HCF of the numbers is x.
Answer: 217.
Question 15: Find the largest four-digit number which, when divided by 4, 7, and 13, leaves a remainder of 3 in
each case.
Solution:
This is a problem of the form k×LCM(divisors)+common remainder.19
Let the number be N. The condition means N−3 is divisible by 4, 7, and 13.
So, N−3 must be a multiple of LCM(4,7,13).
The numbers 4, 7, and 13 are pairwise coprime.
LCM(4,7,13)=4×7×13=28×13=364.
So, N must be of the form 364k+3.
We need the largest four-digit number of this form. The largest four-digit number is 9999.
Let's find the largest multiple of 364 that is less than or equal to 9999.
9999÷364≈27.46.
So, the largest integer multiple is k=27.
The largest multiple of 364 is 364×27=9828.
This number, 9828, is exactly divisible by 4, 7, and 13. To get a remainder of 3, we add 3.
N=9828+3=9831.
Answer: 9831.
Question 16 (Russia 1995): Let m and n be positive integers such that lcm(m,n)+gcd(m,n)=m+n. Prove that one of
the numbers is divisible by the other.
Solution:
Let d=gcd(m,n). We can write m=ad and n=bd for some coprime positive integers a and b.30
Using the identity lcm(m,n)×gcd(m,n)=mn, we have lcm(m,n)=dmn=d(ad)(bd)=abd.
Now substitute these expressions into the given equation:
abd+d=ad+bd
Rearrange the terms to one side:
abd−ad−bd+d=0
Factor out d:
d(ab−a−b+1)=0
Since d is a positive integer (d=gcd(m,n)≥1), we must have the term in the parenthesis equal to
zero:
ab−a−b+1=0
This expression can be factored by grouping:
a(b−1)−1(b−1)=0
(a−1)(b−1)=0
This implies that either a−1=0 or b−1=0.
Case 1: a=1.
If a=1, then m=1⋅d=d. Since n=bd, we have m=d which divides n=bd. So, m∣n.
Case 2: b=1.
If b=1, then n=1⋅d=d. Since m=ad, we have n=d which divides m=ad. So, n∣m.
In either case, one of the numbers is divisible by the other. This completes the proof.
Question 17 (Putnam 2008 A3): Start with a finite sequence a1,a2,…,anof positive integers. If possible, choose
two indices j<k such that ajdoes not divide ak, and replace the pair (aj,ak) with (gcd(aj,ak),lcm(aj,ak)). Prove that
this process must eventually stop and the final sequence does not depend on the choices made.
Solution:
This problem has two parts: proving termination and proving uniqueness of the final state.32
Part 1: Termination
The process stops when for all j<k, ajdivides ak. We can prove termination by defining a
quantity that changes monotonically at each step and is bounded.
Consider the sum of the numbers in the sequence, S=∑i=1nai.
At each step, we replace (aj,ak) with (aj′,ak′)=(gcd(aj,ak),lcm(aj,ak)).
The sum changes by aj′+ak′−aj−ak.
We know that for any two positive integers x,y, x+y≥gcd(x,y)+lcm(x,y) is not always true.
However, let's consider the product P=∏i=1nai. Since gcd(x,y)⋅lcm(x,y)=xy, the product of the
elements in the sequence remains invariant at every step.
Let's define a different quantity. Consider the sum of the elements S=∑ai. Let d=gcd(aj,ak).
Then aj=dx and ak=dy for coprime x,y. The new elements are d and dxy. The change in sum is
d+dxy−(dx+dy)=d(1+xy−x−y)=d(x−1)(y−1). Since ajdoes not divide ak, y is not a multiple of x.
Since j<k is part of the rule, this doesn't help.
A better approach is to consider the first element a1. At any step involving a1(say with ak), a1
is replaced by gcd(a1,ak), which is less than or equal to the original a1. Thus, the sequence of
values for a1is non-increasing and bounded below by 1. It must therefore eventually become
constant. Once a1is constant, we can apply the same argument to a2, which is also part of a
non-increasing sequence (when considered as part of a pair with an index k>2), and so on.
This shows the process must terminate.
Part 2: Uniqueness
To prove the final sequence is unique, we analyze the prime factorizations. Let vp(m) be the
exponent of a prime p in the prime factorization of m. For any prime p, consider the multiset of
exponents {vp(a1),vp(a2),…,vp(an)}.
When we replace (aj,ak) with (gcd(aj,ak),lcm(aj,ak)), their corresponding exponents
(vp(aj),vp(ak)) are replaced by (min(vp(aj),vp(ak)),max(vp(aj),vp(ak))).
This operation does not change the multiset of exponents for prime p; it only sorts the pair of
exponents. The overall multiset {vp(a1),…,vp(an)} remains invariant for every prime p.
The process stops when for all j<k, aj∣ak. This is equivalent to saying that for every prime p,
vp(aj)≤vp(ak) for all j<k.
This means the final state is one where for each prime p, the sequence of exponents
(vp(a1),vp(a2),…,vp(an)) is sorted in non-decreasing order.
Since the initial multiset of exponents for each prime p is fixed, sorting this multiset produces
a unique sequence of exponents. As this is true for every prime p, the prime factorization of
each number in the final sequence is uniquely determined. Therefore, the final sequence is
unique.
Question 18 (CMIMC 2017): Determine all possible values of m+n, where m and n are positive integers satisfying
lcm(m,n)−gcd(m,n)=103.
Solution:
Let d=gcd(m,n). We can write m=ad and n=bd where a,b are coprime positive integers.33
We know lcm(m,n)=abd.
Substituting into the given equation:
abd−d=103
d(ab−1)=103
Since 103 is a prime number and d,a,b are positive integers, the only possible factors for 103
are 1 and 103.
This gives two cases:
Case 1: d=1 and ab−1=103.
If d=1, then gcd(m,n)=1, which means m and n are coprime.
ab−1=103⟹ab=104.
Since m=a and n=b (because d=1), we need to find pairs of coprime integers (m,n) with
product 104.
The factorization of 104 is 23×13.
The pairs of factors are (1, 104), (2, 52), (4, 26), (8, 13).
We check for coprimality:
● gcd(1,104)=1. This is a valid pair. m+n=1+104=105.
● gcd(2,52)=2. Not coprime.
● gcd(4,26)=2. Not coprime.
● gcd(8,13)=1. This is a valid pair. m+n=8+13=21.
Case 2: d=103 and ab−1=1.
If d=103, then ab=2.
Since a,b are positive integers, the only pairs for (a,b) are (1, 2) or (2, 1). In both cases, a and b
are coprime.
If (a,b)=(1,2), then m=103×1=103 and n=103×2=206.
m+n=103+206=309.
If (a,b)=(2,1), the numbers are the same, just swapped.
The possible values for m+n are 21, 105, and 309.
Answer: 21, 105, 309.
Question 19 (RMO 2013): Let a1,b1,c1∈N. Define a2=gcd(b1,c1), b2=gcd(c1,a1), c2=gcd(a1,b1). Then define
a3=lcm(b2,c2), b3=lcm(c2,a2), c3=lcm(a2,b2). Prove that gcd(b3,c3)=a2.
Solution:
This problem tests the distributive laws of GCD and LCM.34
Solution:
The problem asks for the sum of all integers n (where 1<n≤25) that are prime powers. A prime
power is a number of the form pk where p is a prime number and k is a positive integer.
We need to list all numbers n such that 1<n≤25 and n=pk for some prime p and integer k≥1.
Let's list them by prime base:
● Prime p=2:
○ 21=2
○ 22=4
○ 23=8
○ 24=16
○ 25=32 (too large)
● Prime p=3:
○ 31=3
○ 32=9
○ 33=27 (too large)
● Prime p=5:
○ 51=5
○ 52=25
● Prime p=7:
○ 71=7
○ 72=49 (too large)
● Prime p=11:
○ 111=11
● Prime p=13:
○ 131=13
● Prime p=17:
○ 171=17
● Prime p=19:
○ 191=19
● Prime p=23:
○ 231=23
The set of all such numbers n≤25 is:
{2,3,4,5,7,8,9,11,13,16,17,19,23,25}.
Now, we must find the sum of these numbers:
Sum = 2+3+4+5+7+8+9+11+13+16+17+19+23+25
Sum = (2+8)+(3+7)+(4+16)+5+9+(11+19)+(13+17)+23+25
Sum = 10+10+20+5+9+30+30+23+25
Sum = 20+20+14+60+48
Sum = 40+14+108
Sum = 54+108=162.
Answer: 162.
Works cited