Dominoes: Difference between revisions
Content added Content deleted
m (formatting) |
|||
Line 207: | Line 207: | ||
""" |
""" |
||
function dominotilingcount(m, n) |
function dominotilingcount(m, n) |
||
return BigInt |
return BigInt( |
||
floor( |
|||
⚫ | |||
prod([ |
|||
prod([ |
|||
⚫ | |||
⚫ | |||
k in 1:(n+1)÷2 |
|||
]) for j in 1:(m+1)÷2 |
|||
]), |
|||
), |
|||
⚫ | |||
end |
end |
||
Line 221: | Line 227: | ||
println("Permuted arrangements ignoring flipping dominos: ", arrang * perms) |
println("Permuted arrangements ignoring flipping dominos: ", arrang * perms) |
||
println("Possible flip configurations: $flips") |
println("Possible flip configurations: $flips") |
||
println("Possible permuted arrangements with flips: ", |
println("Possible permuted arrangements with flips: ", flips * arrang * perms) |
||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |