OFFSET
1,2
LINKS
Peter Kagey, Illustration of T(3,3)=22
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 9
2 | 2 5 9 26 62 205
3 | 2 8 22 120 600 3936
4 | 4 22 126 1267 14164 181782
5 | 4 44 592 13600 337192 8965354
6 | 8 135 3936 178366 8980642 477655760
MATHEMATICA
A368302[n_, m_] := 1/(4*n*m) (DivisorSum[n, Function[d, DivisorSum[m, EulerPhi[#] EulerPhi[d] 2^(m*n/LCM[#, d]) &]]] + n*If[EvenQ[n], 1/2*DivisorSum[m, EulerPhi[#] (2^(n*m/LCM[2, #]) + 2^((n - 2)*m/LCM[2, #])*2^(2 m/#)) &], DivisorSum[m, EulerPhi[#] (2^((n - 1)*m/LCM[2, #])*2^(m/#)) &]] + m*If[EvenQ[m], 1/2*DivisorSum[n, EulerPhi[#] (2^(n*m/LCM[2, #]) + 2^(m*n/#)*Boole[EvenQ[#]]) &], DivisorSum[n, EulerPhi[#]*2^(m*n/#) &, EvenQ]] + n*m*2^(n*m/2)*Which[EvenQ[n] && EvenQ[m], 3/4, OddQ[n*m], 0, OddQ[n + m], 1/2])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Kagey, Dec 21 2023
STATUS
approved