find the nth term in the sequence