Find the nth term aₙ and the sum of the first n terms Sₙ for arithmetic and geometric sequences — with a term-by-term preview and full step-by-step working.
Enter the first term, the common difference d (arithmetic) or ratio r (geometric), and the term count n (a positive whole number).