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