|
Search: id:A110947
|
|
|
| A110947 |
|
a(n) = permanent of an n X n matrix M of zeros and ones defined as follows: if we concatenate the rows of M to form a vector v of length n^2, v_i = 1 only if i = 1 or a multiple of 2. |
|
+0 1
|
|
| 1, 1, 1, 0, 4, 0, 36, 0, 576, 0, 14400, 0, 518400, 0, 25401600, 0, 1625702400, 0, 131681894400, 0, 13168189440000, 0, 1593350922240000, 0, 229442532802560000, 0, 38775788043632640000, 0, 7600054456551997440000, 0
(list; graph; listen)
|
|
|
OFFSET
|
1,5
|
|
|
FORMULA
|
a(1)=a(2)=1 and for n>2: a(n)=0 if n=2*k, a(n)=k!^2 if n=2*k+1. - Herman Jamke (hermanjamke(AT)fastmail.fm), May 14 2007
|
|
PROGRAM
|
(PARI) permRWNb(a)=n=matsize(a)[1]; if(n==1, return(a[1, 1])); sg=1; in=vectorv(n); x=in; x=a[, n]-sum(j=1, n, a[, j])/2; p=prod(i=1, n, x[i]); for(k=1, 2^(n-1)-1, sg=-sg; j=valuation(k, 2)+1; z=1-2*in[j]; in[j]+=z; x+=z*a[, j]; p+=prod(i=1, n, x[i], sg)); return(2*(2*(n%2)-1)*p) A110947(n)=if(n==2, 1, if(n%2, ((n-1)/2)!^2)) for(n=1, 42, a=matrix(n, n, i, j, 1-((i-1)*n+j)%2); a[1, 1]=1; print1(permRWNb(a)", ")) for(n=1, 42, print1(A110947(n)", ")) - Herman Jamke (hermanjamke(AT)fastmail.fm), May 14 2007
|
|
CROSSREFS
|
Odd-indexed terms are the same as A001044.
Sequence in context: A078630 A057402 A123016 this_sequence A123936 A138546 A019217
Adjacent sequences: A110944 A110945 A110946 this_sequence A110948 A110949 A110950
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Simone Severini (ss54(AT)york.ac.uk), Sep 25 2005
|
|
EXTENSIONS
|
Corrected and extended by Herman Jamke (hermanjamke(AT)fastmail.fm), May 14 2007
|
|
|
Search completed in 0.002 seconds
|