OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..3308
Index entries for linear recurrences with constant coefficients, signature (6,-14,16,-8).
FORMULA
MAPLE
a := n -> ((2^n*n + I*(1 - I)^n - I*(1 + I)^n))/4:
seq(a(n), n=0..32);
MATHEMATICA
LinearRecurrence[{6, -14, 16, -8}, {0, 1, 3, 7}, 40] (* Jean-François Alcover, Mar 20 2019 *)
Table[((2^n n + I (1 - I)^n - I (1 + I)^n))/4, {n, 0, 29}] (* Alonso del Arte, Mar 27 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Luschny, Mar 18 2019
STATUS
approved