Jump to content

Dominoes: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.