A hint:Try reducing the expressions mod 3 and mod 8. Then, what are all the squares in mod 3 and mod 8? From there, you can work out the details.
Try reducing the expressions mod 3 and mod 8. Then, what are all the squares in mod 3 and mod 8? From there, you can work out the details.