結果 : how to find the nth term of a non linear sequence