Dominoes: Difference between revisions

Content added Content deleted
m (xtra)
Line 209: Line 209:
return BigInt(floor(prod(
return BigInt(floor(prod(
[prod(
[prod(
[big"4.0" * cospi(j / (m + 1)) + 4 * cospi((k / (n + 1))) for k in 1:n÷2]
[big"4.0" * cospi(j / (m + 1)) + 4 * cospi((k / (n + 1))) for k in 1:(n+1)÷2]
) for j in 1:m÷2]
) for j in 1:(m+1)÷2]
)))
)))
end
end
Line 225: Line 225:
</lang>{{out}}
</lang>{{out}}
<pre>
<pre>
Arrangements ignoring values: 158862606
Arrangements ignoring values: 2541801700
Permutations of 28 dominos: 304888344611713860501504000000
Permutations of 28 dominos: 304888344611713860501504000000
Permuted arrangements ignoring flipping dominos: 48435356964042922005589392359424000000
Permuted arrangements ignoring flipping dominos: 774965712644240130536285719756800000000
Possible flip configurations: 268435456
Possible flip configurations: 268435456
Possible permuted arrangements with flips: 13001767133165637372142823086764897337344000000
Possible permuted arrangements with flips: 208028274458021565214007381729204817100800000000
</pre>
</pre>