Limits: 1s, 512 MB

A sequence is an arithmetic sequence if every two successive number has same difference. Suppose this is a sequence of numbers:

This is a companion discussion topic for the original entry at https://toph.co/p/an-arithmetic-problem