OFFSET
0,4
LINKS
Zhi-Wei Sun, Fedor Petrov, A surprising identity, discussion in MathOverflow, Jan 17 2019.
Zhi-Wei Sun, On some determinants involving the tangent function, arXiv:1901.04837 [math.NT], 2021.
EXAMPLE
a(6) = 16*cos^4(Pi/8) + 8*cos^2(Pi/8) - 64*cos^2(Pi*3/8)*cos^2(Pi/8) + 8*cos^2(Pi*3/8) + 16*cos^4(Pi*3/8).
PROG
(SageMath)
def A347929(n):
if n == 0: return 1
RF = RealField(100) # adjust precision if needed
M = matrix(RF, n, n, lambda j, k: cos(j * k * pi / n))
c = 2^(-1 + (n + n % 2) // 2)
return abs(round(c*M.permanent()))
print([A347929(n) for n in range(12)])
(PARI)
p(n) = matpermanent(matrix(n, n, j, k, cos((Pi*j*k)/n)));
A347929(n) = abs(round(2^(-1 + (n + n %2)/2)*p(n)));
{for(n = 0, 12, print(A347929(n)))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Sep 19 2021
STATUS
approved