Alright well after putting my mind to it this is my explanation then...
Ok well assuming you did everything right up to the -cos2θ=0 (which looks good to me, but I don't know my identities), then when you solve for θ you would get -pi/4, since cos goes to 0 at pi/2, so divide that by 2 and you get -pi/4.
All the +pi/2k means is that it will repeat every pi/2k, where k is any integer (so the answer is -pi/4, -3pi/4, -5pi/4, and so on). Since the cosine wave repeats every 2pi, the answer -pi/4 will appear in an infinite number of locations unless you are specified an interval (usually [-2pi, 2pi])
So basically you did all the hard stuff
you just had to solve for θ and then add the pi/2k to include every repitition.
Hopefully that makes a bit of sense, If not I can try to explain better if needed.