has four solutions on

These are 45, 135, 225 and 315

45 + 360n and 135 + 360n can be rewritten as 45+180n, because they are half a period apart.

Same goes for 135 and 315 (where -45 is 315-360)

You could sum up all solutions as 45+90n

Do you understand now?