A bit of graphical stuff to add to my previous post.
This is from a spreadsheet that can be used to add waveforms together.
First, with no added harmonics and you get a clean sine wave:
Now add in odd harmonics with an amplitude the inverse of their harmonic number and you get something approaching the square wave I mentioned in another thread.
It would need a greater number of terms beyond the 25th to make it better but, hopefully, it demonstrates the idea.
This is from a spreadsheet that can be used to add waveforms together.
First, with no added harmonics and you get a clean sine wave:

Now add in odd harmonics with an amplitude the inverse of their harmonic number and you get something approaching the square wave I mentioned in another thread.

It would need a greater number of terms beyond the 25th to make it better but, hopefully, it demonstrates the idea.