Sequences and the nth term