OFFSET
1,3
COMMENTS
For n >= 2, 5*(a(n)+k)*Pi; where k = 0, 4, 3, 1 if n mod 5 = 0 or 1, 2, 3, 4 respectively; is also the total length of irregular spiral (center points: 1, 4, 3, 2, 5) after (n-1) rotations. - Kival Ngaokrajang, Jan 08 2014
LINKS
Kival Ngaokrajang, Illustration of irregular spiral (center points: 1, 4, 3, 2, 5)
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: x^2*(2*x^2 - x + 1)*(1+x)^2 / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - R. J. Mathar, Dec 05 2011
a(n) ~ 8*n/5. - Charles R Greathouse IV, Jun 02 2026
PROG
(PARI) a(n)=(n-1)\5*8+[6, 0, 1, 2, 3][n%5+1] \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
