login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Row sums of triangle A111975, which shifts columns left and up under matrix square.
1

%I #4 Mar 30 2012 18:36:50

%S 1,2,4,13,57,369,3681,59073,1579393,72188673,5749089793,809616264193,

%T 204018868459521,92907742733348865,77097057406948106241,

%U 117413997231333438701569,330195264668839727287861249

%N Row sums of triangle A111975, which shifts columns left and up under matrix square.

%o (PARI) {a(n,q=2)=local(A=Mat(1),B);if(n<0,0, for(m=1,n+2,B=matrix(m,m);for(i=1,m, for(j=1,i, if(j==i,B[i,j]=1,if(j==1,B[i,j]=if(i>2,(A^q)[i-1,2],1), B[i,j]=(A^q)[i-1,j-1]));));A=B); return(sum(k=0,n,A[n+1,k+1])))}

%Y Cf. A111975 (triangle), A078537 (variant).

%K nonn

%O 0,2

%A _Paul D. Hanna_, Aug 25 2005