Find such that and are consecutive terms of an arithmetic sequence.