February 2020
Beginner
621 pages
19h 34m
English
Here is a game you can play. It is essentially the simplified version of poker over the telephone from Section 18.2.
There are five cards: ten, jack, queen, king, ace. They are shuffled and disguised by raising their numbers to a random exponent mod the prime 24691313099. You are supposed to guess which one is the ace.
The cards are represented by ten = 200514, etc., because t is the 20th letter, e is the 5th letter, and n is the 14th letter.
Type the following into Sage. The value of forces the randomization to have 248 as its starting point, so the random choices of and shuffle do not change when we repeat the process with this value of . Varying gives different results.
cards=[200514,10010311,1721050514,11091407,10305] ...Read now
Unlock full access