OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
a(n) = (1/8) * [14n^2 + 8n + 5 + 3(-1)^n], for n>4.
G.f.: -(2*x^8+2*x^7-7*x^6-5*x^5+8*x^4+5*x^3+x^2+1) / ((x-1)^3*(x+1)). - Colin Barker, Jul 14 2013
EXAMPLE
2 squares are reachable after 1 move, from these you can reach 3 new squares more, so a(1)=2, a(2)=5.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Sep 15 2004
EXTENSIONS
More terms from Colin Barker, Jul 14 2013
STATUS
approved