y=sin(nx)

y=sin([n+1]x)

(where n is a positive integer) is also a solution to at least one of the following:

y=0

y=cos(ax)

y=-cos(ax)

Find, with proof, the value of a.

Also give a formula for the total number of solutions on the interval [0,2pi)