OFFSET
0,2
COMMENTS
From Paul Curtz, Jan 01 2020: (Start)
In the following pentagonal spiral of odd numbers
101
99 61 63
97 59 31 33 65
95 57 29 11 13 35 67
93 55 27 9 1 3 15 37 69
91 53 25 7 5 17 39 71
89 51 23 21 19 41 73
87 49 47 45 43 75
85 83 81 79 77
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Johann Cigler, Some remarks and conjectures related to lattice paths in strips along the x-axis, arXiv:1501.04750 [math.CO], 2015-2016.
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5). - Colin Barker, Sep 25 2014
G.f.: -(x^4+2*x^3+4*x^2+2*x+1) / ((x-1)^3*(x+1)^2). - Colin Barker, Sep 25 2014
From Paul Curtz, Jan 01 2020: (Start)
a(n) = 1 + 2*A085787(n).
a(n+1) = a(n-1) + A090772(n+1). (End)
E.g.f.: (1/4)*((1 + x)*(4 + 5*x)*cosh(x) + (3 + x*(11 + 5*x))*sinh(x)). - Stefano Spezia, Jan 01 2020
MAPLE
f:=n->(10*n*(n+1)+(2*n+1)*(-1)^n+7)/8;
MATHEMATICA
Table[(10 n (n + 1) + (2 n + 1) (-1)^n + 7)/8, {n, 0, 60}] (* Vincenzo Librandi, Sep 26 2014 *)
PROG
(PARI) Vec(-(x^4+2*x^3+4*x^2+2*x+1) / ((x-1)^3*(x+1)^2) + O(x^100)) \\ Colin Barker, Sep 25 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 23 2014
EXTENSIONS
More terms from Colin Barker, Sep 25 2014
STATUS
approved