OFFSET
1,2
LINKS
Peter Kagey, Illustration of T(3,3)=24
Peter Kagey and William Keehn, Counting tilings of the n X m grid, cylinder, and torus, arXiv: 2311.13072 [math.CO], 2023.
EXAMPLE
Table begins:
n\k| 1 2 3 4 5 6
---+------------------------------------
1 | 1 2 2 4 4 8
2 | 2 5 8 22 44 135
3 | 2 8 24 120 612 3892
4 | 4 22 120 1203 13600 177342
5 | 4 44 612 13600 337600 8962618
6 | 8 135 3892 177342 8962618 477371760
MATHEMATICA
A368303[n_, m_]:=1/(4*n*m)*(DivisorSum[n, Function[d, DivisorSum[m, Function[c, EulerPhi[c]EulerPhi[d]2^(m*n/LCM[c, d])]]]] + If[EvenQ[n], n/2*DivisorSum[m, EulerPhi[#](2^(n*m/LCM[2, #]) + 2^((n - 2)*m/LCM[2, #])*2^(2m/#)*Boole[EvenQ[#]])&], n*DivisorSum[m, EulerPhi[#](2^(n*m/#))&, EvenQ]] + If[EvenQ[m], m/2*DivisorSum[n, EulerPhi[#](2^(n*m/LCM[2, #]) + 2^((m - 2)*n/LCM[2, #])*2^(2n/#)*Boole[EvenQ[#]])&], m*DivisorSum[n, EulerPhi[#](2^(m*n/#))&, EvenQ]] + n*m*2^((n*m)/2)*Which[OddQ[n*m], Sqrt[2], OddQ[n + m], 3/2, True, 7/4])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Kagey, Dec 21 2023
STATUS
approved