how to tune wave to obtain a specific harmonic seriers
The feature of a square wave that you change to obtain a desired fundamental frequency, is the frequency.

At a duty cycle of 50%, there are no even (2n) harmonics. At a duty cycle of 33.3%, there are no 3n harmonics, and so on.