editing
approved
editing
approved
a(n) = Sum_{k=0..n} A046854(n-1,k)*6^k. - R. J. Mathar, Feb 14 2024
approved
editing
editing
approved
a(n) = (1/10)*[3 - sqrt(10)]^n*sqrt(10) - (1/10)*[3 + sqrt(10)]^n*sqrt(10) + (1/2)*[3 + sqrt(10)]^n + (1/2) *[3 - sqrt(10)]^n, with n >= 0. - Paolo P. Lava, Jun 25 2008
approved
editing
(MAGMAMagma) [n le 2 select 1 else 6*Self(n-1) + Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 08 2012
proposed
approved
editing
proposed
Row m=6 of A135597.
CoefficientList[Series[(1-5*x)/(1-6*x-x^2), {x, 0, 50}], x] (* G. C. Greubel, Dec 19 2017 *)
(PARI) x='x+O('x^30); Vec((1-5*x)/(1-6*x-x^2)) \\ G. C. Greubel, Dec 19 2017
Row m=6 of A135597.
approved
editing
editing
approved
a(n+1) equals the number of sequences on over the alphabet {0,1,2,3,4,5,6} of length n such that no two consecutive terms differ by 4. - David Nacin, May 31 2017
approved
editing