14 graded problems from direct computation to olympiad-adjacent. Each solution names the exact tool it uses, with a quick-reference table at the end.
Each problem below names the tool it uses. If a problem is hard, go back to that page first.
Level 1 — Direct
P1. Find gcd(2100−1,275−1).
Tool: Power Identity
gcd(2100−1,275−1)=2gcd(100,75)−1=225−1.
P2. If gcd(a,b)=12 and lcm(a,b)=1800, find all pairs (a,b) with a≤b.
Tool: Fundamental Relation
Write a=12p, b=12q with gcd(p,q)=1 and pq=1800/12=150=2×3×52.
Coprime factor pairs of 150 with p≤q:
| (p,q) | gcd? | Valid? |
|---|
| (1,150) | 1 | ✓ |
| (2,75) | 1 | ✓ |
| (3,50) | 1 | ✓ |
| (6,25) | 1 | ✓ |
| (10,15) | 5 | ✗ |
Pairs (a,b): (12,1800), (24,900), (36,600), (72,300).
P3. How many integers in {1,…,1000} are coprime to 1000?
Tool: Euler's Totient
ϕ(1000)=1000×(1−21)(1−51)=400.
P4. Find gcd(F18,F12) where Fn is the n-th Fibonacci number.
Tool: Fibonacci GCD
gcd(F18,F12)=Fgcd(18,12)=F6=8.
Level 2 — JEE Pattern
P5. Find all integers n such that n+1∣n2+1.
Tool: Invariance under shifts
n2+1=(n+1)(n−1)+2, so n+1∣n2+1⟺n+1∣2.
Thus n+1∈{−2,−1,1,2}, giving n∈{−3,−2,0,1}.
P6. Find all positive integer solutions to 12x+8y=100.
Tool: Linear Diophantine Equations
d=gcd(12,8)=4 and 4∣100. ✓ Divide: 3x+2y=25.
Particular: (x0,y0)=(1,11). General: x=1+2k, y=11−3k.
Positive constraints: k≥0 and k≤3.
4 solutions: (1,11),(3,8),(5,5),(7,2).
P7. Prove: gcd(n2+1,n+1)∈{1,2} for all integers n.
Tool: Invariance
gcd(n2+1,n+1)=gcd(2,n+1), which is 2 if n is odd, 1 if n is even. ■
P8. Find the number of ordered pairs (a,b) of positive integers such that lcm(a,b)=23×32×5.
Tool: Prime-by-prime LCM counting
For lcm(a,b)=p1e1⋯pkek, the count of ordered pairs is ∏(2ei+1).
(2×3+1)(2×2+1)(2×1+1)=7×5×3=105.
P9. Find gcd(n!+1,(n+1)!+1) for all n≥1.
Tool: Reduction to remainder
(n+1)!+1=(n+1)⋅n!+1.
gcd(n!+1,(n+1)!+1)=gcd(n!+1,(n+1)⋅n!+1−(n+1)(n!+1))=gcd(n!+1,−n).
Since n∣n!, we have n!+1≡1(modn), so gcd(n!+1,n)=1.
Answer: always 1.
P10. Solve the system: x≡3(mod4), x≡5(mod6), x≡2(mod7).
Tool: Chinese Remainder Theorem
Note: gcd(4,6)=2=1, so CRT doesn't directly apply. Check compatibility:
x≡3(mod4)⟹x is odd.
x≡5(mod6)⟹x is odd (since 5 is odd). ✓
Combine first two: x≡3(mod4) and x≡5(mod6).
x=4j+3. Then 4j+3≡5(mod6)⟹4j≡2(mod6)⟹2j≡1(mod3)⟹j≡2(mod3).
So j=3m+2, x=4(3m+2)+3=12m+11. Thus x≡11(mod12).
Now combine x≡11(mod12) and x≡2(mod7). Here gcd(12,7)=1. ✓
x=12n+11. Then 12n+11≡2(mod7)⟹5n≡−9≡5(mod7)⟹n≡1(mod7).
n=7t+1, x=12(7t+1)+11=84t+23.
Answer: x≡23(mod84).
Level 3 — Advanced
P11. Prove: if gcd(a,b)=1, then gcd(a+b,a2−ab+b2)∈{1,3}.
Tool: Bezout + Euclid's Lemma
Let d=gcd(a+b,a2−ab+b2).
Since a2−ab+b2=(a+b)2−3ab, we get d∣3ab.
If prime p∣d and p∣a: then p∣a+b forces p∣b, contradicting gcd(a,b)=1.
So gcd(d,a)=gcd(d,b)=1, hence d∣3.
d∈{1,3}. ■
Both values are achieved: a=1,b=1 gives d=1; a=1,b=2 gives gcd(3,3)=3.
P12. Find all positive integer solutions to x1+y1=n1 for fixed positive integer n.
Tool: Diophantine + divisor counting
Rearranging: ny+nx=xy⟹xy−nx−ny=0⟹(x−n)(y−n)=n2.
Each factorization n2=d1d2 with d1,d2>0 gives a solution: x=n+d1, y=n+d2.
Number of ordered solutions = τ(n2), the number of positive divisors of n2.
Example. n=6: n2=36 has τ(36)=9 divisors. 9 ordered pairs (x,y).
P13. Prove: lcm(1,2,…,2n)≥2n+14n.
Tool: LCM and combinatorics
The central binomial coefficient (n2n) is an integer. Its denominator in lowest terms divides lcm(1,2,…,2n) — in fact, lcm(1,…,2n)/(n2n) is an integer.
Wait — more directly: since (n2n) is an integer, and (n2n)=(n!)2(2n)!, the value lcm(1,…,2n)⋅n!21 is... let me state the cleaner path.
From (1+1)2n=∑k=02n(k2n) and all terms are positive: (n2n)≤4n.
Also the sum has 2n+1 terms all at most (n2n), so 4n≤(2n+1)(n2n), giving (n2n)≥2n+14n.
Now observe: lcm(1,2,…,2n) is divisible by (n2n) (each (k2n) is an integer; the LCM of denominators... actually use: (n2n)⋅something=(2n)!/(2n)!lcm(1,…,2n)⋅lcm(1,…,n)2...
The cleanest path: (n2n)∣lcm(1,…,2n) because lcm(1,…,2n)/(n2n)=(2n)!lcm(1,…,2n)⋅(n!)2 is the product over primes of certain prime power ratios that are always integers.
Therefore lcm(1,…,2n)≥(n2n)≥2n+14n. ■
P14. (Construction) Show that for any integer n≥2, there exist n consecutive integers each having a prime factor not dividing any of the others.
This uses the Chinese Remainder Theorem to construct a starting point, combined with the Fundamental Theorem of Arithmetic. The proof is existential — CRT guarantees the starting integer exists.
Left as an exercise — reconstruct the CRT-based construction using the CRT page.
Quick reference
| Goal | Tool |
|---|
| Compute gcd | Euclidean Algorithm |
| Write gcd as a combination | Bezout / Extended Euclidean |
| Prove d∣gcd(a,b) | Bezout: gcd=ax+by |
| Show a∣c given a∣bc, gcd(a,b)=1 | Euclid's Lemma |
| Solve ax+by=c | Bezout + general solution |
| Solve ax≡b(modm) | Reduce by d, then invert |
| gcd(an−1,am−1) | Power Identity |
| gcd(Fn,Fm) | Fibonacci GCD Identity |
| Count coprime integers | Euler's Totient |
| Simplify gcd(f(n),g(n)) | Replace by remainder (shift identity) |
| Count pairs with given LCM | ∏(2ei+1) over prime factorization |
| Simultaneous congruences | CRT (requires pairwise coprimality) |