OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,2,0,1,0,-1).
FORMULA
EXAMPLE
MATHEMATICA
LinearRecurrence[{0, 2, 0, 1, 0, -1}, {1, 3, 2, 6, 5, 14}, 50] (* Paolo Xausa, Feb 22 2024 *)
PROG
(Python)
a = [1, 3, 2, 6, 5, 14]
for i in range(30):
a.append(2*a[-2]+a[-4]-a[-6])
print(a)
(PARI) Vec(O(x^55)+(1+3*x-x^5)/(1-2*x^2-x^4+x^6)) \\ Joerg Arndt, Feb 18 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Tomasz Dziekanski, Feb 18 2024
STATUS
approved