arithmetic sequences and linear functions