Example Find the term number n of the arithmetic sequence with an = 6, a1=-34 and d = 4.