Let the greatest common divisor of a and b be denoted by A, and let a=a1⋅A, b=b1⋅A. Then the least common multiple is A⋅a1⋅b1, which can be verified by examining the prime factorization of the numbers: if a=p1α1⋅p2α2⋯⋯prαr, b=p1β1⋅p2β2⋯⋯prβr(αi≥0,βi≥0), then
A=(a,b)=p1min(α1,β1)⋯⋯prmin(αr,βr),a1=p1α1−min(α1,β1)⋯⋯prαr−min(αr,βr),[a,b]=p1max(α1,β1)⋯⋯prmax(αr,βr)b1=p1β1−min(α1,β1)⋯⋯prβr−min(αr,βr)
that is,
A⋅a1⋅b1=p1α1+β1−min(α1,β1)⋯prαr+βr−min(αr,βr)=p1max(α1,β1)⋯prmax(αr,βr)
since for any α,β, α+β−min(α,β)=max(α,β).
Substituting the above into the equation and simplifying:
A⋅a1⋅b1+A+A⋅a1+A⋅b1=A⋅a1⋅A⋅b1,A⋅(a1b1+a1+b1+1)=A⋅(A⋅a1⋅b1),A⋅(a1+1)⋅(b1+1)=A⋅(A⋅a1⋅b1)
First, let's consider the case A=0. If a=0 and b=0, then A=0, so at least one of a and b must be zero. By definition, (a,0)=a if a=0, so the only remaining case is a=b=0. The number (0,0) is not usually defined; if we do define it, then (0,0)=0 in which case a=b=0 is a solution, while (0,0)=0 in which case it is not. Whether or not 0 is considered a natural number does not affect the essential part (and the grading) of the solution, regardless of whether the solution a=b=0 is missing or present.
Thus, we can assume A=0, and we can simplify by dividing by A:
(a1+1)⋅(b1+1)=A⋅a1⋅b1
It is clear that the cases a1=0 and b1=0 do not provide solutions, so the following rearrangement is permissible:
A=a1a1+1⋅b1b1+1
Since 1≤a1 and 1≤b1, we have
1<a1a1+1≤2,1<b1b1+1≤2
Thus, only A=2,3,4 are possible.
1. Case: A=2. From (1), we get
a1b1+a1+b1+1=2a1b1
Adding 2 to both sides,
2=a1b1−a1−b1+1=(a1−1)(b1−1)
This is only possible if a1−1=1 and b1−1=2, or vice versa. In the former case, a1=2, b1=3, so a=4, b=6; in the latter case, a=6, b=4.
2. Case: A=3. From (1), we get
3a1b1=a1b1+a1+b1+12a1b1−a1−b1−1=04a1b1−2a1−2b1−2=0(2a1−1)(2b1−1)=3
Then necessarily 2a1−1=3 and 2b1−1=1, or vice versa, from which a=6, b=3, or a=3, b=6.
3. Case: A=4. Then
4a1b1=a1b1+a1+b1+13a1b1−a1−b1−1=09a1b1−3a1−3b1−3=0(3a1−1)(3b1−1)=4
Since 3a1−1=4 and 3b1−1=1 are not possible, we must have 3a1−1=3b1−1=2, from which a=b=4.
We have found five pairs of numbers, and it is easy to verify that each of them is indeed a solution; the solutions are:
(3,6),(4,6),(4,4),(6,4),(6,3)
Reviczky Ágnes (München, Gymnasium Der Armen Schulschwestern, II. o.t.)