OFFSET
0,2
COMMENTS
Let the generator matrix for the ternary Golay G_12 code be [I|B], where the elements of B are taken from the set {0,1,2}. Then a(n)=sum of first row of B^n.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,5).
FORMULA
G.f.: (1-x)/(1-6*x-5*x^2).
a(n) = (1/2 +1/sqrt(14))*(3 +sqrt(14))^n + (1/2 -1/sqrt(14))*(3 -sqrt(14))^n.
From Philippe Deléham, Sep 22 2006: (Start)
a(n) = Sum_{k=0..n} 5^k*A122542(n,k).
Lim_{n->infinity} a(n+1)/a(n) = 3 + sqrt(14) = 6.741657386773... . (End)
MATHEMATICA
LinearRecurrence[{6, 5}, {1, 5}, 30] (* Harvey P. Dale, Apr 09 2022 *)
PROG
(Magma)
[n le 2 select 5^(n-1) else 6*Self(n-1) +5*Self(n-2): n in [1..41]]; // G. C. Greubel, Oct 27 2024
(SageMath)
A091928= BinaryRecurrenceSequence(6, 5, 1, 5)
[A091928(n) for n in range(41)] # G. C. Greubel, Oct 27 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Feb 13 2004
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, Jun 05 2007
STATUS
approved