OFFSET
1,2
COMMENTS
The n X n torus is an n X n grid where two grids are considered the same if one can reach the other by cyclic shifting of rows and columns.
LINKS
Peter Kagey, Illustration of a(3) = 32
Peter Kagey and William Keehn, Counting tilings of the n X m grid, cylinder, and torus, arXiv: 2311.13072 [math.CO], 2023. See also J. Int. Seq., (2024) Vol. 27, Art. No. 24.6.1, pp. A-21, A-25.
MATHEMATICA
A367530[n_] := 1/(2n^2) (DivisorSum[n, Function[d, DivisorSum[n, Function[c, EulerPhi[c] EulerPhi[d] 2^(n^2/LCM[c, d])]]]] + n*DivisorSum[n, Function[d, EulerPhi[d]*Which[OddQ[d], 0, EvenQ[d], 2^(n^2/(2 d))]]])
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Dec 13 2023
STATUS
approved