If k=1 then n=pα and σ(n)=1+p+⋯+pα≡1(modp), so n cannot divide σ(n), impossible. Hence k=2, p1=2, p2=3, n=2α3β with α,β≥1, and the equation requires σ(n)/n=p2−1=2. But σ(n)/n=(1+21+⋯+2α1)(1+31+⋯+3β1)≥(1+21)(1+31)=23⋅34=2, with equality if and only if α=β=1. Therefore n=21⋅31=6 is the unique solution.