A069362 Number of 4 X n binary arrays with a path of adjacent 1's from top row to bottom row.
1, 41, 1041, 22193, 433809, 8057905, 144769425, 2541013617, 43843180113, 746691527217, 12588144461329, 210502738714097, 3497001564166609, 57781030561348017, 950437243856526737, 15574913193760097649, 254416775893204873553, 4144677558181255455025
Offset: 1
Links
- Colin Barker, Table of n, a(n) for n = 1..800
- Index entries for linear recurrences with constant coefficients, signature (35,-378,1264,-1272,-128).
Crossrefs
Programs
-
Magma
m:=25; R
:=PowerSeriesRing(Integers(), m); Coefficients(R!(x*(1+6*x-16*x^2-8*x^3)/((1-16*x)*(1-19*x+ 74*x^2 -80*x^3-8*x^4)))); // G. C. Greubel, Apr 22 2018 -
Mathematica
Rest[CoefficientList[Series[x*(1+6*x-16*x^2-8*x^3)/((1-16*x)*(1-19*x+ 74*x^2 -80*x^3-8*x^4)), {x,0,50}],x]] (* G. C. Greubel, Apr 22 2018 *) LinearRecurrence[{35,-378,1264,-1272,-128},{1,41,1041,22193,433809},20] (* Harvey P. Dale, Jan 01 2019 *)
-
PARI
Vec(x*(1 + 6*x - 16*x^2 - 8*x^3) / ((1 - 16*x)*(1 - 19*x + 74*x^2 - 80*x^3 - 8*x^4)) + O(x^30)) \\ Colin Barker, Oct 12 2017
Formula
G.f.: x*(1 +6*x -16*x^2 -8*x^3)/((1 -16*x)*(1 -19*x +74*x^2 -80*x^3 - 8*x^4)).