Solution
Solution 1
By the product-to-sum identities, we have that 2cosasinb=sin(a+b)−sin(a−b). Therefore, this reduces to a telescope series:
k=1∑n2cos(k2a)sin(ka)=k=1∑n[sin(k(k+1)a)−sin((k−1)ka)]=−sin(0)+sin(2a)−sin(2a)+sin(6a)−⋯−sin((n−1)na)+sin(n(n+1)a)=−sin(0)+sin(n(n+1)a)=sin(n(n+1)a)
Thus, we need sin(2008n(n+1)π) to be an integer; this can be only {−1,0,1}, which occur when 2⋅2008n(n+1) is an integer. Thus 1004=22⋅251∣n(n+1)⟹251∣n,n+1. We know that n cannot be 250 as 250 isn't divisible by 4, so 1004 doesn't divide n(n+1)=250⋅251. Therefore, it is clear that n=251 is the smallest such integer.
Solution 2
We proceed with complex trigonometry. We know that for all θ, we have cosθ=21(z+z1) and sinθ=2i1(z−z1) for some complex number z on the unit circle. Similarly, we have cosnθ=21(zn+zn1) and sinnθ=2i1(zn−zn1). Thus, we have cosn2asinna=4i1(zn2+zn21)(zn−zn1)
=4i1(zn2+n−zn2+n1−zn2−n+zn2−n1)
=21(2i1(zn2+n−zn2+n1)−2i1(zn2−n−zn2−n1))
=21(sin((n2+n)a)−sin((n2−n)a))
=21(sin(((n+1)2−(n+1))a)−sin((n2−n)a))
which clearly telescopes! Since the 2 outside the brackets cancels with the 21 inside, we see that the sum up to n terms is
sin((22−2)a)−sin((12−1)a)+sin((33−3)a)−sin((22−2)a)⋯+sin(((n+1)2−(n+1))a)−sin((n2−n)a)
=sin(((n+1)2−(n+1))a)−sin(0)
=sin((n2+n)a)−0
=sin(2008n(n+1)π).
This expression takes on an integer value iff 20082n(n+1)=1004n(n+1) is an integer; that is, 1004∣n(n+1). Clearly, 1004=22⋅251, implying that 251∣n(n+1). Since we want the smallest possible value of n, we see that we must have n,n+1=251. If n+1=251→n=250, then we have n(n+1)=250(251), which is clearly not divisible by 1004. However, if n=251, then 1004∣n(n+1), so our answer is 251.
It should be noted that the product-to-sum rules follow directly from complex trigonometry, so this solution is essentially equivalent to the solution above.