The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A115076 Number of 2 X 2 symmetric matrices over Z(n) having determinant 1. 2

%I #15 Aug 28 2023 08:23:06

%S 1,4,6,12,30,24,42,48,54,120,110,72,182,168,180,192,306,216,342,360,

%T 252,440,506,288,750,728,486,504,870,720,930,768,660,1224,1260,648,

%U 1406,1368,1092,1440,1722,1008,1806,1320,1620,2024,2162,1152,2058,3000

%N Number of 2 X 2 symmetric matrices over Z(n) having determinant 1.

%C a(1)=1 because the matrix of all zeros has determinant 0, but 0=1 (mod 1).

%H Andrew Howroyd, <a href="/A115076/b115076.txt">Table of n, a(n) for n = 1..2500</a>

%F Multiplicative with a(2^1) = 4, a(2^e) = 3*2^(2*e-2) for e > 1, a(p^e) = (p+1)*p^(2*e-1) for p mod 4 == 1, a(p^e) = (p-1)*p^(2*e-1) for p mod 4 == 3. - _Andrew Howroyd_, Jul 04 2018

%F Sum_{k=1..n} a(k) ~ c * n^3, where c = (5/(2*Pi^2)) * A175647 * A243380 = 0.282098596071... . - _Amiram Eldar_, Aug 28 2023

%t Table[cnt=0; Do[m={{a, b}, {b, c}}; If[Det[m, Modulus->n]==1, cnt++ ], {a, 0, n-1}, {b, 0, n-1}, {c, 0, n-1}]; cnt, {n, 50}]

%t f[p_, e_] := If[Mod[p, 4] == 1, (p+1)*p^(2*e-1), (p-1)*p^(2*e-1)]; f[2, 1] = 4; f[2, e_] := 3*2^(2*e-2); a[n_] := Times @@ f @@@ FactorInteger[n]; a[1] = 1; Array[a, 100] (* _Amiram Eldar_, Aug 28 2023 *)

%o (PARI) a(n)={my(v=vector(n)); for(i=0, n-1, for(j=0, n-1, v[i*j%n+1]++)); sum(i=0, n-1, v[(i^2+1)%n+1])} \\ _Andrew Howroyd_, Jul 04 2018

%o (PARI) a(n)={my(f=factor(n)); prod(i=1, #f~, my(p=f[i,1], e=f[i,2]); p^(2*e-1)*if(p==2, if(e==1, 2, 3/2), if(p%4==1, p+1, p-1)))} \\ _Andrew Howroyd_, Jul 04 2018

%Y Cf. A000056 (order of the group SL(2, Z_n)), A175647, A243380.

%K mult,nonn,easy

%O 1,2

%A _T. D. Noe_, Jan 12 2006

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 June 5 04:27 EDT 2024. Contains 373102 sequences. (Running on oeis4.)