By the way, Sawtooth and square sound waves can also be decomposed into sine waves via Fourier transforms, but anything like that with a discontinuous jump needs an infinite number of higher frequencies to reproduce it. In reality, all square waves and sawtooth waves are only approximate, and can therefore be built from a finite number of frequqncies (your electronics don't have infinite bandwidth for a start.
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition