Anonymous user
Mind boggling card trick: Difference between revisions
made numerous tidying-up changes, used the word pile instead of pile and stack, clarified what a "red" and "black" pile is (just a name, not the contents), and other small changes. See Paddy3118's talk section for more info.
SqrtNegInf (talk | contribs) (Added Perl example) |
(made numerous tidying-up changes, used the word pile instead of pile and stack, clarified what a "red" and "black" pile is (just a name, not the contents), and other small changes. See Paddy3118's talk section for more info.) |
||
Line 3:
{{draft task}}
Matt Parker of the "Stand Up Maths channel
The task is to simulate the trick in a way that
; 1. Cards.
# Create a
# Give the pack a good shuffle.
; 2. Deal from the
# Assemble the cards face down.
## Turn up the ''top card
### if
### If
## Add the
# Repeat the above for the
; 3.
# Randomly choose
# Randomly choose
# Put the "red" bunch into the "black" pile.
# Put the "black" bunch into the "red" pile.
# (The above two steps complete the swap of '''X''' cards of the "red" and "black" piles. <br> (Without knowing what those cards are --- they could be red or black, nobody knows).
; 4. Order from randomness?
#
<big> '''The number of black cards in the "black" pile equals the number of red cards in the "red" pile.''' </big>
(Optionally, run this simulation a number of times, gathering more evidence of the truthfulness of the assertion.)
Show output on this page.
|