A306603 a(n) = (2 cos(Pi/15))^n + (2 cos(7 Pi/15))^n + (2 cos(11 Pi/15))^n + (2 cos(13 Pi/15))^n.
4, -1, 9, -1, 29, 4, 99, 34, 349, 179, 1254, 824, 4559, 3574, 16704, 15004, 61549, 61709, 227799, 250229, 846254, 1004149, 3153984, 3997399, 11788879, 15812504, 44178624, 62229509, 165946124, 243873904, 624650004, 952400599, 2355748909, 3708579599
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (-1,4,4,-1).
Crossrefs
Programs
-
Mathematica
Table[Sum[(2.0 Cos[k Pi/15])^n, {k, {1, 7, 11, 13}}] // Round, {n, 1, 30}] LinearRecurrence[{-1,4,4,-1},{4,-1,9,-1},40] (* Harvey P. Dale, Jun 02 2024 *)
Formula
G.f.: (4*x^3+8*x^2-3*x-4)/(-x^4+4*x^3+4*x^2-x-1). - Alois P. Heinz, Feb 27 2019
a(n) = -a(n-1) + 4*a(n-2) + 4*a(n-3) -a(n-4). - Greg Dresden, Feb 27 2019
Comments