A125804 Main diagonal of table A125800.
1, 2, 12, 238, 15200, 3013980, 1828979530, 3373190565626, 18837339867421686, 317817051628161116674, 16176220447967300610844988, 2481251352301850541661479580329, 1146112129196402690505198891390847384
Offset: 0
Keywords
Crossrefs
Programs
-
PARI
a(n)=local(q=3,A=Mat(1), B); for(m=1, n+1, B=matrix(m, m); for(i=1, m, for(j=1, i, if(j==i || j==1, B[i, j]=1, B[i, j]=(A^q)[i-1, j-1]); )); A=B); return(sum(c=0,n,(A^n)[n+1,c+1]))
Comments