OFFSET
1,2
LINKS
Peter Kagey, Illustration of a(2)=23
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, p. A-23.
MATHEMATICA
A368137[n_] := 1/(8 n^2)*(DivisorSum[n, Function[d, DivisorSum[n, Function[c, EulerPhi[c] EulerPhi[d] 4^(n^2/LCM[c, d])]]]] + n^2*If[EvenQ[n], 19*2^(n^2 - 2) + 2^(n^2/2), 2^(n^2 + 1)] + n*If[EvenQ[n], DivisorSum[n, Function[d, EulerPhi[ d] (If[EvenQ[d], 2 (2^(n^2/d) + 4^(n^2/d)), 2^(n^2/d)])]], DivisorSum[n, Function[d, EulerPhi[d] (If[EvenQ[d], 2 (2^(n^2/d) + 4^(n^2/d)), 0])]]])
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Dec 16 2023
STATUS
approved