fixed a bug that outputs incorrect sequences when square of integers overflows