A square wave is a sum of infinitely many sine waves (harmonics). Each harmonic carries some power, so is the total finite? Each harmonic's power is at most a constant over n², and the p-series Σ1/n² converges, so by comparison the harmonics' power adds up to something finite: exactly the square wave's power.