• Skip to primary navigation
  • Skip to main content
SRI logo
  • About
    • Press room
    • Our history
  • Expertise
    • Advanced imaging systems
    • Artificial intelligence
    • Biomedical R&D services
    • Biomedical sciences
    • Computer vision
    • Cyber & formal methods
    • Education and learning
    • Innovation strategy and policy
    • National security
    • Ocean & space
    • Quantum
    • Robotics, sensors & devices
    • Speech & natural language
    • Video test & measurement
  • Ventures
  • NSIC
  • Careers
  • Contact
  • 日本支社
Search
Close
Cyber & formal methods publications January 1, 2010

Unraveling a Card Trick

Citation

Copy to clipboard


Hoare, T., Shankar, N. (2010). Unraveling a Card Trick. In: Manna, Z., Peled, D.A. (eds) Time for Verification. Lecture Notes in Computer Science, vol 6200. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-13754-9_10

Abstract

In one version of Gilbreath’s card trick, a deck of cards is arranged as a series of quartets, where each quartet contains a card from each suit and all the quartets feature the same ordering of the suits. For example, the deck could be a repeating sequence of spades, hearts, clubs, and diamonds, in that order, as in the deck below.

⟨5♠⟩,⟨3♡⟩,⟨𝑄♣⟩,⟨8♢⟩,⟨5♠⟩,⟨3♡⟩,⟨Q♣⟩,⟨8♢⟩,

⟨𝐾♠⟩,⟨2♡⟩,⟨7♣⟩,⟨4♢⟩,⟨K♠⟩,⟨2♡⟩,⟨7♣⟩,⟨4♢⟩,

⟨8♠⟩,⟨𝐽♡⟩,⟨9♣⟩,⟨𝐴♢⟩⟨8♠⟩,⟨J♡⟩,⟨9♣⟩,⟨A♢⟩

The deck is then cut into two (not necessarily equal) half-decks, possibly as ⟨5♠⟩,⟨3♡⟩,⟨𝑄♣⟩,⟨8♢⟩,⟨𝐾♠⟩⟨5♠⟩,⟨3♡⟩,⟨Q♣⟩,⟨8♢⟩,⟨K♠⟩ and ⟨2♡⟩,⟨7♣⟩,⟨4♢⟩,⟨8♠⟩,⟨𝐽♡⟩,⟨9♣⟩,⟨𝐴♢⟩⟨2♡⟩,⟨7♣⟩,⟨4♢⟩,⟨8♠⟩,⟨J♡⟩,⟨9♣⟩,⟨A♢⟩.

The order of one of the half-decks is then reversed. Either half-deck could be reversed. We can pick the smaller one, i.e., the first one, and reverse it to obtain ⟨𝐾♠⟩,⟨8♢⟩,⟨𝑄♣⟩,⟨3♡⟩,⟨5♠⟩⟨K♠⟩,⟨8♢⟩,⟨Q♣⟩,⟨3♡⟩,⟨5♠⟩. The two half-decks are then shuffled in a (not necessarily perfect) riffle-shuffle. One such shuffle is shown below, where the underlined cards are drawn from the second half-deck.

⟨2♡⟩,⟨7♣⟩,⟨𝐾♠⟩⎯⎯⎯⎯⎯⎯⎯⎯⎯,⟨8♢⟩⎯⎯⎯⎯⎯⎯⎯⎯,⟨2♡⟩,⟨7♣⟩,⟨K♠⟩_,⟨8♢⟩_,

⟨4♢⟩,⟨8♠⟩,⟨𝑄♣⟩⎯⎯⎯⎯⎯⎯⎯⎯⎯,⟨𝐽♡⟩,⟨4♢⟩,⟨8♠⟩,⟨Q♣⟩_,⟨J♡⟩,

⟨3♡⟩⎯⎯⎯⎯⎯⎯⎯⎯,⟨9♣⟩,⟨5♠⟩⎯⎯⎯⎯⎯⎯⎯⎯,⟨𝐴♢⟩⟨3♡⟩_,⟨9♣⟩,⟨5♠⟩_,⟨A♢⟩

The quartets in the shuffled deck are displayed to demonstrate that each quartet contains a card from each suit. This turns out to be inevitable no matter how the original deck is cut and the order in which the two decks are shuffled. The principle underlying the card trick can be proved in a number of ways. We present the argument as a series of transformations that demystify the trick and describe its formalization.

↓ View online

Share this

How can we help?

Once you hit send…

We’ll match your inquiry to the person who can best help you.

Expect a response within 48 hours.

Career call to action image

Make your own mark.

Search jobs

Our work

Case studies

Publications

Timeline of innovation

Areas of expertise

Institute

Leadership

Press room

Media inquiries

Compliance

Careers

Job listings

Contact

SRI Ventures

Our locations

Headquarters

333 Ravenswood Ave
Menlo Park, CA 94025 USA

+1 (650) 859-2000

Subscribe to our newsletter


日本支社
SRI International
  • Contact us
  • Privacy Policy
  • Cookies
  • DMCA
  • Copyright © 2023 SRI International
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}