Arithmetic Sequences and Linear Equations