-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
2194 lines (1554 loc) · 112 KB
/
main.tex
File metadata and controls
2194 lines (1554 loc) · 112 KB
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
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{parskip}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}
\title{Final Exam Study Guide - MATH 3012}
\author{Assembled by: Aidan Wang}
\date{November 2025}
\begin{document}
\definecolor{lime}{RGB}{50, 205, 50}
\definecolor{navy}{HTML}{000080}
\definecolor{yellow}{HTML}{FFCE1B}
\pagestyle{fancy}
\fancyhf{}
\newcommand{\stirlingii}{\genfrac{\{}{\}}{0pt}{}}
\maketitle
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\begin{center}
\Large
\textbf{Table of Contents}
\vspace{0.25cm}
\normalsize
\label{home}
\textbf{\textcolor{navy}{Module 1 Review}}, found here at \textcolor{navy}{\autoref{Module 1}} or at Page \pageref{Module 1}.
\textbf{\textcolor{navy}{Module 2 Review}}, found here at \textcolor{navy}{\autoref{Module 2}} or at Page \pageref{Module 2}.
\textbf{\textcolor{navy}{Module 3 Review}}, found here at \textcolor{navy}{\autoref{Module 3}} or at Page \pageref{Module 3}.
\textbf{\textcolor{navy}{Module 4 Review}}, found here at \textcolor{navy}{\autoref{Module 4}} or at Page \pageref{Module 4}.
\textbf{\textcolor{navy}{Module 5 Review}}, found here at \textcolor{navy}{\autoref{Module 5}} or at Page \pageref{Module 5}.
\textbf{\textcolor{navy}{Module 6 Review}}, found here at \textcolor{navy}{\autoref{Module 6}} or at Page \pageref{Module 6}.
\vspace{0.5cm}
\textcolor{yellow}{Note}: \textcolor{navy}{Blue Font} is usually a link to another page or resource. Navigate to the \hyperref[home]{\textcolor{navy}{\textbf{Table of Contents}}} again at the footer of each page.
\end{center}
\fancyfoot[C]{Aidan W, \thepage\ — \hyperref[home]{Back to \textcolor{navy}{\textbf{Table of Contents}}}}
\newpage
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================Section 5=======================
\section{Module 1 - Overview}
\label{Module 1}
\begin{itemize}
\item With correct notation and terminology, find and describe sets, subsets, and set cardinalities, found at \textcolor{navy}{\autoref{Module 1.1}}.
\item With correct notation and terminology, define or interpret relations or functions between sets, found at \textcolor{navy}{\autoref{Module 1.2}}.
\item Interpret or find properties of relations and functions, such as reflexivity, symmetry, anti-symmetry, and transitivity (relations) and domain, codomain, range, injectivity, surjectivity, and bijectivity (functions). Be able to give some reasonable justification/proof that a relation or function has the above properties, found at \textcolor{navy}{\autoref{Module 1.3}}.
\item State and use the Pigeonhole Principle, found at \textcolor{navy}{\autoref{Module 1.4}}.
\item Understand and explain the relationship between set cardinality and the existence of injective/surjective/bijective functions. In particular, be able to describe the premise of a bijective proof and complete a simple example, found at \textcolor{navy}{\autoref{Module 1.5}}.
\item Describe the logical premise of an inductive proof and complete a simple example, found at \textcolor{navy}{\autoref{Module 1.6}}.
\item State the sum and product rules for counting, and demonstrate practical and/or theoretical understanding of when and how each should be used, found at \textcolor{navy}{\autoref{Module 1.7}}.
\item Count the number of strings of a particular length satisfying a particular set of conditions (such as limitations on repetition of symbols), found at \textcolor{navy}{\autoref{Module 1.7}}.
\item Count the number of permutations of a particular length using at least that many symbols, found at \textcolor{navy}{\autoref{Module 1.7}}.
\item Count the number of combinations of a particular size, found at \textcolor{navy}{\autoref{Module 1.7}}.
\item Use combinations and strings/permutations together (along with the sum and/or product rules) to count slightly more complex groups of objects, found at \textcolor{navy}{\autoref{Module 1.7}}.
\end{itemize}
\newpage
\subsection{With correct notation and terminology, find and describe sets, subsets, and set cardinalities. \textcolor{navy}{\textbf{(MODULE 1.1)}}}
\label{Module 1.1}
\vspace{0.25cm}
\textbf{\textcolor{red}{Definition}}: A \textbf{set} is a collection of elements, usually denoted by $S$ or another \underline{capital letter}. We have a couple ways to write these sets:
\begin{itemize}
\item $S = {1,2,3}$, or $T={1,2,3...9,10}$ is a listing of elements. This can be hard to do if we have many to list.
\item $N = {1,2,3,...}$ For listing an infinite set that give enough elements to show a clear pattern.
\item $A = \{a \space|\text{ a as in the English alphabet\}}$. This is called \textcolor{orange}{Set-Builder notation}. It gives \textbf{criteria} for elements that should belong in this set.
\end{itemize}
\vspace{0.3cm}
\textcolor{orange}{\textbf{Notation}}: Let's refresh some other notations.
\begin{itemize}
\item $x$ is in an element $S$, we say $x \in S$. If not, then $x \notin S$.
\item We define \textcolor{orange}{Cardinality} as the number of elements in a set, written as $|S|$.
\item Also let's note $\emptyset$ is the empty set of nothing (\textcolor{lime}{True}-\textcolor{red}{False} Questions)!
\end{itemize}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: A \underline{subset} of $S$ if every element of $T$ is also an element of $S$. Let's see some ways to write this
\begin{itemize}
\item T is a subset or equal to S: $T \subseteq S$.
\item T is a subset but \textbf{NOT equal} to S: $T \subset S$.
\item T is \textbf{NOT A SUBSET} of S: $T \nsubseteq S$.
\item We can also say $T = S$ by saying that $T \subseteq S$ and $S \subseteq T$ are both true.
\end{itemize}
\vspace{0.4cm}
\textcolor{navy}{\textbf{Final Remarks}}: For our final exam, notation is really important! Let's refresh ourselves on some key things to remember:
\begin{itemize}
\item 1 is a number, not a set.
\item $\{1\}$ is a set containing only 1.
\item (1,2,3) is a sequence containing numbers 1,2, and 3.
\item A number is not a set, so it cannot be a subset either.
\end{itemize}
\newpage
\subsection{With correct notation and terminology, define or interpret relations or functions between sets. \textcolor{navy}{\textbf{(MODULE 1.2)}}}
\label{Module 1.2}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: A \underline{relation} $R$ from a set $X$ to a set $Y$ (written $R : X \to Y$) is a set of ordered pairs
$$R = \{(x,y) \mid x \in X,\; y \in Y\}.$$
\begin{center}
\textit{If $(x,y) \in R$, we say that $x$ is related to $y$, and write $xRy$.}
\end{center}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{Note}}: A relation $R$ may have the following properties:
\begin{itemize}
\item \textbf{Non-empty}: $R \neq \emptyset$.
\item \textbf{Reflexive}: $(x,x) \in R$ for all $x \in X$.
\item \textbf{Symmetric}: $(x,y) \in R \implies (y,x) \in R$.
\item \textbf{Anti-symmetric}: If $(x,y)$ and $(y,x)$ are in $R$, then $x = y$.
\item \textbf{Transitive}: $(x,y),(y,z) \in R \implies (x,z) \in R$.
\end{itemize}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: The \textbf{\underline{Cartesian product}} of sets $X$ and $Y$ is,
$$X \times Y = \{(x,y) \mid x \in X,\, y \in Y\}.
$$
In other words, every relation of $R : X \to Y$ satisfies $R \subseteq X \times Y$.
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: The \textbf{\underline{power set}} of a set $S$ is the set of all of $S$'s subsets:
$$\mathcal{P}(S) = \{T \mid T \subseteq S\}.$$
\vspace{0.25cm}
\textcolor{lime}{\textbf{Example}}: Let:
$$X = \{1,2\}, \qquad Y = \{a,b\}.$$
\vspace{0.25cm}
Then the \textbf{Cartesian product} is:
$$X \times Y = \{(1,a), (1,b), (2,a), (2,b)\}.$$
\vspace{0.25cm}
A possible relation $R \subseteq X \times Y$ is:
$$R = \{(1,a), (2,b)\}.$$
\newpage
\subsection{Interpret or find properties of relations and functions, then prove a function has those properties. \textcolor{navy}{\textbf{(MODULE 1.3)}}}
\label{Module 1.3}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{RECALL}}: A relation $R$ may have the following properties:
\begin{itemize}
\item \textbf{Non-empty}: $R \neq \emptyset$.
\item \textbf{Reflexive}: $(x,x) \in R$ for all $x \in X$.
\item \textbf{Symmetric}: $(x,y) \in R \implies (y,x) \in R$.
\item \textbf{Anti-symmetric}: If $(x,y)$ and $(y,x)$ are in $R$, then $x = y$.
\item \textbf{Transitive}: $(x,y),(y,z) \in R \implies (x,z) \in R$.
\end{itemize}
\vspace{0.3cm}
\textcolor{red}{\textbf{Definition}}: A \underline{\textbf{Function}} $f:X\to Y$ is a relation from $X$ to $Y$ such that each $x \in X$ belongs to exactly one ordered pair $(x,y)$.
\begin{itemize}
\item \textcolor{yellow}{\textbf{Note}}: our \underline{domain} is the set $X$, \underline{codomain} is $Y$, and \underline{range} of $f$ is the subset of $Y$ defined as $\{y\in Y| (x,y) \ \text{ in } f \text{ for some }x \in X\}$.
\end{itemize}
\vspace{0.25cm}
\textcolor{red}{\textbf{IMPORTANT}}: The definitions of relations are the most important definitions of this unit!
\begin{itemize}
\item A function $f$ is \textbf{injective} or \textbf{one-to-one} if no element of $f$'s range appears more than once.
\item A function $f$ is \textbf{surjective} or \textbf{onto} if the \underline{codomain} of $f$ is equal to its range.
\item A function $f$ is \textbf{bijective} or a \textbf{bijection} if it is both \underline{injective and surjective}.
\end{itemize}
\vspace{0.25cm}
\textcolor{orange}{\textbf{Proposition}}: It's important to note that these propositions require proofs, so they're less practical on the \underline{exam }exam. But, they're nice to know for \textcolor{lime}{True}-\textcolor{red}{False} Questions.
\begin{itemize}
\item There exists a surjective function $f:X\to Y$ if and only if $|X| \geq |Y|$.
\item There exists a n injective function $f:X\to Y$ if and only if $|X| \le |Y|$.
\end{itemize}
\newpage
\subsection{State and use the Pigeonhole Principle. \textcolor{navy}{\textbf{(MODULE 1.3)}}}
\label{Module 1.4}
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: The \underline{\textbf{Pigeonhole Principle}} tells us that if we have \underline{$n+1$} \textcolor{orange}{pigeons} wish to nest in \underline{$n$} \textcolor{yellow}{pigeonholes}, at least one \textcolor{yellow}{pigeonholes} must contain 2 or more \textcolor{orange}{pigeons}.
\begin{itemize}
\item When translated to $X$ as "\textcolor{orange}{pigeons}" (\underline{domain}) and $Y$ as "\textcolor{yellow}{pigeonholes}" (\underline{codomain}), then if we have $|X|>|Y|$ then we have more \textcolor{orange}{pigeons} than \textcolor{yellow}{pigeonholes}.
\item In other words, no relation $f:X\to Y$ is injective when $|X| > |Y|$.
\end{itemize}
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: Then we can also conclude that \underline{with sufficient proof}, we can say that a \textbf{bijection} $f:X\to Y$ exists if and only if $|X|=|Y|$.
\vspace{0.3cm}
\begin{center}
\includegraphics[width=1\linewidth]{pigeons.png}
\textcolor{yellow}{Note}: \textcolor{red}{Red is injective}, \textcolor{lime}{Green is bijective}, \textcolor{navy}{Blue is surjective}.
\end{center}
\newpage
\subsection{Understand and explain the relationship between set cardinality and the existence of injective/surjective/bijective functions. In particular, be able to describe the premise of a bijective proof and complete a simple example. \textcolor{navy}{\textbf{(MODULE 1.4)}}}
\label{Module 1.5}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{RECALL}}: This unit is all about proving a \underline{bijection}! We have 2 approaches:
\begin{itemize}
\item We can prove a \underline{bijection} $f$ by definition,
\begin{itemize}
\item \textbf{Injective} if $f(w) =f(x)$ only when $w=x$.
\item \textbf{Surjective} if any $y\in Y$ there is some $x \in X$ so that $f(x)=y$.
\end{itemize}
\item We can then prove it's an \underline{\textbf{inverse function}} of some $g : Y \to X$, then $g$ and $f$ must be \underline{bijections}.
\begin{itemize}
\item \textcolor{yellow}{\textbf{Note}}: $g(f(x))=x$ for all $x \in X$ and $f(g(y)=y$ for all $y \in Y$.
\end{itemize}
\end{itemize}
\vspace{0.25cm}
If you're still confused on how to write a \underline{bijective} proof, please refer to the lecture video here: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m1-dot-4-bijective-proofs?module_item_id=5401830}{\textcolor{blue}{Module 1.4 Lecture Notes}}.
\begin{center}
$$P_3=\{()()(),(())(),()(()),((())),(()())\}$$
\includegraphics[width=1\linewidth]{;lattice.png}
\end{center}
\textcolor{orange}{\textbf{SUMMARY}}: Our goal is to show that set $P_n$ of valid parenthesis strings has the same cardinality as the set $L_n$. We'll also say $f$ is the function which takes any order of parenthesis in $P_n$ and translates them to a lattice step to (3,3).
\begin{itemize}
\item To show a function is \textbf{injective}, we can argue our two "\underline{different}" inputs give the same output, meaning that these inputs were the same all along!
\item To show a function is \textbf{surjective} we can argue that all elements or any arbitrary element of the codomain are part of range.
\end{itemize}
\underline{\textbf{Injectivity}}: We have some arbitrary sequence of lefts and rights in $L_3$ called $l_1$. We then have some arbitrary sequence of parenthesis in $P_3$ called $p_1$. We know that they both have the same sequence of open/close parenthesis or right/up steps so $f$ must be injective.
\underline{\textbf{Surjectivity}}: We then can show that the number of upward steps never exceeds or is below the number of rightward steps. We then also show that the number of right and left parenthesis are always equal to 3. So we have the co-domains always in the range.
\newpage
\subsection{Describe the logical premise of an inductive proof and complete a simple example. \textcolor{navy}{\textbf{(MODULE 1.6)}}}
\label{Module 1.6}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: Suppose $S_n$ represents some always true or false statement of $n$. Then we can also define our \textbf{Base Case} as $S_{n_0}, S_{n_{0}+1},\space...$ as true through \underline{brute force} or some other method. Then we can also use an \textbf{Induction Step} to then imply the truth of $S_{k+1}$ for all positive integers of value $k$. In other words this $S_n$ is always true for $n\ge n_0$.
\vspace{0.25cm}
\textcolor{red}{\textbf{TRY IT}}: Show that for all $n \ge 1$:
$$\sum_{i=1}^{n}i= \frac{n(n+1)}{2}$$
\begin{itemize}
\item So we need to prove a \textbf{base} \textbf{case}, usually it's always $n=1$.
\end{itemize}
$$\sum_{i=1}^{1}i= \frac{1(1+1)}{2}=1$$
\begin{itemize}
\item Then we need our \textbf{induction} \textbf{step}, which is to assume our claim holds true for any number $k$ and then $k+1$. We can write this as:
\end{itemize}
$$\sum_{i=1}^{k}i= \frac{k(k+1)}{2}$$
\begin{itemize}
\item We can finally examine the left side of the equation and then do our final step, combined with some algebra and simplification:
\end{itemize}
$$\sum_{i=1}^{k+1}i= \sum_{i=1}^{k}i +(k+1)$$
$$... = \frac{k(k+1)}{2} + (k+1) \text{, Assumption!}$$
$$... = \frac{(k+1)(k+2}{2}=\sum_{i=1}^{k+1}i$$
We have therefore proved by \textbf{induction} that this equality holds for $k+1$ whenever equality holds for $k$. So our \textcolor{navy}{\textbf{theorem}} is true for all $n$ positive integers.
\vspace{0.5cm}
If you're still struggling with \textbf{Induction}, use the link here: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m1-dot-6-induction?module_item_id=5408376}{\textcolor{blue}{Module 1.6 Lecture Notes}}.
\begin{center}
\textcolor{yellow}{\textbf{Note}}: \textcolor{red}{Strong induction} will \textbf{not} be on the exam.
\end{center}
\newpage
\subsection{State the sum and product rules for counting, and demonstrate practical and/or theoretical understanding of when and how each should be used. Count the number of strings, permutations, and combinations of a particular size.
\textcolor{navy}{\textbf{(MODULE 1.7, 1.8, 1.9)}}}
\label{Module 1.7}
\vspace{0.25cm}
\emph{Note that these units are really the foundation of 3012 and the next 3 units.}
\textcolor{orange}{\textbf{Recall}}: \underline{Sum Rule} states that \textbf{events which cannot occur simultaneously} of $n$ and $m$ can happen in $n+m$ ways.
\textcolor{orange}{\textbf{Recall}}: \underline{Product Rule} states that tied events of $n$ and $m$ can happen in $n \cdot m$ ways.
\vspace{0.25cm}
\textcolor{orange}{\textbf{Important}}: Remember the difference between \textcolor{red}{\textbf{Permutation}} and \textcolor{yellow}{\textbf{Combination}}.
\begin{itemize}
\item \textcolor{red}{\textbf{Permutation}} is a possible arrangement (ordering) of objects. The way to write a permutation of size $k$ using $n$ distinct objects is denoted as $P(n,k)$ or $_nP_k$:
$$P(n,k)= \frac{n!}{(n-k)!}$$
\item \textcolor{yellow}{\textbf{Combination}} is a subset of $k$ objects selected from a set $X$. If $|X| = n$, the number of combinations is the \underline{choose function}, "n choose k":
$$C(n,k)= \binom{n}{k}$$
\end{itemize}
\vspace{0.25cm}
\textcolor{orange}{\textbf{Recall}}: The choose function has a lot of very interesting properties. It's defined as:
\vspace{0.1cm}
$$\frac{n!}{(n-k)!k!}=\binom{n}{k}=\binom{n}{n-k}$$
\vspace{0.25cm}
Remember that \textbf{Combinations} can help us to count situations where we need to make \textbf{selections of items} from larger pools. A good rule of thumb: \underline{use} \underline{combinations when choosing}.
\newpage
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================Section 5=======================
\section{Module 2 - Overview}
\label{Module 2}
\begin{itemize}
\item Calculate, with appropriate work, the number of ways to permute k of n distinct objects in a circular arrangement, found at \textcolor{navy}{\autoref{Module 2.1}}.
\item Calculate, with appropriate work, the number of ways to permute k of n indistinct objects, found at \textcolor{navy}{\autoref{Module 2.2}}.
\item Write, with sufficient detail and clearly stated quantity to count, a simple combinatorial proof, found at \textcolor{navy}{\autoref{Module 2.3}}.
\item Define, explain, and apply multinomial coefficients, found at \textcolor{navy}{\autoref{Module 2.4}}.
\item Calculate, with appropriate work, the number of ways to distribute n indistinct items to k distinct groups, found at \textcolor{navy}{\autoref{Module 2.5}}.
\item Calculate the number of integer solutions to a given equation, found at \textcolor{navy}{\autoref{Module 2.5}}.
\end{itemize}
\newpage
\subsection{Calculate, with appropriate work, the number of ways to permute k of n distinct objects in a circular arrangement. \textcolor{navy}{\textbf{(MODULE 2.1)}}}
\label{Module 2.1}
\vspace{0.25cm}
\textbf{\textcolor{navy}{Theorem}}: \textbf{Circular Arrangements} are given by this formula with n objects:
$$P_{n,k}=(n-1)!$$
\vspace{0.25cm}
\underline{\textbf{Logically}}, we can think of these arrangements are either: using a fixed reference, so tying down an object and then arranging the rest or just using our formula.
\begin{itemize}
\item Also note we oftentimes must merge objects in conditions where objects must be seated adjacent to each other.
\end{itemize}
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\subsection{Calculate, with appropriate work, the number of ways to permute k of n indistinct objects. \textcolor{navy}{\textbf{(MODULE 2.2)}}}
\label{Module 2.2}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: \textbf{Multiplicity} refers to how many times an element appears in a \underline{set}. In simpler terms, how many times does item $m$ appear?
\begin{itemize}
\item \textit{Multiplicities} give this \textcolor{navy}{\textbf{theorem}}: for any collection of $n$ objects, the ways to permute if $n$ objects contain \textbf{repeat objects} is equal to:
$$\frac{n!}{n_1!\cdot n_2! \cdot \space... \cdot n_k!}$$
\item In other words:
$$\frac{n!}{\text{Multiplicities}}$$
\end{itemize}
\textcolor{red}{\textbf{TRY IT}}: How many 7-letter permutations of the letters in "ATLANTA" are there?
\begin{itemize}
\item We have 3 copies of A, 2 copies of T, and multiplicities of 1 for L and N.
$$\frac{7!}{3! \cdot 2! \cdot 1! \cdot 1!}=\frac{7!}{6}$$
\end{itemize}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{Note}}: Don't forget to properly apply cases when permuting for string lengths of $<n$! Here's an example in the lecture: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m2-dot-2-permutations-with-indistinct-objects?module_item_id=5435166}{\textcolor{navy}{Last Example of Module 2.2}}.
\newpage
\subsection{Write, with sufficient detail and clearly stated quantity to count, a simple combinatorial proof, found at \textcolor{navy}{\textbf{(MODULE 2.3)}}}
\label{Module 2.3}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: A \textbf{combinatorial proof} (or "\underline{proof by counting}") counts the same set of objects in 2 \textbf{distinct but valid ways}. This \textbf{proves} that the numbers obtained in each count are equal.
\vspace{0.25cm}
\textbf{Goal: } Prove that $\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}$.
\begin{itemize}
\item \underline{Setup}: Let $X$ be the a set of size $n$ and count subsets of $X$ with size $k$ for some fixed $1\le k \le n$.
\vspace{0.25cm}
\item $\binom{n}{k}$ counts the ways to choose k objects out of n objects total. This is also just a simple way to say k-subsets of $X$. \underline{Our left side is validated}.
\vspace{0.25cm}
\item Let's fix a particular element $x \in X$. Now every subset of $X$ either contains $x$ or not. When we exclude $x$, or $x \notin$ our k elements, then we count $\binom{n-1}{k}$.
\vspace{0.25cm}
\item When we include $x$, or $x \in$ our k elements: $\binom{n-1}{k-1}$.
\vspace{0.25cm}
\item \textbf{Wait}, we just counted all possible scenarios! Use the \underline{sum-rule} and we get $\binom{n-1}{k-1} + \binom{n-1}{k}$ as our total! Thus:
$$\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}$$
\end{itemize}
\vspace{0.3cm}
\textcolor{yellow}{\textbf{Note}}: For a better explanation, look to Dr. K's lecture: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m2-dot-3-combinatorial-proofs?module_item_id=5435168}{\textcolor{navy}{Module 2.3}}.
\newpage
\subsection{Define, explain, and apply multinomial coefficients. \textcolor{navy}{\textbf{(MODULE 2.4)}}}
\label{Module 2.4}
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: \textbf{Binomial Theorem} is the expansion of $(x+y)^n$:
$$(x+y)^n=\binom{n}{n}x^n+\binom{n}{n-1}x^{n-1}y+\space...+\binom{n}{1}xy^{n-1}+\binom{n}{n}y= \sum^n_{k=0}{\binom{n}{k}x^ky^{n-k}}$$
\vspace{0.25cm}
\textcolor{lime}{\textbf{Example}}: Find the coefficient of $x^5y^7$ in $(x+y)^{12}$:
\begin{itemize}
\item $n=12$, $k=5$, and then our term is $\binom{12}{5}=\binom{12}{7}$.
\end{itemize}
\vspace{0.25cm}
\emph{Now what happens if we have some }$(3x^2+4y)^6$, \emph{What do we do}?
\vspace{0.3cm}
\textcolor{navy}{\textbf{Theorem}}: \textbf{Multinomial Coefficients} follow the format of this:
$$\binom{n}{k}\cdot (\text{Coefficients }^{ Powers})$$
\begin{itemize}
\item This is also expressed as this: $\binom{n}{n_1,n_2,\space...,n_k}=\frac{n!}{n_1!n_2!...n_k!}$.
\end{itemize}
\vspace{0.25cm}
\textcolor{lime}{\textbf{Example}}: Find the coefficient of $x^6y^3$ in $(3x^2+4y)^{6}$:
\begin{itemize}
\item We can try substitution: letting $u=3x^2$ and $v=4y$.
\item Then we have $u^3$ and $v^3$ to give us terms of $x^6$ and $y^3$.
\item We know from our \textbf{binomial theorem} that our term is:
$$\binom{6}{3}u^3v^3=\binom{6}{3}3^3\cdot x^6 \cdot(4y)^3 \to \binom{6}{3}\cdot 27 \cdot 64$$
\end{itemize}
\vspace{0.3cm}
\textbf{\textcolor{yellow}{Note}}: if your term is too large, say we looked for $x^9y^9$ in this expansion, it wouldn't exist so our coefficient would be 0!
\newpage
\subsection{Calculate, with appropriate work, the number of ways to distribute n indistinct items to k distinct groups. Calculate the number of integer solutions to a given equation. \textcolor{navy}{\textbf{(MODULE 2.5)}}}
\label{Module 2.5}
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: The \textbf{Stars and Bars} theorem tells us to distribute n identical objects into unique baskets of k is given by:
$$\binom{n+k-1}{n}=\binom{n+k-1}{k-1}$$
\vspace{0.25cm}
\textcolor{orange}{\textbf{Proposition}}: The following quantities are then equal:
\begin{itemize}
\item The number of selections with repetition of $n$ things from a set of size $k$.
\item The number of ways $n$ identical objects into unique baskets of k.
\item The number of non-negative integer solutions to the equation $x_1+x_2+ \space... + x_k=n$
\item And our formula for the \textbf{Stars and Bars}, $\binom{n+k-1}{n}$.
\end{itemize}
\vspace{0.25cm}
\textcolor{lime}{\textbf{Example}}: The number of non-negative integer solutions to the equation of $x_1+x_2+x_3=17$ is:
$$\binom{17+3-1}{17}=\binom{19}{17}=\binom{19}{2} \text{ solutions.}$$
\vspace{0.3cm}
That's it for \textcolor{navy}{Module 2}! The \textbf{Twelvefold Way} is more covered in \textcolor{navy}{\autoref{Module 3}} and \textcolor{navy}{\autoref{Module 4}}.
\newpage
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================Section 5=======================
\section{Module 3 - Overview}
\label{Module 3}
\begin{itemize}
\item Explain the method and importance of the Inclusion/Exclusion principle, found at \textcolor{navy}{\autoref{Module 3.1}}.
\item Given a problem, identify an appropriate universal set and conditions to use in applying PIE, found at \textcolor{navy}{\autoref{Module 3.1}}.
\item Use PIE to calculate, with appropriate work, the number of items in a set satisfying none of a set of conditions, found at \textcolor{navy}{\autoref{Module 3.1.1}}.
\item State and apply the PIE formulas to find the number of objects satisfying at least a certain number of conditions, found at \textcolor{navy}{\autoref{Module 3.2}}.
\item State and apply the PIE formulas to find the number of objects satisfying exactly a certain number of conditions, found at \textcolor{navy}{\autoref{Module 3.2.1}}.
\item Use PIE to calculate the number of objects satisfying any given subset of a set of conditions, found at \textcolor{navy}{\autoref{Module 3.2.2}}.
\item Use derangements to solve counting problems [Recall that on an exam, the notation will not suffice as a final answer- please simplify to factorials], found at \textcolor{navy}{\autoref{Module 3.3}}.
\item Define and describe rook numbers and rook polynomials using appropriate vocabulary and notation, found at \textcolor{navy}{\autoref{Module 3.4}}.
\item Find the rook polynomial of a reasonably sized chessboard, found at \textcolor{navy}{\autoref{Module 3.4}}.
\end{itemize}
\newpage
\subsection{Explain the method and importance of PIE. Given a problem, identify an appropriate universal set, conditions, and calculate the number of items in a set satisfying none of a set of conditions. \textcolor{navy}{\textbf{(MODULE 3.1)}}}
\label{Module 3.1}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: The \textbf{Principle of Inclusion-Exclusion} or \textbf{PIE} is the idea that we first count the \underline{universal set}, then correct for over-counted subsets until we get our desired subset of the \underline{universal set}.
\begin{itemize}
\item \textcolor{orange}{\textbf{Recall}}: the \underline{universal set} from \textit{Statistics} is the set of all objects of particular type, this definition holds still. It's the big set we're taking a subset from. In the image below $A$ is our universal set.
\item Usually we will let $A_i$ be the number of elements that fulfill some $i$ condition. $A$ can then be our \underline{universal set}. Here's a drawing below of this scenario from Dr. K's \href{https://gatech.instructure.com/courses/464392/pages/lesson-m3-dot-1-pie-part-i-counting-surjections?module_item_id=5451080}{\textcolor{navy}{Module 3.1 Lecture}}:
\end{itemize}
\begin{center}
\includegraphics[width=0.45\linewidth]{Venn3.png}
\end{center}
\vspace{0.25cm}
Now an interesting question to think about: \emph{how can we count the number of surjections from some $X \to Y$} where $X=\{1,2,...,n\}$ and $Y = \{1,2,...,k\}$?
\begin{itemize}
\item \textbf{PIE} tells us that we should first start with all functions and then correct our answer until we get just surjections. In other words, we need to weed out the functions that don't include some $i$ in their codomain $Y$!
\item We know there are a total of $k^n$ functions from $X\to Y$.
\item Let $A_i = \{\text{functions that don't contain element } i\}$.
\item Then: $|\text{surjections}|= k^n - |A_1 \cup A_2 \cup A_3 ... \cup A_k|$.
\end{itemize}
\vspace{0.25cm}
Writing all of that out is \underline{tedious and hard to follow}. Let's create instead a \textbf{condition} of $c_i$ where element is not included. Then let $N(\overline{c_i})$ be the number of sets where elements in $A$ \textcolor{red}{doesn't} satisfy $c_i$: $N(\overline{c_1}) =|A|-|A_i|$.
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: We can then rewrite the essence of \textbf{PIE} as (\textit{3 bad conditions}):
$$N(\overline{c_1c_2c_3})=|A|-N(\overline{c_1})-N(\overline{c_2})-N(\overline{c_3})+N(\overline{c_1c_2})+N(\overline{c_1c_3})+N(\overline{c_2c_3})-N(\overline{c_1c_2c_3})$$
\newpage
\subsubsection{Applications of \textbf{PIE} continued...}
\label{Module 3.1.1}
Sometimes you'll also see \underline{$S_i$}, a representation of the \underline{\textbf{sum of ALL ways}} to satisfy $i$ conditions.
$$N(c_1)+N(c_2)+\space...\space+N(c_n)=\sum^n_{i=1}N(c_i)=S_1$$
\begin{itemize}
\item This value is not very useful as a final answer. Reason being is a lot of \textcolor{red}{\textbf{over-counting}} is occurring: we cannot guarantee that these cases are separate or distinct, some terms could satisfy multiple conditions and we'll over-count! That's why we have the theorem below to \textit{combine} our last two formulas.
\end{itemize}
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: Let $A$ be a set and suppose we have $n$ conditions $c_1\to c_n$ satisfied by subsets $A_i \subseteq A$. Then the \textbf{number of elements} in $A$ where \textbf{no conditions} in $c_i$ are satisfied is:
$$N(\overline{c_1c_2c_3}\space...\space {c_n})=|A| -\sum_{1\le i\le n} N({c_i}) + \sum_{1\le i\le j \le n}N({c_i c_j})-\space ...\space + (-1)^n N({c_1...c_n})$$
$$=N-S_1+S_2-\space...\space+(-1)^nS_n \text{ (nice and short!)}$$
\vspace{0.25cm}
But, our formula still isn't complete! We still want to know how to easily find $N(c_1,\space...\space, c_n)$ or $S_n$.
\begin{itemize}
\item Let's first imagine we have only two conditions out of a total $n$ conditions to exclude from set $A$. This is $S_2$. Then we have $\binom{n}{2}$ ways to exclude two conditions!
\item Now, notice that $S_i \to $ (Ways to Choose Conditions) $\cdot$ (Number of ways to define a function without using 2 particular elements).
\item Now, if we want to exclude \textbf{two elements} we have: $(n-2)^k$ ways to do so, with $k$ from all the way above as the total elements in our $Y$ \textit{codomain}.
\item Put this together and we get:
$$S_2=\binom{n}{2}N(c_ic_j)$$
\end{itemize}
Our \textbf{general} \textcolor{navy}{\textbf{theorem}} adapts to this (which still counts \textbf{surjections}):
$$N(\overline{c_1\space...\space c_n}) = N + \sum^n_{i=1}(-1)^i\binom{n}{i}(n-i)^k= n^k + \sum^n_{i=1}(-1)^i\binom{n}{i}(n-i)^k$$
Hooray! We're done with simple exclusions! More help here: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m3-dot-1-pie-part-i-counting-surjections?module_item_id=5451080}{\textcolor{navy}{3.1 Lecture Videos}}.
\newpage
\subsection{State and apply the PIE formulas to find the number of objects satisfying at least OR exactly a certain number of conditions. Calculate the number of objects satisfying any given subset of a set of conditions. \textcolor{navy}{\textbf{(MODULE 3.3, 3.4)}}}
\label{Module 3.2}
\vspace{0.25cm}
How do we solve $x+y+z=12$ where $0\le x\le5, 0 \le y \le 7, 0 \le x \le 6$?
\begin{itemize}
\item We know that to solve this equation for non-negative integer solutions with no bounds, we can use our \textbf{stars and bars} formula. But, what about with bounds?
\end{itemize}
\textcolor{orange}{\textbf{Method}}: Use \textbf{PIE}. Set conditions as: \underline{$c_1:x\ge 6$}, \underline{$c_2:y\ge8$}, and \underline{$c_3:z\ge7$}.
Then, the quantity we desire to find is the number of solutions which violate any of the 3 conditions: $N(\overline{c_1c_2c_3}) = |A| - S_1+S_2-S_3$.
\begin{itemize}
\item $|A|$ is simply equal to the stars and bars formula or as if our scenario had no conditions at all: $\binom{12+3-1}{3-1}=\binom{14}{2}$.
\item $N(c_1)$, or the condition that $x\ge6$ and $y,z\ge0$ can be solved by removing 6 from $x\to x'$ and then also subtracting the total by 8. This gives: $x'+y+z=6,$ or $\binom{12-6+3-1}{3-1}$.
\item By the same logic, then $N(c_2)=\binom{6}{2}$ and $N(c_3)=\binom{7}{2}$.
\item $S_1$, the number of elements where 1 condition is satisfied is $\binom{8}{2}+\binom{7}{2}+\binom{6}{2}$. Since \textbf{no two conditions can be true} at once, our total is:
$$N(\overline{c_1c_2c_3})=\binom{14}{2}-S_1=27$$
\end{itemize}
\vspace{0.25cm}
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\subsubsection{Determining items that satisfy exactly $k$ conditions.}
\label{Module 3.2.1}
\textcolor{navy}{\textbf{Theorem}}: The number $E_k$ denotes the number of elements in $A$ satisfying \textbf{EXACTLY} $k$ conditions $c_1,...,c_n$:
$$E_k=S_k-\binom{k+1}{1}S_{k+1}+\binom{k+2}{2}S_{k+2}-\space...\space+(-1)^{n-k}\binom{n}{n-k}S_n$$
\begin{itemize}
\item Remember that $S_k$ has no \textcolor{red}{permanent definition}. It really just represents the way to satisfy $i$ conditions by each way with no checks for over-counting. We need to be smart and change $S_k$ to be whatever the question is asking for.
\end{itemize}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{Example}}: So say we have some $X=\{x_1,x_2,\space...,x_{10}\}$ and $Y=\{y_1,y_2,\space...,y_7\}$. how many functions $f:X\to Y$ have \underline{exactly} 4 elements in their range?
\newpage
Well, let's plug in our formula first:
$$E_3=S_3-\binom{3+1}{1}S_{3+1}+\binom{3+2}{3}S_{3+2}-\binom{3+3}{1}S_{3+3}+\binom{3+4}{3}S_{3+4}$$
\vspace{0.25cm}
Then let's start with $S_3$, the sum of ways to satisfy each collection of 3 conditions. Note that it's equivalent to finding $N(c_i,c_j,c_k)$.
\begin{itemize}
\item We have 7 items in our codomain of $\{y_1,y_2,\space...,y_7\}$. If we remove 3 elements, then we have 7 choose 3 ways to exclude. Then after that we can then have $4^{10}$ ways to create a function with the remaining 4: \underline{$\binom{7}{3} \cdot 4^{10}$}.
\item Using the same logic, we see a pattern appear:
$$S_4=\binom{7}{4}\cdot3^{10},\space S_5=\binom{7}{5}\cdot2^{10}, \space S_6=\binom{7}{6}\cdot 1^{10}, \space S_7=0$$
\end{itemize}
$$\text{Now plug: } E_3=\binom{7}{3} \cdot 4^{10}-\binom{4}{1}\binom{7}{4}\cdot3^{10}+\binom{5}{3}\binom{7}{5}\cdot2^{10}-\binom{6}{1}\binom{7}{6}\cdot 1^{10}+ 0$$
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\subsubsection{Calculate the number of objects satisfying any given subset of a set of conditions.}
\label{Module 3.2.2}
\vspace{0.25cm}
This is the final part of \textbf{PIE}: how can we calculate the number of items in a set which satisfy at least $k$ out of $n$ conditions? Call this number $L_k$:
$$L_k=S_k-\binom{k}{k-1}S_{k+1}+\binom{k+1}{k-1}S_{k+2}+\space...\space (-1)^{n-k}\binom{n-1}{k-1}S_n$$
\vspace{0.25cm}
\begin{itemize}
\item \textcolor{lime}{\textbf{REMEMBER}}: Here's a little jingle to help you remember the formulas, \underline{E of K has K plus one, L of K has K plus none}!
\item Ultimately, everything else is the same as our formula for $E_k$. Our terms of $S_i$ would even be the same, we just need new coefficients!
\end{itemize}
\vspace{0.25cm}
Here's a link to extra practice with our formula: \href{https://gatech.instructure.com/courses/464392/pages/lesson-m3-dot-4-pie-part-iii?module_item_id=5465344}{\textcolor{navy}{Module 3.4 Lecture}}.
\newpage
\subsection{Use derangements to solve counting problems. \textcolor{navy}{\textbf{(MODULE 3.5)}}}
\label{Module 3.3}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: a \textbf{derangement} is a permutation where nothing stays in its original position. Counting all possible \textbf{derangements} of $X$ is equal to saying that some function $f:X\to Y$ where no conditions of $c_1, \space..., c_n$ are satisfied.
\vspace{0.25cm}
\textcolor{navy}{\textbf{Theorem}}: For all $n\ge1$, the \textbf{derangements} of $n$ objects is equal to $[\frac{n!}{e}]$, or the approximation to the nearest integer of $\frac{n!}{e}$.
\begin{itemize}
\item Remember that \textbf{derangements} can also be expressed as $!n=[\frac{n!}{e}]$.
\end{itemize}
\vspace{0.25cm}
\textcolor{red}{\textbf{TRY IT}}: 6 students are taking 2 classes in the same classroom with 6 chairs. When they come into the second class, in how many ways can they sit down so that exactly 2 of them have the same seat for both classes?
\begin{itemize}
\item First choose which students get to sit in their original seat: $\binom{6}{2}=15$.
\item Then derange everyone else (4 remaining students): $!4={\frac{4!}{e}}\approx9$.
\item Our total is then: $15 \cdot 9 = 135$ total possibilities. On an exam it's perfectly fine to leave the answer as $\binom{6}{2}[\frac{4!}{e}]$. \textcolor{red}{\textbf{DO NOT}} leave your answer as $\binom{6}{2}\cdot \space!4$.
\end{itemize}
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\newpage
\subsection{Define and describe rook numbers and rook polynomials using appropriate vocabulary and notation. Find the rook polynomial of a reasonably sized chessboard. \textcolor{navy}{\textbf{(Module 3.7)}}}
\label{Module 3.4}
\vspace{0.25cm}
\textcolor{red}{\textbf{Definition}}: A \underline{Rook Polynomial} is the way to arrange rooks on some chessboard of $C$. It is expressed as $r_k(C)$. Remember that $r_0(C)=1$ always. Now, if we have a $n \times x$ regular, monochrome board our formula for our rook polynomial is:
$$r(C_{n\times n},x)=\sum^n_{k=0}r_kx^k, \space \text{where } r_k=\binom{n}{k}\binom{n}{k}k!$$
\vspace{0.25cm}
\textcolor{red}{\textbf{TRY IT}}: Find the rook polynomial of the chessboard below:
\begin{center}
\includegraphics[width=0.35\linewidth]{C.png}
\end{center}
\begin{itemize}
\item $r_0(C)=0$ by convention.
\item $r_1(C)=4$: we can place a single rook 4 ways, 1 in each square.
\item $r_2(C)=2$: to place 2 rooks, we must place both in a diagonal.
\item $r_3(C)=0$: we don't have enough diagonal squares to place 3.
$$r(C,x)=1+4x+2x^2+0\cdot x^3$$
\end{itemize}
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\subsubsection{Calculating the Rook Polynomial (Strategies and tips).}
\textcolor{lime}{\textbf{EXAM-KNOW}}: Now if we don't have a simple monochrome board, we have two majors strategies:
\begin{itemize}
\item \textbf{Reducing} a chessboard to smaller sub-boards that multiply to give our bigger board. \textit{We should note that we cannot reduce our chessboard more than once, it doesn't quite work that way.}
\item \textbf{Rearranging} the columns and rows into a easier to compute board.
\end{itemize}
\newpage
Let's start with \textcolor{yellow}{\textbf{Reducing}} a board. Say we have the $4 \times 4$ board below.
\begin{center}
\includegraphics[width=0.35\linewidth]{C_Subdivision (2).png}
\end{center}
We can think of the board like this instead:
\begin{center}
\includegraphics[width=0.45\linewidth]{C_Subdivision (3).png}
\end{center}
What we've done is divide this board into two smaller $2\times2$ boards. When we \textbf{multiply} their respective rook polynomials together, we will get the bigger board.
$$r(C,x)=(1+4x+2x^2)\cdot(1+3x+x^2)=1+7x+15x^2+10x^3+2x^4$$
\vspace{0.25cm}
Now let's look at \textcolor{navy}{\textbf{Rearranging}} the board. Suppose we have this board below and wish to find the way to place in \textbf{black squares} indicated by $r(\overline{C},x)$:
\begin{center}
\includegraphics[width=0.5\linewidth]{C_Subdivision (5).png}
\end{center}
\newpage
Then we can \textbf{rearrange} to this:
\begin{center}
\includegraphics[width=0.5\linewidth]{C_Subdivision (6).png}
\end{center}
Notice there are now 4 $n\times n$ squares in our big square: \textbf{one $2\times2$} and \textbf{three $1\times1$} squares.
\begin{itemize}
\item If we multiply all of these squares together, we get all of the black-square arrangements!
\end{itemize}
$$r(C_{2\times2},x)\cdot r(C_{1\times1},x)^3=1+7x+17x^2+19x^3+10x^4+2x^5$$
\newpage
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================================================
% ======================Section 5=======================
\section{Module 4 - Overview}
\label{Module 4}
\begin{itemize}
\item Define and describe ordinary generating functions and their uses, found at \textcolor{navy}{\autoref{Module 4.1}}.
\item Use generating functions to solve problems at an appropriate level, found at \textcolor{navy}{\autoref{Module 4.1}}.
\item Find, in power series or closed form, the OGF of a given sequence, found at \textcolor{navy}{\autoref{Module 4.2}}.
\item Find, with a clear pattern shown or arbitrary nth term given, the sequence generated by an OGF, found at \textcolor{navy}{\autoref{Module 4.2}}.
\item Use addition to form a generating function for the sum of two sequences, found at \textcolor{navy}{\autoref{Module 4.3}}.
\item Use multiplication to form a generating function for the convolution of two sequences, found at \textcolor{navy}{\autoref{Module 4.3}}.
\item Consistently use correct vocabulary and notation, with sufficient work, to discuss and work with generating functions, found at \textcolor{navy}{\autoref{Module 4.4}}.
\item Define and give examples of integer partitions, found at \textcolor{navy}{\autoref{Module 4.5}}.
\item \textcolor{lime}{\textbf{Extra}}: \textbf{Finished Twelvefold-Way}, found at \textcolor{navy}{\autoref{Module 4.5.1}}.
\item Use generating functions to model the number of integer partitions satisfying a given set of conditions, found at \textcolor{navy}{\autoref{Module 4.6}}.
\item \textcolor{yellow}{\textbf{NOTE}}: You will \textbf{not} be asked to reproduce a proof that two types of partitions have the same number of possibilities (like the last proof in 4.6) on the final exam.
\end{itemize}
\newpage
\subsection{Define and describe ordinary generating functions and their uses, solving problems at an appropriate level. \textcolor{navy}{(MODULE 4.1)}}
\label{Module 4.1}
\vspace{0.25cm}
We use \textbf{ordinary generating functions} to save information in sequences like this: $(s_n)_{n\ge0}=(0,1,0,0,0,0,0,2,0,0,0,\space...)$
\textcolor{red}{\textbf{Definition}}: An \textbf{Ordinary Generating Function} translates the terms of a sequence $(s_n)_{n\ge0}$ as the coefficients of $x^n$ for $n\ge0$:
$$(s_n)_{n\ge0} \to f(x)=\sum^\infty_{n=0}s_nx^n\to\text{ Function }f(x)\text{ \textbf{generates} the sequence } (s_n)_{n\ge0}$$
We can use \textbf{OGFs} to solve systems of equations with bounds without using \textbf{PIE}! For example, how many solutions of $a+b+c=10$ exists where:
$$2\le a \le 4, \text{\hspace{0.3cm}} 3 \le b \le 5, \text{\hspace{0.3cm}} 2 \le c \le 5$$
Let's represent the values of $f_a(x),f_b(x), f_c(x)$ as the following polynomials:
$$2\le a \le 4 \text{\hspace{0.3cm}} \to \text{\hspace{0.3cm}} f_a(x)=x^2+x^3+x^4$$
$$3\le b \le 5 \text{\hspace{0.3cm}} \to \text{\hspace{0.3cm}} f_b(x)=x^3+x^4+x^5$$
$$2\le c \le 5 \text{\hspace{0.3cm}} \to \text{\hspace{0.3cm}} f_c(x)=x^2+x^3+x^4+x^5$$
Then, we multiply all of our bound functions to get $f(x)$:
$$f(x)=f_a(x)\cdot f_b(x) \cdot f_c(x) = (x^2+x^3+x^4)(x^3+x^4+x^5)(x^2+x^3+x^4+x^5)$$
\vspace{0.25cm}
\textcolor{red}{\textbf{TRY IT:}} Find the \textbf{OGF} of non-negative integer solutions to the equation $q+r+s+t=n$, where:
$$q \le 4, \hspace{0.25cm} \text{s is odd}, \hspace{0.25cm} r \ge 8, \hspace{0.25cm}\text{t is even}$$
For $q$ and $t$ it's pretty straight forward: $q \to 1+x+x^2+x^3+x^4$ and $t\to \sum_{i=8}^\infty x^i$
$s$ and $t$ can be represented with powers of $2i+1$ and $2i$ respectively. This ensures their powers are always \textbf{even} \textbf{and} odd.
$$f_s(x)=\sum^\infty_{i=0}x^{2i+1} \hspace{0.4cm} f_t(x)=\sum^{\infty}_{i=0}x^{2i}$$
$$f(x)=(1+x+x^2+x^3+x^4)(\sum^\infty_{i=8}x^i)(\sum^\infty_{i=0}x^{2i+1})(\sum^\infty_{i=0}x^{2i})$$
\newpage
\subsection{Find, in power series or closed form, the OGF of a given sequence and the sequence generated by an OGF. \textcolor{navy}{(MODULE 4.2)}}
\label{Module 4.2}
\vspace{0.25cm}
\textcolor{yellow}{\textbf{Note}}: We don't really care about \underline{Calculus II} concepts in this course. Don't worry about convergence of anything besides the geometric series.
\textcolor{navy}{\textbf{Theorem}}: The 3 major closed forms to note for our \textbf{OGFs} are,
$$(1+x)^n=\sum^{\infty}_{i=0}\binom{n}{i}x^i \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm}(\binom{n}{0},\binom{n}{1}, ..., \binom{n}{n}, 0, 0,...)_{i\ge0}$$
$$\frac{1}{1-x}=\sum^\infty_{i=0}x^i \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm}(1,1,1,1,1,...)$$
$$e^x=\sum^\infty_{i=0}\frac{x^i}{i!} \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm}(\frac{1}{i!})_{i\ge0}$$
Now our major manipulation techniques are as follows:
\textcolor{navy}{\textbf{1. Constant Multiplication}}: Multiplying our OGF/Closed form by some constant.
$$c\cdot f(x) = c\sum^\infty_{i=0}a_ix^i \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm} (c\cdot a_0, c\cdot a_1, c\cdot a_2, ...)$$
\textcolor{red}{\textbf{Example}}: To find the \textbf{OGF} of (2,2,2,2,...) we must multiply (1,1,1,1,...) or $\frac{1}{1-x}=\sum^\infty_{i=0}x^i$ by 2. This gives:
$$\frac{2}{1-x}=\sum^\infty_{i=0}2x^i \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm}(2,2,2,2,2,...)$$
\begin{center}
\noindent\rule{1.0\textwidth}{0.75pt}
\end{center}
\textcolor{navy}{\textbf{2. Index Shift}}: We can increase the power of every term by $i$, or just multiply by $x^i$. This shifts our index by $i$.
$$x\cdot f(x) = x\cdot \sum^\infty_{i=0}a_ix^i \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm} (0, a_0, a_1, ...)$$
\textcolor{red}{\textbf{Example}}: To find the \textbf{OGF} of $(0,0,1,1,\frac{1}{2!},\frac{1}{3!},...)$ we must start with our sequence encoded by $e^x$. We need to shift it by 2 spots, so multiply by $x^2$:
$$e^x\cdot x^2=\sum^\infty_{i=0}\frac{x^{i+2}}{i!} \hspace{0.25cm} \xrightarrow{\text{generates}} \hspace{0.25cm}(0,0,1,1,\frac{1}{2!},\frac{1}{3!},...)$$
\newpage
\textcolor{navy}{\textbf{3. Differentiation}}: Multiplying our OGF/Closed form by its own index by taking its \textbf{derivative}. Suppose we have $f(x)=\sum^\infty_{i=0}a_ix^i \to (a_i)_{i\ge0}$ and want an \textbf{OGF} for sequence of $(i\cdot a_i)_{i\ge0}$:
\begin{itemize}
\item We'll need to take the derivative of $a_i\cdot x^i$ which gives $i \cdot a_i \cdot x^{i-1}$.