24 = 1 . 2 . 3 . 4
120 = 1 . 2 . . . 5
720 = 1 . 2 . . . 6
5,040 = 7!
40,320 = 8!
362,880 = 9!
3,628,800 = 10!
39,916,800 = 11!
479,001,600 = 12!

The factorials up to 36! are given in Rees’s ‘Cyclopædia,’ art. Cipher, and the logarithms of factorials up to 265! are to be found at the end of the table of logarithms published under the superintendence of the Society for the Diffusion of Useful Knowledge (p. 215). To express the factorial 265! would require 529 places of figures.

Many writers have from time to time remarked upon the extraordinary magnitude of the numbers with which we deal in this subject. Tacquet calculated‍[97] that the twenty-four [sic] letters of the alphabet may be arranged in more than 620 thousand trillions of orders; and Schott estimated‍[98] that if a thousand millions of men were employed for the same number of years in writing out these arrangements, and each man filled each day forty pages with forty arrangements in each, they would not have accomplished the task, as they would have written only 584 thousand trillions instead of 620 thousand trillions.

In some questions the number of permutations may be restricted and reduced by various conditions. Some things in a group may be undistinguishable from others, so that change of order will produce no difference. Thus if we were to permutate the letters of the name Ann, according to our previous rule, we should obtain 3 × 2 × 1, or 6 orders; but half of these arrangements would be identical with the other half, because the interchange of the two n’s has no effect. The really different orders will therefore be 3 . 2 . 1/1 . 2 or 3, namely Ann, Nan, Nna. In the word utility there are two i’s and two t’s, in respect of both of which pairs the numbers of permutations must be halved. Thus we obtain 7 . 6 . 5 . 4 . 3 . 2 . 1/1 . 2 . 1 . 2 or 1260, as the number of permutations. The simple rule evidently is—when some things or letters are undistinguished, proceed in the first place to calculate all the possible permutations as if all were different, and then divide by the numbers of possible permutations of those series of things which are not distinguished, and of which the permutations have therefore been counted in excess. Thus since the word Utilitarianism contains fourteen letters, of which four are i’s, two a’s, and two t’s, the number of distinct arrangements will be found by dividing the factorial of 14, by the factorials of 4, 2, and 2, the result being 908,107,200. From the letters of the word Mississippi we can get in like manner 11!/4! × 4! × 2! or 34,650 permutations, which is not the one-thousandth part of what we should obtain were all the letters different.

Calculation of Number of Combinations.

Although in many questions both of art and science we need to calculate the number of permutations on account of their own interest, it far more frequently happens in scientific subjects that they possess but an indirect interest. As I have already pointed out, we almost always deal in the logical and mathematical sciences with combinations, and variety of order enters only through the inherent imperfections of our symbols and modes of calculation. Signs must be used in some order, and we must withdraw our attention from this order before the signs correctly represent the relations of things which exist neither before nor after each other. Now, it often happens that we cannot choose all the combinations of things, without first choosing them subject to the accidental variety of order, and we must then divide by the number of possible variations of order, that we may get to the true number of pure combinations.

Suppose that we wish to determine the number of ways in which we can select a group of three letters out of the alphabet, without allowing the same letter to be repeated. At the first choice we can take any one of 26 letters; at the next step there remain 25 letters, any one of which may be joined with that already taken; at the third step there will be 24 choices, so that apparently the whole number of ways of choosing is 26 × 25 × 24. But the fact that one choice succeeded another has caused us to obtain the same combinations of letters in different orders; we should get, for instance, a, p, r at one time, and p, r, a at another, and every three distinct letters will appear six times over, because three things can be arranged in six permutations. To get the number of combinations, then, we must divide the whole number of ways of choosing, by six, the number of permutations of three things, obtaining 26 × 25 × 24/1 × 2 × 3 or 2,600.

It is apparent that we need the doctrine of combinations in order that we may in many questions counteract the exaggerating effect of successive selection. If out of a senate of 30 persons we have to choose a committee of 5, we may choose any of 30 first, any of 29 next, and so on, in fact there will be 30 × 29 × 28 × 27 × 26 selections; but as the actual character of the members of the committee will not be affected by the accidental order of their selection, we divide by 1 × 2 × 3 × 4 × 5, and the possible number of different committees will be 142,506. Similarly if we want to calculate the number of ways in which the eight major planets may come into conjunction, it is evident that they may meet either two at a time or three at a time, or four or more at a time, and as nothing is said as to the relative order or place in the conjunction, we require the number of combinations. Now a selection of 2 out of 8 is possible in 8 . 7/1 . 2 or 28 ways; of 3 out of 8 in 8 . 7 . 6/1 . 2 . 3 or 56 ways; of 4 out of 8 in 8 . 7 . 6 . 5/1 . 2 . 3 . 4 or 70 ways; and it may be similarly shown that for 5, 6, 7, and 8 planets, meeting at one time, the numbers of ways are 56, 28, 8, and 1. Thus we have solved the whole question of the variety of conjunctions of eight planets; and adding all the numbers together, we find that 247 is the utmost possible number of modes of meeting.

In general algebraic language, we may say that a group of m things may be chosen out of a total number of n things, in a number of combinations denoted by the formula

n . (n-1)(n-2)(n-3) . . . . (n - m + 1)/1 . 2 . 3 . 4 . . . .  m