Mathematical Recreations and Essays
Hence, after this deal, as soon as the pile is indicated, it is known that the card is the th from the top of that pile. If the process is continued by taking up this pile as th, then the selected card will come out in the place from the top, that is, will come out as the th card.
Since, after the third deal, the position of the card in the pile then indicated is known, it is easy to notice the card, in which case the trick can be finished in some way more effective than dealing again.
If we put the pile indicated always in the middle of the pack we have , , , hence , which is the form in which the trick is usually presented, as was explained above on page 115.
I have shown that if , , are known, then is determined. We may modify the rule so as to make the selected card come out in any assigned position, say the th. In this case we have to find values of , , which will satisfy the equation , where , , can have only the values 1, 2, or 3.
Hence, if we divide by 3 and the remainder is 1 or 2, this remainder will be ; but, if the remainder is 0, we must decrease the quotient by unity so that the remainder is 3, and this remainder will be . In
other words is the smallest positive number (exclusive of zero) which must be subtracted from to make the difference a multiple of 3.
Next let be this multiple, i.e. is the next lowest integer to ; then , therefore . Hence is the smallest positive number (exclusive of zero) which must be added to to make the sum a multiple of 3, and is that multiple.
A couple of illustrations will make this clear. Suppose we wish the card to come out 22nd from the top, therefore . The smallest number which must be subtracted from 22 to leave a multiple of 3 is 1, therefore . Hence , therefore . The smallest number which must be added to 7 to make a multiple of 3 is 2, therefore . Hence , therefore . Thus , , .
Again, suppose the card is to come out 21st. Hence . Therefore is the smallest number which subtracted from 21 makes a multiple of 3, therefore . Hence . Therefore is the smallest number which added to 6 makes a multiple of 3, therefore . Hence , therefore . Thus , , .
If any difficulty is experienced in this work, we can proceed thus. Let , , ; then , , may have only the values 0, 1, or 2. In this case Gergonne’s equation takes the form . Hence, if is expressed in the ternary scale of notation, , , will be determined, and therefore , , will be known.
The rule in the case of a pack of cards is exactly similar. We want to make the card come out in a given place. Hence, in Gergonne’s formula, we are given and we have to find . We can effect this by dividing continually by , with the convention that the remainder are to be alternately positive and negative and that their numerical values are to be not greater than or less than unity.
An analogous theorem with a pack of cards can be constructed. C.T. Hudson and L.E. Dickson* have discussed the general case where such a pack is dealt times, each time into piles of cards; and they have shown how the piles must be taken up in order that after the th deal the selected card may be th from the top.
The principle will be sufficiently illustrated by one example treated in a manner analogous to the cases already discussed. For instance,
* Educational Times Reprints, 1868, vol. ix, pp. 89–91; and Bulletin of the American Mathematical Society, New York, April, 1895, vol. i, pp. 184–186.
suppose that an écarté pack of 32 cards is dealt into 4 piles each of 8 cards, and that the pile which contains some selected card is picked up ath. Suppose that on dealing again into four piles, one pile is indicated as containing the selected card, the selected card cannot be one of the bottom cards, or of the top cards, but must be one of the intermediate 2 cards, and the trick can be finished in any way, as for instance by the common conjuring ambiguity of asking someone to choose one of them, leaving it doubtful whether the one he takes is to be rejected or retained.
THE MOUSE TRAP.
I will conclude this chapter with the bare mention of another game of cards, known as the mouse trap, the discussion of which involves some rather difficult algebraic analysis.
It is played as follows. A set of cards, marked with the numbers , is dealt in any order, face upwards, in the form of a circle. The player begins at any card and counts round the circle always in the same direction. If the th card has the number on it—which event is called a hit—the player takes up the card and begins counting afresh. According to Cayley, the player wins if he thus takes up all the cards, and the cards win if at any time the player counts up to without being able to take up a card.
For example, if a pack of only four cards is used and these cards come in the order, 3214, then the player would obtain the second card 2 as a hit, next he would obtain 1 as a hit, but if he went on for ever he would not obtain another hit. On the other hand, if the cards in the pack were initially in the order 1423, the player would obtain successively all four cards in the order 1, 2, 3, 4.
The problem may be stated as the determination of what hits and how many hits can be made with a given number of cards; and what permutations will give a certain number of hits in a certain order.
Cayley* showed that there are 9 arrangements of a pack of four cards in which no hit will be made, 7 arrangements in which only one hit will be made, 3 arrangements in which only two hits will be made, and 5 arrangements in which four hits will be made.
Prof. Steen† has investigated the general theory for a pack of cards. He has shown how to determine the number of arrangements in
* Quarterly Journal of Mathematics, 1878, vol. xv, pp. 8–10.
† Ibid., vol. XV, pp. 230–241.
which is the first hit [Arts. 3–5]; the number of arrangements in which 1 is the first hit and is the second hit [Art. 6]; and the number of arrangements in which 2 is the first hit and the second hit [Arts. 7–8]; but beyond this point the theory has not been carried. It is obvious that, if there are hits, the th hit will necessarily follow.
TREIZE. The French game of treize is very similar. It is played with a full pack of fifty-two cards (knave, queen, and king counting as 11, 12, and 13 respectively). The dealer calls out 1, 2, 3, . . . , 13, as he deals the 1st, 2nd, 3rd, . . . , 13th cards respectively. At the beginning of a deal the dealer offers to lay or take certain odds that he will make a hit in the thirteen cards next dealt.
One of the innumerable forms of patience is played in a similar way.
CHAPTER V.
MAGIC SQUARES.
A magic square consists of a number of integers arranged in the form of a square, so that the sum of the numbers in every row, in every column, and in each diagonal is the same. If the integers are the consecutive numbers from 1 to the square is said to be of the th order, and it is easily seen that in this case the sum of the numbers in any row, column, or diagonal is equal to : this number may be denoted by . I confine my account to such magic squares, that is, to squares formed with consecutive integers, from 1 upwards.
Thus the first 16 integers, arranged in either of the forms given in figures i and ii below, form a magic square of the fourth order, the sum
of the numbers in any row, column, or diagonal being 34. Similarly figures iii and v on page 124, figure viii on page 126, and figures xii and xiii on page 136, show magic squares of the fifth order; and figure xi on page 133 shows a magic square of the sixth order; and figures xiv and xv on pages 137, 138, show magic squares of the eighth order.
Original PDF link to page 140 · Original PDF link to page 142 · Original PDF link to page 152 · Original PDF link to page 149 · Original PDF link to page 153 · Original PDF link to page 154
The formation of these squares is an old amusement, and in times when mystical philosophical ideas were associated with particular numbers it was natural that such arrangements should be deemed to possess magical properties. Magic squares of an odd order were constructed in India before the Christian era according to a law of formation which is explained hereafter. Their introduction into Europe appears to have been due to Moschopulus, who lived at Constantinople in the early part of the fifteenth century, and enunciated two methods for making such squares. The majority of the medieval astrologers and physicians were much impressed by such arrangements. In particular the famous Cornelius Agrippa (1486–1535) constructed magic squares of the orders 3, 4, 5, 6, 7, 8, 9, which were associated respectively with the seven astrological “planets”: namely, Saturn, Jupiter, Mars, the Sun, Venus, Mercury, and the Moon. He taught that a square of one cell, in which unity was inserted, represented the unity and eternity of God; while the fact that a square of the second order could not be constructed illustrated the imperfection of the four elements, air, earth, fire, and water; and later writers added that it was symbolic of original sin. A magic square engraved on a silver plate was sometimes prescribed as a charm against the plague, and one, namely, that represented in figure i on page 121, is drawn in the picture of Melancholy, painted about the year 1500 by Albert Dürer. Such charms are still worn in the East.