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!)
A228885 Determinant of the n X n matrix with (i,j)-entry equal to 1 or 0 according as i + j is coprime to n or not. 2
1, -1, -2, 0, 4, -4, -6, 0, 0, -16, -10, 0, 12, -36, -2048, 0, 16, 0, -18, 0, 27648, -100, -22, 0, 0, -144, 0, 0, 28, -4194304, -30, 0, 2048000, -256, -127401984, 0, 36, -324, -14155776, 0, 40, -764411904, -42, 0, 0, -484, -46, 0, 0, 0, -536870912, 0, 52, 0, -419430400000, 0, 3057647616, -784, -58, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Conjecture: If n is squarefree, then (-1)^(n*(n-1)/2)*a(n) > 0.
When p^2 divides n with p prime, (i + n/p) + j is coprime to n if and only if i + j is coprime to n. So a(n) = 0 if n is not squarefree.
It is easy to show that Phi(n) divides a(n) for any n > 0, where Phi(n) is Euler's totient function. Also, a(p) = (-1)^((p-1)/2)*(p-1) for any odd prime p.
LINKS
Zhi-Wei Sun, On some determinants with Legendre symbol entries, preprint, arXiv:1308.2900 [math.NT], 2013-2019.
EXAMPLE
a(1) = 1 since 1 + 1 = 2 is relatively prime to 1.
MATHEMATICA
a[n_]:=Det[Table[If[GCD[i+j, n]==1, 1, 0], {i, 1, n}, {j, 1, n}]]
Table[a[n], {n, 1, 60}]
PROG
(PARI) a(n) = matdet(matrix(n, n, i, j, gcd(n, i+j)==1)); \\ Michel Marcus, Aug 25 2021
CROSSREFS
Sequence in context: A244340 A363062 A316987 * A323910 A166085 A129760
KEYWORD
sign
AUTHOR
Zhi-Wei Sun, Sep 06 2013
STATUS
approved

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)