MathDB
gcd (a,b)=50! , lcm(a,b)=(50!)^2

Source: 2021 Czech-Polish-Slovak Match Junior, team p3 CPSJ

September 12, 2021
number theorygreatest common divisorleast common multipleLCMGCD

Problem Statement

Find the number of pairs (a,b)(a, b) of positive integers with the property that the greatest common divisor of aa and b b is equal to 123...501\cdot 2 \cdot 3\cdot ... \cdot50, and the least common multiple of aa and b b is 122232...5021^2 \cdot 2^2 \cdot 3^2\cdot ... \cdot 50^2.