This is for programs that computes the correct sequence, but takes overflows when using 64bit signed integer.