The Delta Function
In[47]:=
Clear[a0,a,b]
a0=1/(2Pi);
a=Table[1/Pi,{k,1,20}];
This gives the partial sums of the akCos[kx] from 1 to 20 (we'll have to add a0 later).
In[48]:=
Sn=Table[Sum[a[[k]]Cos[k x],{k,1,n}],{n,1,20}];
For example:
In[49]:=
Sn[[3]]
Out[49]=
Cos[x] Cos[2 x] Cos[3 x]
------ + -------- + --------
Pi Pi Pi
Let's see how we did.
In[50]:=
Plot[a0+Sn[[10]],{x,-Pi,Pi},PlotRange->{-1,5}];

Do you think you can see how this could converge to the delta function? I would say experiment with more and more partial sums, but Mathematica takes a loooooong time to plot larger ones.
Up to Fourier Series Examples