All public Sources
Public document

Mathematical Recreations and Essays

PDF document375 original pagesAdded to Pandi 6 November 2026
AskTalkView media
Reading progressPage 28 of 81

Hence, after this deal, as soon as the pile is indicated, it is known that the card is the (9−3b+a)(9-3b+a)th from the top of that pile. If the process is continued by taking up this pile as ccth, then the selected card will come out in the place 9(c−1)+(8−3b+a)+19(c-1)+(8-3b+a)+1 from the top, that is, will come out as the (9c−3b+a)(9c-3b+a)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 a=2a = 2, b=2b = 2, c=2c = 2, hence n=9c−3b+a=14n = 9c-3b+a = 14, which is the form in which the trick is usually presented, as was explained above on page 115.

I have shown that if aa, bb, cc are known, then nn is determined. We may modify the rule so as to make the selected card come out in any assigned position, say the nnth. In this case we have to find values of aa, bb, cc which will satisfy the equation n=9c−3b+an = 9c-3b+a, where aa, bb, cc can have only the values 1, 2, or 3.

Hence, if we divide nn by 3 and the remainder is 1 or 2, this remainder will be aa; but, if the remainder is 0, we must decrease the quotient by unity so that the remainder is 3, and this remainder will be aa. In

Original PDF link to page 131

other words aa is the smallest positive number (exclusive of zero) which must be subtracted from nn to make the difference a multiple of 3.

Next let pp be this multiple, i.e. pp is the next lowest integer to n/3n/3; then 3p=9c−3b3p = 9c - 3b, therefore p=3c−bp = 3c - b. Hence bb is the smallest positive number (exclusive of zero) which must be added to pp to make the sum a multiple of 3, and cc is that multiple.

A couple of illustrations will make this clear. Suppose we wish the card to come out 22nd from the top, therefore 22=9c−3b+a22 = 9c - 3b + a. The smallest number which must be subtracted from 22 to leave a multiple of 3 is 1, therefore a=1a = 1. Hence 22=9c−3b+122 = 9c - 3b + 1, therefore 7=3c−b7 = 3c - b. The smallest number which must be added to 7 to make a multiple of 3 is 2, therefore b=2b = 2. Hence 7=3c−27 = 3c - 2, therefore c=3c = 3. Thus a=1a = 1, b=2b = 2, c=3c = 3.

Again, suppose the card is to come out 21st. Hence 21=9c−3b+a21 = 9c - 3b + a. Therefore aa is the smallest number which subtracted from 21 makes a multiple of 3, therefore a=3a = 3. Hence 6=3c−b6 = 3c - b. Therefore bb is the smallest number which added to 6 makes a multiple of 3, therefore b=3b = 3. Hence 9=3c9 = 3c, therefore c=3c = 3. Thus a=3a = 3, b=3b = 3, c=3c = 3.

If any difficulty is experienced in this work, we can proceed thus. Let a=x+1a = x + 1, b=3−yb = 3 - y, c=z+1c = z + 1; then xx, yy, zz may have only the values 0, 1, or 2. In this case Gergonne’s equation takes the form 9z+3y+x=n−19z + 3y + x = n - 1. Hence, if n−1n - 1 is expressed in the ternary scale of notation, xx, yy, zz will be determined, and therefore aa, bb, cc will be known.

The rule in the case of a pack of mmm^m cards is exactly similar. We want to make the card come out in a given place. Hence, in Gergonne’s formula, we are given nn and we have to find a,b,…,ka, b, \ldots, k. We can effect this by dividing nn continually by mm, with the convention that the remainder are to be alternately positive and negative and that their numerical values are to be not greater than mm or less than unity.

An analogous theorem with a pack of lmlm cards can be constructed. C.T. Hudson and L.E. Dickson* have discussed the general case where such a pack is dealt nn times, each time into ll piles of mm cards; and they have shown how the piles must be taken up in order that after the nnth deal the selected card may be rrth 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 2(a−1)2(a-1) cards, or of the top 8−2a8-2a 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 1,2,3,…,n1,2,3,\ldots,n, 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 kkth card has the number kk 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 nn 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 nn 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 xx is the first hit [Arts. 3–5]; the number of arrangements in which 1 is the first hit and xx is the second hit [Art. 6]; and the number of arrangements in which 2 is the first hit and xx the second hit [Arts. 7–8]; but beyond this point the theory has not been carried. It is obvious that, if there are n−1n-1 hits, the nnth 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 n2n^2 the square is said to be of the nnth order, and it is easily seen that in this case the sum of the numbers in any row, column, or diagonal is equal to 12n(n2+1)\frac{1}{2}n(n^2+1): this number may be denoted by NN. 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

Magic square of four rows and four columns, with numbers arranged in a diagonal pattern.
Figure i.
Magic square of four rows and four columns, with numbers arranged in a diagonal pattern.
Figure ii.

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.

Continue reading
Page 28 of 81