Write a formula for an arithmetic sequence