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!)
A277044 Number of 2 X 2 matrices with entries in {0,1,...,n} and even determinant with no entry repeated. 1

%I #27 Dec 12 2016 15:16:37

%S 0,0,0,16,96,216,600,1008,2064,3040,5280,7200,11280,14616,21336,26656,

%T 36960,44928,59904,71280,92160,107800,135960,156816,193776,220896,

%U 268320,302848,362544,405720,479640,532800,623040,687616,796416,873936,1003680,1095768,1248984,1357360,1536720,1663200

%N Number of 2 X 2 matrices with entries in {0,1,...,n} and even determinant with no entry repeated.

%C a(n) mod 8 = 0.

%H Indranil Ghosh, <a href="/A277044/b277044.txt">Table of n, a(n) for n = 0..200</a>

%H <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (1,4,-4,-6,6,4,-4,-1,1).

%F From _Colin Barker_ and _Charles R Greathouse IV_, Dec 12 2016: (Start)

%F a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) - 6*a(n-4) + 6*a(n-5) + 4*a(n-6) - 4*a(n-7) - a(n-8) + a(n-9) for n>8.

%F a(n) = (5*n^4 - 8*n^3 + 4*n^2 - 16*n)/8 for n even.

%F a(n) = (5*n^4 - 12*n^3 + 2*n^2 + 12*n - 7)/8 for n odd.

%F G.f.: 8*x^3*(2 + 10*x + 7*x^2 + 8*x^3 + 3*x^4) / ((1 - x)^5*(1 + x)^4).

%F (End)

%o (Python)

%o def t(n):

%o s=0

%o for a in range(0,n+1):

%o for b in range(0,n+1):

%o for c in range(0,n+1):

%o for d in range(0,n+1):

%o if (a!=b and a!=d and b!=d and c!=a and c!=b and c!=d):

%o if (a*d-b*c)%2==0:

%o s+=1

%o return s

%o for i in range(0,201):

%o print str(i)+" "+str(t(i))

%o (PARI) F(n,{r=0})={my(s=vector(2),v);forvec(y=vector(4,j,[0,n]),for(k=23*!!r,23,v=numtoperm(4,k);s[1+(y[v[1]]*y[v[4]]-y[v[3]]*y[v[2]])%2]++),2*!r);return(s)} \\ Use r=1 for A210369;

%o a(n)=F(n,0)[1]; \\ Also works for A210370 if F(n,1)[2] is used instead. - _R. J. Cano_, Dec 12 2016

%o (PARI) a(n)=my(e=n\2+1,o=(n+1)\2); 24*binomial(o,4) + 16*binomial(e,2)*binomial(o,2) + 24*o*binomial(e,3) + 24*binomial(e,4) \\ _Charles R Greathouse IV_, Dec 12 2016

%Y Cf. A210369 (where the entries can be repeated).

%K nonn,easy

%O 0,4

%A _Indranil Ghosh_, Dec 12 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 24 15:50 EDT 2024. Contains 371961 sequences. (Running on oeis4.)