-pi/4 + n*pi = 3pi/4 + (n-1)*pi !!!!
That is the two solutions are the same
Beer soaked observation follows.
View attachment 26330
View attachment 26331
It could be just the beer but I'm pretty sure that should have been:
Tangent is negative in the second and fourth quadrants.