3. The Generalization to N Numbers
Theorem 2
Given N nonzero natural numbers a₁,…,aN, we have
Observation 2
The GCD on the right-hand side is not the GCD of the ai themselves, but of the N "co-products" (1/am)·∏ai — the product of all the ai except the m-th. For N=2, (1/a₁)(a₁a₂)=a₂ and (1/a₂)(a₁a₂)=a₁, so the GCD of the two co-products is simply GCD(a₁,a₂): the formula reduces exactly to Theorem 1. For N>2 this is no longer true (the co-product isn't the single ai), and it's precisely this difference that makes the generalization non-trivial — we explore it with a counterexample in Section 4.
Proof. Using the definitions from Section 2, let's compute the GCD on the right-hand side. The m-th co-product factors as
Since computing the GCD means selecting the minimum exponent over m=1,…,N, and minimizing ∑ieij−emj over m is equivalent to maximizing emj(the sum ∑ieij doesn't depend on m), the exponent of the factor fj in the GCD of the co-products is ∑ieij−maxi(eij). Hence
The left-hand side of the claim is ∏iai=∏jfj∑ᵢeᵢⱼ, which is exactly the product of LCM(a₁,…,aN)=∏jfjmaxᵢ(eᵢⱼ) and the expression just found — an exponent identity that is trivially verified (maxi(eij) + [∑ieij−maxi(eij)] = ∑ieij). The claim is proved.
∎
Let's explicitly verify the reduction to the N=2 case: setting N=2 in the general formula recovers
which is exactly Theorem 1.