-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfails.tex
2132 lines (1519 loc) · 79.7 KB
/
fails.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\probheadernum{4}
% team 2.4
Consider 3 red balls and 5 blue balls arranged on a line from left to right. How many different orderings of balls are there on this line if each red ball must have a blue ball immediately to its right? Balls of the same color are indistinguishable.
\begin{enumerate}[(a)]
\item 5
\item 10
\item 20
\item 40
\item 120
\end{enumerate}
\begin{solution}
B
\\
Each pair of (red, blue) becomes an entity (there are 3 of these). There are 2 remaining blue balls. The number of orderings of these 5 entities is $5!/(3! \cdot 2!)=120/(6 \cdot 2)=10$. Another way to view this problem is choosing where to put the 2 single blue balls among the 5 available spots, which is $\binom{5}{2} = 10$.
\end{solution}\probheadernum{4}
% team 3.2
What is the coefficient for the $m^{50} n^{51}$ term in the binomial expansion of $(3m-n)^{101}$
\begin{enumerate}[(a)]
\item $-(3^{51})\binom{101}{51}$
\item $-(3^{50})\binom{101}{50}$
\item $3^{50}\binom{101}{51}$
\item $3^{51}\binom{101}{50}$
\end{enumerate}
\begin{solution}
B
\\
The binomial expansion is $\sum_{k=0}^{101}\binom{101}{k}(3m)^{k}(-n)^{101-k}$. Expanding this, we get $\sum_{k=0}^{101}(-1)^{101-k}3^{k}m^kn^{101-k}$. The term asked for is when $k = 50$, so plugging that into the coefficient, we get $\binom{101}{50}(-1)^{51}3^{50} = -(3^{50})\binom{101}{50}$.
\end{solution}\probheadernum{4}
% team 3.3
How many ways are there to create an unordered group of 7 letters from the 26 English letters (lower-case only), where repetition is allowed?
\begin{enumerate}[(a)]
\item \text{\Large{$\frac{26!}{7!7!7!7!7!7!7!}$}}
\item $\binom{26}{7}$
\item $\binom{32}{7}$
\item $\binom{33}{7}$
\item $P(26, 7)$
\end{enumerate}
\begin{solution}
C
\\
This is stars n' bars, with 7 stars and $26-1=25$ bars. There are $\binom{stars+bars}{stars} = \binom{7+25}{7}=\binom{32}{7}$ ways to create a group of 7 letters. You can also think about this problem as putting 7 indistinguishable objects in 26 distinguishable boxes.
\end{solution}\probheadernum{4}
% team 2.2
Consider a set $S$ that contains all integers between 1 and 203 inclusive. What is the minimum number of distinct integers you can pick from set $S$ such that you are guaranteed that at least 2 of those numbers sum to 204?\\
\begin{enumerate}[(a)]
\item 2
\item 101
\item 102
\item 103
\item 202
\end{enumerate}
\begin{solution}
D
\end{solution}\probheadernum{4}
% team 3.5
We need to assign 4 students (A, B, C, and D) to 3 different teams (Team 1, Team 2, and Team 3). Each team needs to have at least 1 student. A and B cannot be in the same team. How many different ways are there to assign the teams?
\begin{enumerate}[(a)]
\item 6
\item 24
\item 30
\item 36
\end{enumerate}
\begin{solution}
C
\\
We need to put the 4 students into 3 groups and each group needs to have at least 1 student. This means two of the students need to be in the same team. There are $C(4, 2)=6$ ways to select two students who will be on the same team. However, A and B cannot be in the same team, so there are $6-1=5$ ways to select the pair of students who will on the same team. We now have 3 groups of 1, 1, and 2 students, and we assign the 3 groups to 3 teams, so there are in total $5 \cdot P(3, 3)= 5 \cdot 3! = 30$ ways.
\end{solution}\probheadernum{4}
% team 1.2
Suppose we roll a fair die until we see a 2 and a 3 in no particular order. What is the expected value of the number of times we roll the die?
\begin{enumerate}[(a)]
\item 6
\item 9
\item 12
\item 18
\item 24
\end{enumerate}
\begin{solution}
B
\\
Let X = number of rolls to get the first 2 or 3. $p=1/3$, so $E(X)=3$.\\
Let Y = number of rolls to get the other number. $p=1/6$, so $E(Y)=6$.\\
$E(X + Y) = E(X) + E(Y) = 3 + 6 = 9$.
%Let X = number of times we roll the dice get a 2 first and not 3 and then a 3, $E(X)= E(2) + E(3) = 3 + 6 = 9 $
%Let Y = number of times we roll the dice get a 3 first and not 2then a 2, $E(Y)= E(3) + E(2) = 3 + 6 = 9$
%total expected value
%\\ $E(X $ \cup $ Y) = E(X) + E(Y) = 18 $
\end{solution}\probheadernum{4}
% team 1.3
Consider a relation $R$ on the set of all sets, where two sets $A$ and $B$ are related via $R$ if and only if $A$ and $B$ have at least 3 elements in common. Which properties hold for this relation?
\begin{enumerate}[(a)]
\item Reflexive
\item Symmetric
\item Antisymmetric
\item Transitive
\end{enumerate}
\begin{solution}
B
\\
$R$ is not reflexive, because there is only 1 element in the intersection of a set of size 1 with
itself. $R$ is not antisymmetric; for example $\{1,2,3,4\}$ is related to $\{1,2,3\}$, but they are not the same set. $R$ is not transitive, because \{1, 2, 3, 4\} is related to \{1, 2, 3\} and \{2, 3, 4\} which are
not related, and $R$ is symmetric because $A \cap B$ = $B \cap A$.
\end{solution}\probheadernum{4}
% team 4.6
Two fair six-sided dice are rolled, where one is red and one is blue. Let $R$ be the event that the red die came up as a 3, and let $A$ be the event that at least one of the two dice came up as 3. Which of the following are true?
\begin{enumerate} [(a)]
\item $P(A|R) = P(A)$
\item $P(R|A) = P(R)$
\item $P(A \cap R) = P(R)$
\item $P(A) = \frac{1}{3}$
\item $P(R) = \frac{1}{6}$
\end{enumerate}
\begin{solution}
C, E
\\
The intersection of "red die came up as a 3" and "at least one of the two dice came up as 3" should be still "red die came up as a 3", which means $P(A \cap R) = P(R)$. For (a), $P(A|R) = P(A \cap R)/P(R) = P(R)/P(R) = 1$. For (b), $P(R|A) = P(A \cap R)/P(A) = P(R)/P(A) \neq P(R)$. For (d), $P(A) = 11/36$ since there are 11 valid combinations out of 36(the size of sample space).
\end{solution}
\begin{enumerate}[(a)]
\item $P(A|R) = P(A)$
\item $P(R|A) = P(R)$
\item $P(A \cap R) = P(R)$
\item $P(A) = \frac{1}{3}$
\item $P(R) = \frac{1}{6}$
\end{enumerate}
\begin{solution}
C, E
\\
The intersection of "red die came up as a 3" and "at least one of the two dice came up as 3" should be still "red die came up as a 3", which means $P(A \cap R) = P(R)$. For (a), $P(A|R) = P(A \cap R)/P(R) = P(R)/P(R) = 1$. For (b), $P(R|A) = P(A \cap R)/P(A) = P(R)/P(A) \neq P(R)$. For (d), $P(A) = 11/36$ since there are 11 valid combinations out of 36(the size of sample space).
\end{solution}\probheadernum{4}
% team Misc.12
Now, there is a second bag with five balls numbered 1 through 5. Carol draws a ball from this second bag. Let $Z$ be the value of the ball Carol drew, and again let $X$ and $Y$ be values of the balls that Alice and Bob drew, respectively. Which of the following are true?
\begin{enumerate} [(a)]
\item $V(X) = \frac{2}{3}$
\item $V(X+Y) = V(X)+V(Y)$
\item $V(Z) = 2$
\item $V(X+Z) = V(X)+V(Z)$
\end{enumerate}
\begin{solution}
A, C, D
\\
(B) is not guaranteed since $X$ and $Y$ are not independent. (D) works because $X$ and $Z$ are independent.
\end{solution}
\vspace{0.3in}
\begin{enumerate}[(a)]
\item $V(X) = \frac{2}{3}$
\item $V(X+Y) = V(X)+V(Y)$
\item $V(Z) = 2$
\item $V(X+Z) = V(X)+V(Z)$
\end{enumerate}
\begin{solution}
A, C, D
\\
(B) is not guaranteed since $X$ and $Y$ are not independent. (D) works because $X$ and $Z$ are independent.
\end{solution}\probheadernum{4}
% team 1.13
Suppose that $R$ and $S$ are relations on a set $A$. $R$ is reflexive and $S$ is symmetric. Which of the following statements must be true?
\begin{enumerate}[(a)]
\item $R \cup S$ is symmetric
\item $R \cap S$ is symmetric
\item $S - R$ is symmetric
\item $R^2$ is reflexive
\end{enumerate}
\begin{solution}
D
\end{solution}\probheadernum{4}
\\
title page question
\begin{enumerate}[(a)]
\end{enumerate}
\begin{solution}
uestion
\end{solution}\probheadernum{4}
\\
% Team 2, Question 5
\textit{Reminders:} A standard deck has 52 cards with 4 suits ($\heartsuit, \diamondsuit, \clubsuit, \spadesuit$) and 13 ranks (2, 3, \dots, 10, Jack (J), Queen (Q), King (K), Ace (A)). \\
Joseph randomly draws a hand of $13$ cards from a standard deck of cards. What is the probability of his hand contains exactly two Aces?
\begin{enumerate}[(a)]
\item $\frac{4\cdot3\cdot\binom{48}{11}}{\binom{52}{13}}$
\item $\frac{\binom{4}{2}\cdot\binom{48}{11}}{\binom{52}{13}}$
\item $\left(\frac{4}{52}\right)^2\cdot\left(\frac{48}{52}\right)^{11}$
\item $\left(\frac{4}{52}\right)^2\cdot\left(\frac{48}{52}\right)^{11}\cdot(13)!$
\item $\left(\frac{4}{52}\right)^2\cdot\left(\frac{48}{52}\right)^{11}\cdot\binom{13}{2}$
\end{enumerate}
\begin{solution}
(b)\\
The size of the sample space is the number of ways to choose $13$ cards out of $52$ cards, which is $\binom{52}{13}$. The task of drawing $13$ cards with exactly two Aces can be viewed as the cascade of drawing $2$ Aces out of $4$ Aces and drawing $11$ non-Aces out of $48$ non-Aces. By the product rule, the size of the event is $\binom{4}{2}\cdot\binom{48}{11}$. Since we assume random drawing, all outcomes in the sample space are equally likely, the probability is $\frac{\binom{4}{2}\cdot\binom{48}{11}}{\binom{52}{13}}$.
\end{solution}\probheadernum{4}
\\
% Team 3, Question 1
Brian dealt out a standard 52-card deck of cards. What is the probability that the first King occurs on the 20th card?
\begin{enumerate}[(a)]
\item $\frac{\binom{52}{19}\cdot\binom{4}{1}\cdot42!}{52!}$
\item $\frac{(48!/29!)\cdot32!\cdot4}{52!}$
\item $\frac{51!\cdot4}{52!}$
\item $\frac{(48!/29!)\cdot4}{52!}$
\item $(\frac{48}{52})^{19}\cdot\frac{4}{52}$
\end{enumerate}
\begin{solution}
(b)\\
The sample space is all the possible permutations of 52 cards. The event is the set of permutations that the first king occurs at the 20th position. The first 19 positions must not have rank of king, and hence $\frac{48!}{29!}$ ways to form the first 19 positions. 4 options at the 20th position because each rank can take on 4 possible suits. The arrangement of the rest of 32 cards has no constraint, and there are 32! ways to form the remaining 32 positions.
\end{solution}\probheadernum{4}
\\
% Greg, Binomial Coefficient Question
In the binomial expansion of $(1/x^2 + x)^{15}$, what is the coefficient of the term $x^7$?
\begin{enumerate}[(a)]
\item 0
\item $15 \choose 7$
\item $15 \choose 5$
\item $15 \choose 9$
\item 1
\end{enumerate}
\begin{solution}
(a)\\
Expand the expression
\begin{align*}
(x^{-2} + x)^{15} =& \sum_{k=0}^{15} {15\choose k}{(x^{-2})}^k {x}^{15-k} \\
=& \sum_{k=0}^{15} {15\choose k}x^{-2k} x^{15-k} \\
=& \sum_{k=0}^{15} {15\choose k}x^{-2k+15-k} \\
=& \sum_{k=0}^{15} {15\choose k}x^{15-3k}\\
\end{align*}
Since the non-zero terms in the expansion have exponents that are multiples of 3, the coefficient for $x^7$ is 0.
\end{solution}\probheadernum{4}
\\
% Team 2, Question 3
How many 52 letter non-decreasing strings are there when the letters are chosen with repetition from the 26-letter English alphabet (abcdefghijklmnopqrstuvwxyz)?\\
(Note: Non-decreasing means that a letter at a latter position can only be the same or greater than its former letter, so a string of ``aabxzzzz" would be valid, whereas ``a\textbf{\underline{db}}" would not be valid.)\\
\textit{Hint:} Consider how you can use stars and bars to solve this.
\begin{enumerate}[(a)]
\item $\binom{52}{26}$
\item $\binom{77}{51}$
\item $26^{52}$
\item $\binom{77}{25}$
\item $\binom{78}{51}$
\end{enumerate}
\begin{solution}
(d)\\
This boils down to a Stars and Bars problem. We just need to choose the letters of the string, since once we have letters there is exactly one way to make a valid string (arrange the letters in a non-decreasing order). We have 25 bars coming from the 26 possible letter choices. Each letter in the string is a star that fits into one of the letter boxes. We have $\binom{\text{stars+bars}}{\text{stars}}=\binom{25+52}{25}=\binom{77}{25}$ possible strings.
\end{solution}\probheadernum{4}
\\
% Team 2, Question 6
Which of the following represent the number of strings that consist of exactly 5 A's, 4 B's, and 3 C's? Select all that apply.
\begin{enumerate}[(a)]
\item $3^{12}$
\item $\binom{12}{5}\cdot\binom{12}{4}\cdot\binom{12}{3}$
\item $\frac{12!}{5!\cdot4!\cdot3!}$
\item $\binom{12}{5}\cdot\binom{7}{4}\cdot\binom{3}{3}$
\item $5!\cdot 4!\cdot 3!$
\end{enumerate}
\begin{solution}
(c),(d)
\begin{enumerate}[(a)]
\addtocounter{enumi}{2}
\item counts all permutations of 12 possible letters, then divides by repeated letters to avoid overcounting.
\item computes multinomial coefficients by choosing where all repetitions of a given letter go at once $\binom{12}{5}\cdot \binom{7}{4}\cdot\binom{3}{3}$.
\end{enumerate}
\end{solution}\probheadernum{4}
There are 50 participants in a TV show. The host of the show will distribute three identical prizes among the participants by spinning a wheel that has numbers 1 through 50 on it three times. How many ways are there to distribute the prizes?
\begin{enumerate}[(a)]
\item $\frac{50^3}{3!}$
\item $50^3$
\item $\binom{52}{2}$
\item $\binom{52}{49}$
\item $\binom{50}{3}$
\end{enumerate}
\begin{solution}
(d) \\
Note that any individual can win anywhere between 0 and 3 prizes, inclusive (repetition). By stars n' bars, we see that there are 3 stars and 49 bars. Since the prizes are identical (indistinguishable) then we treat the prizes as stars, and the participants are distinguishable and are used to calculate bars as $50 - 1 = 49$. Thus, there are $\binom{52}{3} = \binom{52}{49}$ ways to award the prizes.
\end{solution}\probheadernum{4}
Grace has 3 red balls, 3 blue balls, and 4 green balls. She wants to put the balls into $x$ boxes that can each hold any number of balls. What's the largest value of $x$ such that Grace can guarantee that at least two of the same colored balls are in some box?
\begin{enumerate}[a)]
\item 3
\item 4
\item 7
\item 9
\item 10
\end{enumerate}
\begin{solution}
(a) \\
This is because for red balls and blue balls, it's possible that they are distributed evenly among the three boxes. However, for green balls, there are 4 balls but only 3 boxes, so using the pigeonhole principle, $\lceil \frac{4}{3} \rceil = 2$. \\
For any value of $ x > 3$ (ex. 4), we can't apply pigeonhole principle because the number of boxes are greater or equal to the number of balls of each color.
\end{solution}
\newpage
%\vspace{2cm}
\begin{enumerate}[(a)]
\item 3
\item 4
\item 7
\item 9
\item 10
\end{enumerate}
\begin{solution}
(a) \\
This is because for red balls and blue balls, it's possible that they are distributed evenly among the three boxes. However, for green balls, there are 4 balls but only 3 boxes, so using the pigeonhole principle, $\lceil \frac{4}{3} \rceil = 2$. \\
For any value of $ x > 3$ (ex. 4), we can't apply pigeonhole principle because the number of boxes are greater or equal to the number of balls of each color.
\end{solution}\probheadernum{4}
What is the big-$\Theta$ runtime of this algorithm when the input is a positive integer $n$?
\begin{algorithm}[H]
\SetKwFunction{Alg}{Alg}{}
\SetKwFunction{Print}{print}
\SetKwProg{Fn}{procedure}{\string:}{}
\SetKwFor{For}{for}{do}{}
\SetKwFor{While}{while}{do}{}
\SetKwInOut{Input}{input}
\DontPrintSemicolon
\Input{$n$, a positive integer}
\BlankLine
\Fn{\Alg{n}}{
$k=1$ \\
\For{$i := 1$ \KwTo $n$}{
$k=k * 2$
}
\While{$(k>1)$} {
$k = k / 10$
}
\KwRet{}
}
\caption{Alg}
\end{algorithm}
\begin{enumerate}[a)]
\item $\Theta(\log n)$
\item $\Theta(n)$
\item $\Theta(n^2)$
\item $\Theta(2^n)$
\item $\Theta(2^n \log n)$
\end{enumerate}
\begin{solution}
(b) \\
The first for loop iterates $n$ times and the value of $k$ becomes $2^n$. \\
The while loop iterates $\log_{10} k = \log_{10} (2^n) = n \log_{10} 2$ times, where $\log_{10} 2$ is a constant. \\
Therefore, this algorithm runs in $\Theta(n)$ time.
\end{solution}
\newpage
\begin{enumerate}[(a)]
\item $\Theta(\log n)$
\item $\Theta(n)$
\item $\Theta(n^2)$
\item $\Theta(2^n)$
\item $\Theta(2^n \log n)$
\end{enumerate}
\begin{solution}
(b) \\
The first for loop iterates $n$ times and the value of $k$ becomes $2^n$. \\
The while loop iterates $\log_{10} k = \log_{10} (2^n) = n \log_{10} 2$ times, where $\log_{10} 2$ is a constant. \\
Therefore, this algorithm runs in $\Theta(n)$ time.
\end{solution}\probheadernum{4}
Suppose you randomly select an integer from the set $\{1, 2, \dots, 1000\}$. What is the expected number of digits in the selected number?
\begin{enumerate}[a)]
\item 2.888
\item 2.893
\item 3.21
\item 3.228
\item None of the above
\end{enumerate}
\begin{solution}
(b) \\
Let X represent the number of digits in the selected number. X could take on the value 1, 2, 3, or 4 since there could be anywhere between 1 to 4 digits in the selected number. Now to find $E(X)$, we have to determine the probability that X takes on each of 1, 2, 3, or 4. We do this by calculating $\frac{|E|}{|S|}$, with $|S| = 1000$ since there are $1000$ numbers in our sample space.\\
\newline
$P(X = 1) = \frac{|\{1, 2, \dots, 9\}|}{1000} = \frac{9}{1000}$.\\
$P(X = 2) = \frac{|\{10, 11, \dots, 99\}|}{1000} = \frac{90}{1000}$.\\
$P(X = 3) = \frac{|\{100, 101, \dots, 999\}|}{1000} = \frac{900}{1000}$.\\
$P(X = 4) = \frac{|\{1000\}|}{1000} = \frac{1}{1000}$.\\
\newline
$E(X) = 1 (\frac{9}{1000}) + 2 (\frac{90}{1000}) + 3 (\frac{900}{1000}) + 4 (\frac{1}{1000}) = \frac{9 + 180 + 2700 + 4}{1000} = 2.893$
\end{solution}
%\vspace{.6cm}
\newpage
\begin{enumerate}[(a)]
\item 2.888
\item 2.893
\item 3.21
\item 3.228
\item None of the above
\end{enumerate}
\begin{solution}
(b) \\
Let X represent the number of digits in the selected number. X could take on the value 1, 2, 3, or 4 since there could be anywhere between 1 to 4 digits in the selected number. Now to find $E(X)$, we have to determine the probability that X takes on each of 1, 2, 3, or 4. We do this by calculating $\frac{|E|}{|S|}$, with $|S| = 1000$ since there are $1000$ numbers in our sample space.\\
\newline
$P(X = 1) = \frac{|\{1, 2, \dots, 9\}|}{1000} = \frac{9}{1000}$.\\
$P(X = 2) = \frac{|\{10, 11, \dots, 99\}|}{1000} = \frac{90}{1000}$.\\
$P(X = 3) = \frac{|\{100, 101, \dots, 999\}|}{1000} = \frac{900}{1000}$.\\
$P(X = 4) = \frac{|\{1000\}|}{1000} = \frac{1}{1000}$.\\
\newline
$E(X) = 1 (\frac{9}{1000}) + 2 (\frac{90}{1000}) + 3 (\frac{900}{1000}) + 4 (\frac{1}{1000}) = \frac{9 + 180 + 2700 + 4}{1000} = 2.893$
\end{solution}\probheadernum{4}
What is the coefficient for the $y^{25}$ term in the expansion of $((3x^2+\frac{5}{x^3})y)^{25}$? \\
Note: There are no typos in this question.
\begin{enumerate}[(a)]
\item 0
\item $\binom{25}{13}3^{12}\cdot 5^{13}$
\item $\binom{25}{25}3^{0}\cdot 5^{25}$
\item $\binom{25}{15}3^{15}\cdot 5^{10}$
\item $\binom{25}{5}3^{20}\cdot 5^{5}$
\end{enumerate}
\begin{solution}
(d) \\
We can write $((3x^2+\frac{5}{x^3})y)^{25}=(3x^2y+\frac{5y}{x^3})^{25}$. When the first term is raised to the 15th power and the second term is raised to the 10th power, the $x$ term disappears and we are left with $y^{25}$. Thus, the coefficient is $\binom{25}{10}3^{15}\cdot 5^{10}=\binom{25}{15}3^{15}\cdot 5^{10}$
\end{solution}\probheadernum{4}
Let $R$ be a relation over the set of all sets. For sets $A$ and $B$, let ${}_A R_B$ if and only if $A - B$ is finite. Which of the following are true about $R$?
\begin{enumerate}[a)]
\item reflexive
\item symmetric
\item antisymmetric
\item transitive
\end{enumerate}
\begin{solution}
(a), (d)\\
\begin{enumerate}[a)]
\item True; For every set $A$, $A - A = \emptyset$ and since the empty set is finite, then R is reflexive.
\item False; Choose $A = \mathbb{Z^+}$ and $B = \mathbb{Z}$. Then ${}_A R_B$ because $A - B = \emptyset$, but $\neg {}_B R_A$ because $B - A = \mathbb{Z^-} \cup \{0\}$ which is countable infinite (not finite).
\item False; Choose $A = \{1\}$ and $B = \{2\}$. Then ${}_A R_B$ because $A - B = \{1\}$ which is finite and ${}_B R_A$ because $B - A = \{2\}$ which is finite, but $A \neq B$.
\item True; For arbitrary sets $A, B, C$, suppose that ${}_A R_B$ and ${}_B R_C$. We would like to show that ${}_A R_C$. Since ${}_A R_B$ then $A - B = A \cap \overline{B}$ is finite and since ${}_B R_C$ then $B - C = B \cap \overline{C}$ is finite. Then because the union of 2 finite sets must also be finite, we investigate and simplify $(A \cap \overline{B}) \cup (B \cap \overline{C}) = (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$.\\
If ${}_A R_C$, it would have to be true that $A - C = A \cap \overline{C}$ is finite. This can be proven by showing that $A \cap \overline{C} \subseteq (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$. For any arbitrary $x \in A \cap \overline{C}$, $x \in A$ and $x \in \overline{C}$ by definition of set intersection. Since $x \in A$, then we know $x \in A$ or $x \in B$, so $x \in A \cup B$ and we know $x \in A$ or $x \in \overline{C}$, so $x \in A \cup \overline{C}$ by definition of set union. Also, since $x \in \overline{C}$, then we know $x \in \overline{B}$ or $x \in \overline{C}$, so $x \in \overline{B} \cup \overline{C}$. Thus, $x \in (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$, so $A \cap \overline{C} \subseteq (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$. Therefore, $A \cap \overline{C} = A - C$ must be finite, so ${}_A R_C$, which proves that R must be transitive.
\end{enumerate}
\end{solution}
\vspace{2cm}
\begin{enumerate}[(a)]
\item reflexive
\item symmetric
\item antisymmetric
\item transitive
\end{enumerate}
\begin{solution}
(a), (d)\\
\begin{enumerate}[a)]
\item True; For every set $A$, $A - A = \emptyset$ and since the empty set is finite, then R is reflexive.
\item False; Choose $A = \mathbb{Z^+}$ and $B = \mathbb{Z}$. Then ${}_A R_B$ because $A - B = \emptyset$, but $\neg {}_B R_A$ because $B - A = \mathbb{Z^-} \cup \{0\}$ which is countable infinite (not finite).
\item False; Choose $A = \{1\}$ and $B = \{2\}$. Then ${}_A R_B$ because $A - B = \{1\}$ which is finite and ${}_B R_A$ because $B - A = \{2\}$ which is finite, but $A \neq B$.
\item True; For arbitrary sets $A, B, C$, suppose that ${}_A R_B$ and ${}_B R_C$. We would like to show that ${}_A R_C$. Since ${}_A R_B$ then $A - B = A \cap \overline{B}$ is finite and since ${}_B R_C$ then $B - C = B \cap \overline{C}$ is finite. Then because the union of 2 finite sets must also be finite, we investigate and simplify $(A \cap \overline{B}) \cup (B \cap \overline{C}) = (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$.\\
If ${}_A R_C$, it would have to be true that $A - C = A \cap \overline{C}$ is finite. This can be proven by showing that $A \cap \overline{C} \subseteq (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$. For any arbitrary $x \in A \cap \overline{C}$, $x \in A$ and $x \in \overline{C}$ by definition of set intersection. Since $x \in A$, then we know $x \in A$ or $x \in B$, so $x \in A \cup B$ and we know $x \in A$ or $x \in \overline{C}$, so $x \in A \cup \overline{C}$ by definition of set union. Also, since $x \in \overline{C}$, then we know $x \in \overline{B}$ or $x \in \overline{C}$, so $x \in \overline{B} \cup \overline{C}$. Thus, $x \in (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$, so $A \cap \overline{C} \subseteq (A \cup B) \cap (A \cup \overline{C}) \cap (\overline{B} \cup \overline{C})$. Therefore, $A \cap \overline{C} = A - C$ must be finite, so ${}_A R_C$, which proves that R must be transitive.
\end{enumerate}
\end{solution}\probheadernum{4}
Which of the following are true?
\begin{enumerate}[a)]
\item $(n^2 + 5n^4 - 7)(6 - n)$ is $\Theta (n^4)$
\item $(n^3 + \frac{5}{n})^{15}$ is $O(n^{30})$
\item $3^n + n^3 + 3!$ is $O(4^n)$
\item $\sum\limits_{k=0}^{20} n \cdot 3^k$ is $\Theta(n)$
\item $n^n$ is $O(n!)$
\end{enumerate}
\begin{solution}
(c), (d)\\
\begin{enumerate}[a)]
\item False; Looking at the highest-degree term from each factor, this expression would be $\Theta (n^4 \cdot n) = \Theta (n^5)$ which is not $\Theta (n^4)$.
\item False; This expression will have as large as an $n^{45}$ term which is larger than $n^{30}$, therefore it is not $O(n^{30})$.
\item True; $3^n + n^3 + 3!$ is $O(3^n)$ which is also $O(4^n)$ since $4^n$ grows faster than $3^n$.
\item True; $\sum\limits_{k=0}^{20} n \cdot 3^k = n \cdot \sum\limits_{k=0}^{20} 3^k$ since the $n$ term does not at all depend on the bounds $k$. Then since $\sum\limits_{k=0}^{20} 3^k$ is just a constant, then the whole expression is $\Theta(n)$.
\item False; Suppose there exists a $C \in \mathbb{R}$ such that $n^n \leq C \cdot n!$ for all $n \geq k \in \mathbb{R}$.
\begin{align*}
n^n &\leq C \cdot n!\\
n \cdot n \cdot n \dots \cdot n &\leq C \cdot n \cdot (n - 1) \cdot (n - 2) \dots \cdot 1\\
\frac{n}{n} \cdot \frac{n}{n - 1} \cdot \frac{n}{n - 2} \dots \cdot \frac{n}{1} &\leq C\\
C &\geq \frac{n}{n} \cdot \frac{n}{n - 1} \cdot \frac{n}{n - 2} \dots \cdot \frac{n}{1} \geq n\\
\end{align*}
Therefore, for any choice of $C$, we can choose an $n > C$, say $C +1$ to disprove our assumption. Therefore, $n^n$ is not $O(n!)$.
\end{enumerate}
\end{solution}
\newpage
\begin{enumerate}[(a)]
\item $(n^2 + 5n^4 - 7)(6 - n)$ is $\Theta (n^4)$
\item $(n^3 + \frac{5}{n})^{15}$ is $O(n^{30})$
\item $3^n + n^3 + 3!$ is $O(4^n)$
\item $\sum\limits_{k=0}^{20} n \cdot 3^k$ is $\Theta(n)$
\item $n^n$ is $O(n!)$
\end{enumerate}
\begin{solution}
(c), (d)\\
\begin{enumerate}[a)]
\item False; Looking at the highest-degree term from each factor, this expression would be $\Theta (n^4 \cdot n) = \Theta (n^5)$ which is not $\Theta (n^4)$.
\item False; This expression will have as large as an $n^{45}$ term which is larger than $n^{30}$, therefore it is not $O(n^{30})$.
\item True; $3^n + n^3 + 3!$ is $O(3^n)$ which is also $O(4^n)$ since $4^n$ grows faster than $3^n$.
\item True; $\sum\limits_{k=0}^{20} n \cdot 3^k = n \cdot \sum\limits_{k=0}^{20} 3^k$ since the $n$ term does not at all depend on the bounds $k$. Then since $\sum\limits_{k=0}^{20} 3^k$ is just a constant, then the whole expression is $\Theta(n)$.
\item False; Suppose there exists a $C \in \mathbb{R}$ such that $n^n \leq C \cdot n!$ for all $n \geq k \in \mathbb{R}$.
\begin{align*}
n^n &\leq C \cdot n!\\
n \cdot n \cdot n \dots \cdot n &\leq C \cdot n \cdot (n - 1) \cdot (n - 2) \dots \cdot 1\\
\frac{n}{n} \cdot \frac{n}{n - 1} \cdot \frac{n}{n - 2} \dots \cdot \frac{n}{1} &\leq C\\
C &\geq \frac{n}{n} \cdot \frac{n}{n - 1} \cdot \frac{n}{n - 2} \dots \cdot \frac{n}{1} \geq n\\
\end{align*}
Therefore, for any choice of $C$, we can choose an $n > C$, say $C +1$ to disprove our assumption. Therefore, $n^n$ is not $O(n!)$.
\end{enumerate}
\end{solution}\probheadernum{4}
\emph{Reminders}: A standard deck has 52 cards, with 4 suits ($\heartsuit, \diamondsuit, \clubsuit, \spadesuit
$) and 13 ranks (2, 3, \dots, 10, J, Q, K, A).\\
\noindent
How many different 8-card poker hands have 3 cards that share a rank, 3 cards that share a different rank, and 2 cards that share another rank? For example, your hand may contain $2\heartsuit, 2\diamondsuit, 2\clubsuit, 5\spadesuit, 5\diamondsuit, 5\heartsuit,\text{J}\spadesuit,\text{J}\heartsuit$.
\begin{enumerate}[(a)]
\item $\binom{13}{3}\cdot 3\cdot 4\cdot 4\cdot 6{}$
\item $\frac{13\cdot 12\cdot 11\cdot\binom{4}{3}\binom{4}{3}\binom{4}{2}}{6}$
\item $\frac{52\cdot 3\cdot 2\cdot 48\cdot 3\cdot 2\cdot 44\cdot 3}{6\cdot 6\cdot 2\cdot 2}$
\item $\binom{13}{2}\binom{11}{1}\binom{4}{2}4^2$
\item $13\cdot 12\cdot 44 \cdot 3\cdot 4\cdot 4$
\end{enumerate}
\begin{solution}
(a) (c) (d)
\begin{enumerate}[(a)]
\item This is first choosing all the ranks then picking 1 of the 3 as the rank of the 2 cards of the same rank. Then we have 4 ways to choose one suit to not be in the hand for each of the groups of 3 cards that share a rank. And similarly for the other rank. Then $\binom{4}{2}=6$ ways to choose the 2 suits for the 2 cards of a rank.
\item This divides out too much. The only overcounting occurs with the $13\cdot 12$, thus we would only have to divide out 2 and not 6.
\item This is just picking all the cards separately then dividing out all the overcounting, we must divide by 6 twice then 2 twice, as the first 3 cards can be selected in any order and then the order of the ranks for the first 6 cards can be reversed (a divide by 2). Then again the order of the last 2 cards can be reversed, thus we must again divide by 2 there.
\item This is just picking 2 ranks for the groups 3 cards that share a rank, then picking a rank for the 2 cards that share a rank, then picking 2 suits for the 2 cards that share a rank and $\binom{4}{3}=4$ ways to pick 3 suits for each of the two remaining ranks.
\item This is picking a rank for the 3 cards that share a rank, then picking another rank for the 3 cards that share a rank. We are overcounting, because the order doesn't matter, thus we must divide out by 2. Then from the remaining 44 cards, picking a card then picking another card of the same rank. Again we are overcounting and must divide out by 2, because the order we select the cards doesn't matter. After we have 4 choices to select the one card of the rank that is not in our hand. This occurs two times (once for each rank of 3 cards of a kind). Thus the $2\cdot 2$ is never divided out, so we are overcounting.
\end{enumerate}
\end{solution}\probheadernum{4}
Which of the following are true about graphs?
\begin{enumerate}[a)]
\item $K_5$ is bipartite
\item $C_{60}$ is bipartite
\item It is possible to have 56 edges in a bipartite graph with 14 vertices
\item $Q_4$ has more vertices than $W_8$
\item All directed multigraphs with $n$ vertices have more edges than all simple graphs with $n$ vertices
\end{enumerate}
\begin{solution}
(b), (d)\\
\begin{enumerate}[a)]
\item False; $K_5$ is not bipartite since $K_5$ contains triangles which are cycles of odd length and any time a graph contains a cycle of odd length, the graph cannot be bipartite.
\item True; $C_{60}$ is bipartite because $60$ is even and any $C_{n}$ with even $n$ is bipartite by assigning one vertex a color and then alternating colors at every vertex along the cycle.
\item False; The maximum possible edges in a bipartite graph with $2n$ vertices is $n^2$. This is because we must partition our set of vertices into two sets where no vertices within the same set are connected by an edge. When this is true, we maximize the number of edges by having every edge possible between vertices in separate sets. So if $k$ is the number of vertices in one partition, then $2n - k$ is the number in the other partition, creating a maximum of $k(2n - k)$ edges. This product is maximized when $k = n$, producing $n^2$ edges at maximum. Therefore, if we have 14 vertices in a bipartite graph, then we have a maximum of 49 edges.
\item True; $Q_4$ has $2^4 = 16$ vertices, whereas $W_8$ only has $8 + 1 = 9$ vertices.
\item False; A directed multigraph with $n$ vertices \textit{might} have more edges than a simple graph with $n$ vertices but it also might not. For example, let $G_1 = K_4$. $G_1$ is simple graph with 4 vertices and $\binom{4}{2} = 6$ edges. Now let $G_2$ be a directed multigraph with 4 vertices and 0 edges. Then $G_1$ and $G_2$ have the same number of vertices, but $G_1$ has more edges than $G_2$.
\end{enumerate}
\end{solution}
\newpage
\begin{enumerate}[(a)]
\item $K_5$ is bipartite
\item $C_{60}$ is bipartite
\item It is possible to have 56 edges in a bipartite graph with 14 vertices
\item $Q_4$ has more vertices than $W_8$
\item All directed multigraphs with $n$ vertices have more edges than all simple graphs with $n$ vertices
\end{enumerate}
\begin{solution}
(b), (d)\\
\begin{enumerate}[a)]
\item False; $K_5$ is not bipartite since $K_5$ contains triangles which are cycles of odd length and any time a graph contains a cycle of odd length, the graph cannot be bipartite.
\item True; $C_{60}$ is bipartite because $60$ is even and any $C_{n}$ with even $n$ is bipartite by assigning one vertex a color and then alternating colors at every vertex along the cycle.
\item False; The maximum possible edges in a bipartite graph with $2n$ vertices is $n^2$. This is because we must partition our set of vertices into two sets where no vertices within the same set are connected by an edge. When this is true, we maximize the number of edges by having every edge possible between vertices in separate sets. So if $k$ is the number of vertices in one partition, then $2n - k$ is the number in the other partition, creating a maximum of $k(2n - k)$ edges. This product is maximized when $k = n$, producing $n^2$ edges at maximum. Therefore, if we have 14 vertices in a bipartite graph, then we have a maximum of 49 edges.
\item True; $Q_4$ has $2^4 = 16$ vertices, whereas $W_8$ only has $8 + 1 = 9$ vertices.
\item False; A directed multigraph with $n$ vertices \textit{might} have more edges than a simple graph with $n$ vertices but it also might not. For example, let $G_1 = K_4$. $G_1$ is simple graph with 4 vertices and $\binom{4}{2} = 6$ edges. Now let $G_2$ be a directed multigraph with 4 vertices and 0 edges. Then $G_1$ and $G_2$ have the same number of vertices, but $G_1$ has more edges than $G_2$.
\end{enumerate}
\end{solution}\probheadernum{4}
How many ways are there to pair up 6 dogs with 6 different dog leashes, where each pair consists of a dog with a leash?
\begin{enumerate}[(a)]
\item 6!
\item $2^6$
\item $(6!)^2$
\item $\binom{6+5}{6}$
\item $\binom{12}{2}\binom{10}{2}\binom{8}{2}\binom{6}{2}\binom{4}{2}$
\end{enumerate}
\begin{solution}
(a) \\
This is essentially assigning every dog a leash. The first dog can have 6 choices for a leash to pair with, the second dog has 5 choices and so on. Thus we have $6\cdot 5\cdot 4\cdot 3\cdot 2\cdot 1=6!$
\end{solution}\probheadernum{4}
What is the big-$\Theta$ of the following algorithm, based on the number of print statements?
% See: http://mirror.hmc.edu/ctan/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf
\begin{algorithm}[H]
\SetKwFunction{Cheering}{Cheering}{}
\SetKwFunction{Print}{print}
\SetKwProg{Fn}{procedure}{\string:}{}
\SetKwFor{For}{for}{do}{}
\SetKwFor{If}{if}{then}{}
\SetKwInOut{Input}{input}
\DontPrintSemicolon
\Input{$n$ an integer power of 2}
\BlankLine
\Fn{\Cheering{n}}{
\If {$n = 1$} {
\KwRet{}
}
\Cheering{$n/2$}\;
\For{$i\leftarrow 1$ \KwTo $5$}{
\For{$j\leftarrow 1$ \KwTo $n$}{
\Print{``you got this!''}
}
}
\Cheering{$n/2$}\;
\Cheering{$n/2$}\;
\KwRet{}
}
\caption{Cheering}
\end{algorithm}
\begin{enumerate}[(a)]
\item $\Theta(n)$
\item $\Theta(n^2)$
\item $\Theta(n^2\log(n))$
\item $\Theta(n \log(n^2))$
\item $\Theta(n^{\log_2 3})$
\end{enumerate}
\begin{solution}
% Hw Team 4
(e)\\
$Cheering$ calls itself 3 times, each with an input size of $n/2$. Outside of the recursive calls, $Cheering$ executes the print statement inside the nested for loops. The inner loop executes $n$ times for each index of the outer loop, and the outer loop executes 5 times, so \textit{``you got this!"} is printed $5n$ times.
Putting it all together, the complexity of the algorithm, based on the number of print statements, is:
$T(n) = 3T(n/2) + 5n$.\\
Using the Master Theorem, we can see that $a = 3, b = 2, d = 1$, so $\frac{a}{b^d} = 3/2 > 1$. Therefore, the complexity of this function is $=\Theta(n^{\log_b a})= \Theta(n^{\log_2 3})$
\end{solution}\probheadernum{4}
Let A be a set such that $|A| = 5$. How many relations over $A$ are reflexive?
\begin{enumerate}[(a)]
\item 5
\item $2^{25} - 5 \cdot 2^{24}$
\item $\sum\limits_{k=1}^{20} \binom{25}{k}$
\item $2^{11}$
\item $2^{20}$
\end{enumerate}
\begin{solution}
% HW TEAM 2
(e) \\
Of the $5^2 = 25$ potential edges between elements of $A$, we know that 5 must be in the relation since our relation must be reflexive. That is, of the 25 possible ordered pairs that could be in the relation, we know that all 5 pairs of the form $(x,x)$ must be in the relation in order for it to be reflexive. For the remaining 20 potential ordered pairs, each pair could either be in the relation or not in the relation, giving $2^{20}$ possible relations.
\end{solution}\probheadernum{4}
Which of the following values of $x$ satisfy the congruence $3x \equiv 10$ (mod 12)?
\begin{enumerate}[(a)]
\item 4
\item 10
\item 12
\item 20
\item 22
\end{enumerate}
\begin{solution}
%TEAM 1
None of the above. $3x \equiv 10$ (mod 12) has no solutions. The only possible values of $3x$ in (mod 12) are \{0,3,6,9\}, thus $3x$ can never be 10.
\end{solution}\probheadernum{4}
Which of the following are true?
\begin{enumerate}[(a)]
\item gcd$(108,25) = 1$
\item $25x \equiv 29 \pmod{108}$ has a solution.
\item $25^{-1} \equiv -4$ (mod 108)
\item $25^{-1} \equiv 13$ (mod 108)
\item $25^{-1}$ does not exist (mod $108$)
\end{enumerate}
\begin{solution}
a, b, d
% Hw team 1
We can implement the Extended Euclidean Algorithm on (108, 25) to answer all parts of this problem.
\begin{align*}
108-4\cdot 25 &=8 &\\
25 -3 \cdot 8 &= 1 & \text{so} \gcd(108,25)=1\\
\text{Working back up: }\\
1&= 25-3\cdot 8 \\
&= 25 - 3(108 - 4 \cdot 25) \\
&= -3\cdot 108 +13 \cdot 25 \\
\end{align*}
Looking at $1= -3\cdot 108 +13 \cdot 25$ in (mod 108), we get $1 \equiv 13 \cdot 25$ (mod 108) from which we observe that 13 and 25 are inverses in (mod 108).
\end{solution}\probheadernum{4}
Given the poset $(\{-3, 1, 2, 5, 12, 9, 36\}, |)$, which of the following statements are true?
\begin{enumerate}[(a)]
\item
There is at least one maximum element.
\item
There is at least one minimum element.
\item
There is exactly one lower bound of \{9, 12\}.
\item
There are exactly two upper bounds of \{2,$-3$\}
\item
A viable compatible total ordering for this poset is
\[
1 \prec -3 \prec 2 \prec 9 \prec 5 \prec 12 \prec 36
\]
\end{enumerate}
\begin{solution}
b,d,e
\begin{tikzpicture}
\fill (9,4) circle[radius=2.5pt] node[label=above:$ {36}$] (36) {};
\fill (8,3) circle[radius=2.5pt] node[label=left:$ {9}$] (9) {};
\fill (10,3) circle[radius=2.5pt] node[label=right:$ {12}$] (12) {};
\fill (6,2.3) circle[radius=2.5pt] node[label=above:$ {5}$] (5) {};
\fill (8,2) circle[radius=2.5pt] node[label=left:$ {-3}$] (-3) {};
\fill (10,2) circle[radius=2.5pt] node[label=right:$ {2}$] (2) {};
\fill (8,1) circle[radius=2.5pt] node[label=below:$ {1}$] (1) {};
\draw (1) -- (5);
\draw (1) -- (-3);
\draw (1) -- (2);
\draw (-3) -- (9);
\draw (-3) -- (12);
\draw (2) -- (12);
\draw (9) -- (36);
\draw (12) -- (36);
\end{tikzpicture}
\begin{enumerate}[(a)]
\item
No, 5 and 36 are both maximal. There is no maximum element.
\item
Yes, 1 is the minimum element
\item
No, 1 and 3 are both lower bounds of \{9, 12\}
\item
Yes, 12 and 36 are upper bounds
\item
Yes, it is.
\end{enumerate}
\end{solution}\probheadernum{4}
If graph $A = K_8$, graph $B = K_{10}$, and graphs $A$ and $B$ share exactly 5 vertices, then how many edges are in $A \cup B$?
\begin{enumerate} [(a)]
\item 26