Christmas, we’re told, is the most wonderful time of the year. For many of us, however, it is preceded by one of the least wonderful times: the awkward social spectacle of the office Secret Santa or Kris Kringle, where employees agree to purchase a gift for a randomly allocated colleague.
As you watch your co-workers unwrap their often wildly inappropriate gifts, each chosen by a office mate they barely know, cast your mind to the sheer statistical improbability of what you’re seeing. The odds of such a combination of these cheaply re-gifted photograph frames, inexplicably scented candles or unwanted Lynx Africa gift sets being passed around your office is, in its own way, truly a Christmas miracle.
The 12! ways of Christmas?
To work out how many possible pairings of buyers and recipients there are, you need to calculate the number of permutations of the people involved.
Consider a workplace with four employees. If there is no rule to prevent people selecting their own names, there are four people who could be selected to buy the first person’s gift.
Once this is decided, there are three remaining choices for the second person, then two choices for the third person. Finally, there is one choice for the last person’s workplace Santa.
This means there are 4 × 3 × 2 × 1 = 24 possible permutations. Mathematicians write this as 4!, which is pronounced “four factorial”.
However, factorials soon get out of hand. Spare a thought for poor Santa himself. With nine reindeer, there are 9! = 362,880 ways these could be arranged, although perhaps on one foggy Christmas Eve, this number is reduced by the requirement to have a red nose leading his sleigh.
Once the office workforce swells to 20, there are more than 2.4 quintillion permutations. To put this mind-boggling 20! figure into context, that’s more than three times current estimates of the number of grains of sand on Earth.
Yule buy for someone else
Of course, nobody wants to draw themselves in a Secret Santa.
What a Secret Santa really wants is not a permutation of all employees, but instead what mathematicians call a derangement. This is simply a permutation where no element remains in its original position, which means no employee has to buy their own gift.
The calculation is far from simple, but the number of ways n employees can be assigned another unique co-worker is called the n th de Montmort number.
Amazingly, this is equal to n!/e , rounded to the nearest whole number. The e here is one of the most famous numbers in mathematics, Euler’s number, approximately equal to 2.71828, and the bane of anyone whose schooldays involved logarithm tables.
In the 24 permutations of four employees illustrated, there are 9 derangements, which is equal to 24/e rounded to the nearest whole number. For large numbers, approximately 63.2% of possible permutations are not derangements and so would be excluded.
For a 20-employee situation, this cuts the over 2.4 quintillion permutations to a mere 895 quadrillion or so. (This is still more than 100 million times the current global population.)
Uniquely self-Santa-ed?
Another surprising feature of a Secret Santa arises from the number of people who will, on average, be assigned their own name in a random draw. It doesn’t matter if you have one person (although that is a terribly un-secret and desperately sad Secret Santa) or a billion people, the expected number of people to be allocated to buy their own gift is the same—just one person.
A full proof is a little more complicated than this, but think what happens if you double the number of employees. With twice as many gifts to buy, everybody’s chance of selecting themselves is halved. Twice as many people, each with half the chance of matching, then gives an unchanged average.
For example, of the 24 permutations of four people illustrated, one involves four self-matches, none involve three self-matches, six involve two self matches and eight involve a single self-match. In total, this gives 24 possible self-matches in the 24 permutations, so an average of one each.
Ho Ho Hope for the best
If you do find yourself trapped in the dystopian office whodunit of guessing which of your co-workers gifted a hunky shirtless firefighter calendar to an elderly colleague from human resources, at least hope that the one-in-a-billion or one-in-trillion permutation that was drawn in your office lands you something useful.
Mariah Carey may have assured us of more specific requests, but all I want for Christmas is avoid getting dragged into a workplace Secret Santa in the first place.
Bah humbug indeed.
Provided by
The Conversation
This article is republished from The Conversation under a Creative Commons license. Read the original article.
Citation:
20 people, 2.4 quintillion possibilities: The baffling statistics of Secret Santa (2023, December 27)
retrieved 27 December 2023
from https://phys.org/news/2023-12-people-quintillion-possibilities-baffling-statistics.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no
part may be reproduced without the written permission. The content is provided for information purposes only.
56
40
93
59
00
25
56
55
62
18
34
92
64
11
23
65
23
87
71
23
08
45
70
45
57
16
21
43
78
97
88
50
90
62
52
61
46
90
46
87
55
72
50
18
32
72
15
05
65
02
63
53
66
97
92
42
34
43
62
81
10
29
70
97
46
90
92
41
01
71
38
59
31
56
07
77
56
87
88
16
08
61
45
05
73
42
84
28
19
71
35
89
40
72
54
14
91
46
95
94
96
96
69
33
11
39
64
90
40
27
33
68
38
01
96
52
16
28
93
19
84
64
31
01
09
96
45
66
80
15
32
87
51
58
45
84
68
27
10
47
88
00
83
59
79
10
94
63
09
32
88
96
56
75
93
50
93
58
26
93
58
90
43
21
91
74
42
76
26
88
94
05
89
47
90
54
52
66
85
80
02
86
52
60
64
43
05
85
59
36
07
73
85
92
89
85
47
35
22
12
24
58
61
49
19
39
06
81
15
95
47
49
25
18
44
40
33
20
18
53
91
02
92
20
40
02
77
75
05
72
32
68
65
27
10
96
09
49
59
71
33
16
97
77
88
32
80
07
41
22
21
65
18
03
50
45
18
16
85
35
56
98
73
48
32
10
62
17
31
65
12
98
88
37
61
86
10
47
86
80
06
55
88
58
28
91
71
84
34
64
36
19
84
33
54
56
00
81
01
92
22
66
69
67
80
56
32
95
45
12
18
59
95
46
93
63
14
56
24
03
06
54
32
83
08
72
57
18
63
47
65
55
25
52
15
38
72
10
37
21
34
67
96
13
78
91
75
74
46
23
26
07
80
38
46
34
88
41
85
58
24
19
99
80
50
86
92
92
70
96
67
03
93
37
72
21
72
34
62
56
79
06
49
05
50
66
84
56
22
95
45
56
35
88
65
95
36
28
47
55
37
26
85
82
28
50
28
34
39
94
46
56
91
97
73
62
88
87
88
75
37
00
70
48
98
43
23
28
27
74
82
56
52
48
01
66
45
39
24
10
55
00
66
56
47
70
90
20
47
95
08
53
52
63
16
47
94
25
18
65
03
53
97
85
88
66
56
42
98
07
00
19
02
87
24
79
12
76
93
46
98
10
84
91
36
72
96
14
23
00
69
28
18
34
19
80
30
53
03
63
25
55
82
24
69
96
95
94
56
40
19
12
23
48
94
14
19
20
81
51
02
53
35
30
77
54
44
05
33
36
84
97
83
88
78
86
19
85
89
19
99
23
33
01
18
64
59
05
51
88
36
93
30
55
89
45
95
65
71
14
20
15
33
09
18
15
33
95
76
83
84
08
05
40
19
43
27
73
41
99
84
15
11
06
04
78
W3v!oi5PEoK6gpC7cmIrq!&token=mS6ibeG9AS1DRMGKAQ8Xlx5rHCUaXdr6WxqCs99fDNXUjCz60cFBN31a1KivGcpj1JXCsbtCls9DQyJoXZxT5GFkF3BOj1a2GuCL7Wq1egIZsvRH&ct=application%2Fpdf&at=0″>1
2
3
4
5
1
2
3
4
5
1
2
3