A010730 a(n) = (17 -3*(-1)^n)/2.
7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10, 7, 10
Offset: 0
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Magma
&cat [[7, 10]^^50]; // Vincenzo Librandi, Feb 28 2020
-
Mathematica
PadRight[{},120,{7,10}] (* Harvey P. Dale, Jul 08 2019 *)
Formula
G.f.: ( -7-10*x ) / ( (x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011
a(n) = 7 + 2^(1 - (-1)^n) - 1. - Vincenzo Librandi, Feb 28 2020
Comments