OFFSET
0,2
LINKS
Jianing Song, Table of n, a(n) for n = 0..1000
Peter Luschny, Illustration of A354044.
Peter Luschny, The Fibonacci Function.
Index entries for linear recurrences with constant coefficients, signature (2,1,-2,-1).
FORMULA
a(n) = [x^n] ((2 - x)*x*(x + 1))/(x^2 + x - 1)^2.
a(n) = (((-1 - sqrt(5))^(-n)*(sqrt(5)*n - n - 2) + (-1 + sqrt(5))^(-n)*(sqrt(5)*n + n + 2)))/(2^(1 - n)*sqrt(5)).
a(n) = (-1)^(n - 1)*(Fibonacci(-n) - n*Fibonacci(-n - 1)).
a(n) = ((-42*n^2 + 259*n - 350)*a(n - 3) + (123*n^2 - 76*n - 446)*a(n - 2) + (207*n^2 - 885*n + 412)*a(n - 1)) / ((165*n - 542)*(n - 1)) for n >= 4.
a(n) = Fibonacci(n) + n*Fibonacci(n+1). - Jianing Song, May 16 2022
MAPLE
c := arccos(I/2): a := n -> 2*(-I)^n*(n*sin(c*(n+1)) - I*sin(-c*n))/sqrt(5):
seq(simplify(a(n)), n = 0..35);
PROG
(Julia)
function fibrec(n::Int)
n == 0 && return (BigInt(0), BigInt(1))
a, b = fibrec(div(n, 2))
c = a * (b * 2 - a)
d = a * a + b * b
iseven(n) ? (c, d) : (d, c + d)
end
function A354044(n)
n == 0 && return BigInt(0)
a, b = fibrec(n + 1)
a*(n - 1) + b
end
println([A354044(n) for n in 0:35])
(PARI) a(n) = fibonacci(n) + n*fibonacci(n+1) \\ Jianing Song, May 16 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Luschny, May 16 2022
STATUS
approved