OFFSET
1,1
COMMENTS
Partial sums are in A164096.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Jeffrey Shallit, The speed of convergence in greedy Galois games, arXiv:2605.00194 [cs.FL], 2026. See p. 2.
Index entries for linear recurrences with constant coefficients, signature (0,2).
FORMULA
MATHEMATICA
LinearRecurrence[{0, 2}, {5, 6}, 50] (* Harvey P. Dale, Aug 15 2020 *)
(* Alternative: *)
With[{nn=20}, Riffle[NestList[ 2#&, 5, nn], NestList[2#&, 6, nn]]] (* Harvey P. Dale, Aug 15 2020 *)
PROG
(Magma) [ n le 2 select n+4 else 2*Self(n-2): n in [1..40] ];
(PARI) a(n)=([0, 1; 2, 0]^(n-1)*[5; 6])[1, 1] \\ Charles R Greathouse IV, May 13 2026
(PARI) a(n)=(4-(-1)^n)*2^(n\2) \\ Charles R Greathouse IV, May 13 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Klaus Brockhaus, Aug 10 2009
STATUS
approved
