fixed a bug that outputs incorrect sequences when square of integers overflows
Merge branch 'master' into develop