OFFSET
0,3
COMMENTS
Binomial transform of A001023 (powers of 14), with interpolated zeros.
a(n) is the number of compositions of n when there are 1 type of 1 and 14 types of other natural numbers. - Milan Janjic, Aug 13 2010
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,13).
FORMULA
G.f.: (1-x)/(1-2*x-13*x^2).
a(n) = Sum_{k=0..n} A098158(n,k)*14^(n-k). - Philippe Deléham, Dec 26 2007
If p[1]=1, and p[i]=14, (i>1), and if A is Hessenberg matrix of order n defined by: A[i,j]=p[j-i+1], (i<=j), A[i,j]=-1, (i=j+1), and A[i,j]=0 otherwise. Then, for n>=1, a(n)=det A. - Milan Janjic, Apr 29 2010
a(n) = (b*i)^(n-1)*(b*i*ChebyshevU(n, -i/b) - ChebyshevU(n-1, -i/b)), with b = sqrt(13). - G. C. Greubel, Oct 15 2022
MATHEMATICA
f[n_]:= Simplify[((1+Sqrt[14])^n + (1-Sqrt[14])^n)/2]; Array[f, 25, 0] (* Or *)
CoefficientList[Series[(1+13x)/(1-2x-13x^2), {x, 0, 23}], x] (* Or *)
LinearRecurrence[{2, 13}, {1, 1}, 25] (* Or *)
Table[ MatrixPower[{{1, 2}, {7, 1}}, n][[1, 1]], {n, 0, 30}] (* Robert G. Wilson v, Sep 18 2013 *)
PROG
(PARI) Vec((1-x)/(1-2*x-13*x^2)+O(x^99)) \\ Charles R Greathouse IV, Jan 12 2012
(Magma) [n le 2 select 1 else 2*Self(n-1) +13*Self(n-2): n in [1..41]]; // G. C. Greubel, Oct 15 2022
(SageMath)
A133343=BinaryRecurrenceSequence(2, 13, 1, 1)
[A133343(n) for n in range(41)] # G. C. Greubel, Oct 15 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Dec 21 2007
STATUS
approved