Finding nth term of a sequence