The nth term of that sequence could be:

n^4 - 8n^3 + 26n^2 - 34n + 17

In that case:

Term 6 is 317

Start over

Written by Jeff Aaron