Skip to content

Problem 5

Let aa and bb be positive integers satisfying lcm⁡(a,b)−gcd⁡(a,b)=23\operatorname{lcm}(a,b)-\gcd(a,b)=23. Find the sum of all possible values of a+ba+b.

Solution

Answer: 129129

Let d=gcd⁡(a,b)d=\gcd(a,b), and set x=adx=\frac ad, y=bdy=\frac bd. Since lcm⁡(a,b)=dxy\operatorname{lcm}(a,b)=dxy,

d(xy−1)=23.d(xy-1)=23.

The PDF considers two cases. If d=1d=1, then xy=24xy=24, and it lists the pairs (1,24),(2,12),(3,8),(4,6)(1,24),(2,12),(3,8),(4,6), or their reverses, giving sums 25,14,11,1025,14,11,10. If d=23d=23, then xy=2xy=2, giving (a,b)=(46,23)(a,b)=(46,23) or its reverse and sum 6969.

The source adds these listed sums: 10+11+14+25+69=12910+11+14+25+69=129.