what is the nth term of 29 and 47