login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A274229 Number of square n X n matrices containing the values 1 to n^2 that do not contain a row or column that appears in the matrix listing the n^2 values in order (left to right, top to bottom). 1

%I #13 Dec 16 2016 02:36:50

%S 0,13,350314,20907473410813,15511088399276664432001386,

%T 371993307691696427796897697438711091311473,

%U 608281863896576961368925279207011528484342192328937893038299066,126886932185793156284194444673402758686090686637743899818927901378528905462568315856855357

%N Number of square n X n matrices containing the values 1 to n^2 that do not contain a row or column that appears in the matrix listing the n^2 values in order (left to right, top to bottom).

%H Math.Stackexchange.Com, Various Users, <a href="http://math.stackexchange.com/questions/1826109/">Inclusion-Exclusion, Matrices</a>~

%p A274229 :=

%p proc(n) (n^2)! + 2*add(binomial(n,k)^2*(-1)^k*k!*(n^2-k*n)!, k=1..n) + add(add((-1)^(k+j)*binomial(n,k)*binomial(n,j)*(n^2-n*(k+j)+k*j)!, j=1..n), k=1..n); end;

%K nonn

%O 1,2

%A _Marko Riedel_, Jun 14 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 14:06 EDT 2024. Contains 371987 sequences. (Running on oeis4.)