Find nth term of geometric sequence (#429)