cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A305186 Number of invertible 4 X 4 matrices mod n.

Original entry on oeis.org

1, 20160, 24261120, 1321205760, 116064000000, 489104179200, 27811094169600, 86586540687360, 1044361663787520, 2339850240000000, 41393302251840000, 32053931488051200, 610296923230525440, 560671658459136000, 2815842631680000000, 5674535530486824960
Offset: 1

Views

Author

Jianing Song, May 27 2018

Keywords

Comments

Order of the group GL(4,Z_n).
Order of the automorphism group of the group (C_n)^4, where C_n is the cyclic group of order n.
For n > 2, a(n) is divisible by 23040.

Crossrefs

Row n=4 of A316622.
Cf. A000252 (GL(2,Z_n)), A064767 (GL(3,Z_n)).
Cf. A000056 (SL(2,Z_n)), A011785 (SL(3,Z_n)), A011786 (SL(4,Z_n)).
Cf. A000010.

Programs

  • Mathematica
    {1}~Join~Array[#^16*Product[(1 - 1/p^4) (1 - 1/p^3) (1 - 1/p^2) (1 - 1/p), {p, FactorInteger[#][[All, 1]]}] &, 12, 2] (* Michael De Vlieger, May 27 2018 *)
  • PARI
    a(n)=my(f=factor(n)[, 1]); n^16*prod(i=1, #f, (1-1/f[i]^4)*(1-1/f[i]^3)*(1-1/f[i]^2)*(1-1/f[i]))
    
  • Python
    from math import prod
    from sympy import factorint
    def A305186(n): return prod(p**((e<<3)-5<<1)*(p*(p*(p**3*(p**3*(p*(p-1)-1)+2)-1)-1)+1) for p,e in factorint(n).items()) # Chai Wah Wu, Mar 04 2025

Formula

Multiplicative with a(p^e) = (p - 1)*(p^2 - 1)*(p^3 - 1)*(p^4 - 1)*p^(16*e-10).
a(n) = n^16*Product_{primes p dividing n} (1 - 1/p^4)*(1 - 1/p^3)*(1 - 1/p^2)*(1 - 1/p).
a(n) = phi(n)*A011786(n) = A000010(n)*A011786(n).
Sum_{k=1..n} a(k) ~ c * n^17, where c = (1/17) * Product_{p prime} ((p^11 - p^9 - p^8 + 2*p^5 - p^2 - p + 1)/p^11) = 0.02958150406... . - Amiram Eldar, Oct 23 2022