Maths WorkshopMaths problems with full solutions
Exercise 262Number theory › PrimesHigh schoolAdded 3 Nov 2026

GCD of successive integers

#coprime#consecutive integers#gcd

Statement

Show that gcd⁡(n,n+1)=1\gcd(n,n+1)=1 for all nn.

Hint

Any common divisor divides the difference.

Show solutionHide solution

Solution

Difference. If d∣nd\mid n and d∣n+1d\mid n+1, then d∣(n+1)−n=1d\mid(n+1)-n=1.

Conclusion. d=1d=1, so gcd⁡(n,n+1)=1\gcd(n,n+1)=1.

Generalization. gcd⁡(n,n+k)∣k\gcd(n,n+k)\mid k, so gcd⁡(n,n+k)=1\gcd(n,n+k)=1 iff no prime dividing kk divides nn.