Part of my assignment is to find "magic squares". That is, perfect squares that are the sum of consecutive intergers. I get the second part, but I have no idea how to check that the square root of the sum of consecutive numbers is an interger (and therefor a perfect square). Maybe I need to find another way to check for perfect squares?

any ideas would be appreciated.