nonarithmetic progression sequence

Input interpretation

nonarithmetic progression sequence