Competitive-coding Solutions to coding problems I have did, Nice properties: gcd(P·N, P·M) = P·gcd(N, M) lcm(P·N, P·M) = P·lcm(N, M) lcm(N,M) * gcd(N,M) = N*M