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
FORMULA
G.f.: (1-x)/(1-6x-5x^2).
a(n) = (3+sqrt(14))^n(1/sqrt(14)+1/2) + (3-sqrt(14))^n(1/2-1/sqrt(14)).
a(n) = Sum_{k=0..n} 5^k*A122542(n,k). Lim_{n->infinity} a(n+1)/a(n) = 3 + sqrt(14) = 6.741657386773.... - Philippe Deléham, Sep 22 2006
MATHEMATICA
LinearRecurrence[{6, 5}, {1, 5}, 30] (* Harvey P. Dale, Apr 09 2022 *)
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