Write a script to plot this function in python 2.7.12?
f(j) = ∑i=0m-1aicos(2Πi*j/m) where m is 3? In the case where a0=a1=a2=1, the function looks like this:

Able to input different values of ai to see how it changes the waveform. It should still look like that if choose ai values to be 1 after the script.