Unfinished learning resource · TMP-SCI-074. Units 1–8 are available. Whole-course validation remains unfinished. Provisional noncredit self-study for the existing planned shared course. This is not a completed semester, registered course, degree credit or accreditation. Workload and rubrics are unpiloted; specialist, learner and accessibility validation remain needed. All examples are fictional finite models. No account, purchase, programming or private data is required.
Study route
A large number is easy to produce by multiplying choices. A correct count is harder: you must show that every valid object is counted and that each is counted the intended number of times. This unit develops those checks before treating formulas as tools.
Preparation: arithmetic with nonnegative integers and fractions; sets, subsets, unions/intersections, Cartesian products and functions; direct arguments and counterexamples. The existing Mathematical Reasoning and Proof material provides these foundations. This course applies them and does not replace its unfinished full sequence. No calculus, probability or software is assumed.
The proposed weeks-1–2 allocation is 14 hours: four teaching/guided, three independent practice/corrections, two homework, two quiz/delayed work and three project. These are unpiloted design hours, not measured completion times. Work in four sessions. Attempt tasks before opening the explained answers and retain first attempts beside corrections. Written, typed or spoken-plus-transcript explanations are acceptable. Every diagram has a complete text equivalent; no colour or drawing is necessary.
Outcomes
- O1. Specify finite objects, equality, order, repetition and constraints before counting.
- O2. Justify disjoint-sum and product arguments, recognizing unequal branch counts.
- O3. Build a bijection and verify both directions, including empty boundary cases.
- O4. Control overlap using complements/two-set inclusion-exclusion and justify division only with constant fibres.
- O5. Derive ordered-selection and binomial counts and audit a constrained model by a second method.
Readiness
R1. List the Cartesian product {A,B}×{0,1,2}. Is (A,1) the same object as (1,A)? Explain using the declared coordinate meanings.
R2. For U={0,1,2,3,4,5}, X={0,2,4}, Y={2,3,4}, list X∩Y, X∪Y and U\X. Explain why |X|+|Y| need not equal |X∪Y|.
R3. The function f:{p,q,r}→{0,1} sends p,q to 0 and r to 1. Is it injective, surjective or bijective? Give exact witnesses.
R4. Evaluate 5·4·3 and 5·4·3/(3·2·1). Explain why the second expression is an integer without treating that numerical fact as a proof that it counts any particular objects.
Session A. Define a countable object and partition the work
A1. Equality is part of the model
For a finite set S, |S| is its number of distinct elements. Repeating a name in a listing does not create another set element: {A,A,B}={A,B}. An ordered pair can distinguish positions even when the entries come from the same alphabet: (A,B)≠(B,A) if A≠B. An unordered two-element selection {A,B} does not record that order.
Before calculating, state:
- What information specifies one object?
- When are two descriptions the same object?
- Which labels/positions matter, and may labels repeat?
- Which combinations are valid?
For a fictional display record (letter,digit,flag), use letters {A,B,C}, digits {0,1,2,3} and flags {off,on}. The components are labelled positions. A0-off and A0-on differ; A0-off written twice is still one record. Leading zero is allowed because the digit is a label, not a decimal number's leading digit. Counting a differently specified object could give a different correct answer.
A2. The sum rule needs disjoint cases
If finite S is partitioned into disjoint sets S₁,…,S_r, then |S|=Σ|S_i|. A partition covers every member and places each in exactly one part. Listing all parts therefore neither misses nor repeats an object. Empty parts contribute zero.
For ordered pairs (a,b) from {1,2,3} with a<b, partition by a. There are 2 pairs when a=1, 1 when a=2 and 0 when a=3, giving 3 in total: (1,2),(1,3),(2,3). Multiplying “three first choices by two second choices” would count 6 and ignore that the available second choices vary.
For any finite universe U and forbidden subset F⊆U, U is partitioned into F and U\F. Thus |U\F|=|U|−|F|. The universe and containment condition matter. You cannot subtract a count of forbidden descriptions that includes objects outside the universe or duplicates the same forbidden object.
Diagram A, text equivalent. A branching list starts with first labels 1,2,3. Under 1 are second labels 2,3; under 2 is 3; under 3 are no labels. There are three leaves. Branches have sizes 2,1,0, so adding those sizes is justified and using one uniform factor is not.
G1. List and count ordered pairs (a,b) from {1,2,3,4} satisfying a<b. Partition once by the first coordinate and once by the second. Explain why both counts describe the same six objects.
G2. A set U contains the integers 1 through 30. Let F be the multiples of 5 in U. Count U\F and state why zero and 35 must not be included in the forbidden count.
Session B. Products and bijections
B1. Product counts can allow dependent choices
If A and B are finite, A×B consists of |A| disjoint rows, one for each first entry, with |B| pairs in every row. Hence |A×B|=|A||B|. Repeating this argument proves the product rule for a finite list of sets.
A more useful staged version says: if stage 1 has m₁ choices and every valid partial choice has exactly m_j extensions at stage j, then the number of completed histories is m₁⋯m_k. The allowed extensions need not be the same labels for each history, but their number must be the same at that stage. Also each counted history must represent exactly one intended object, without unintended duplication.
For a four-position string from five labels with no repeated label, the counts are 5,4,3,2, giving 120. The later options depend on earlier labels, but their numbers are uniform. This is not an assumption of probabilistic independence; no random experiment has been introduced.
The display records in A1 have 3·4·2=24 possibilities. If letter A forbids digit 0, A has 3·2=6 records and B,C each have 4·2=8, so there are 22. Equivalently subtract the two forbidden A0 records from 24. A product with one unchanged “four digits for every letter” factor would now be wrong.
B2. A bijection transports a count
A bijection f:S→T is a function that is both injective and surjective. It pairs every source with exactly one target, with no target repeated or omitted; therefore |S|=|T| for finite sets. An explicit inverse g:T→S with g(f(s))=s and f(g(t))=t proves those properties. A plausible encoding without a decoding check is not enough.
Let E={A,B,C,D} with that fixed ordering. Map a subset to a four-position bit string: write 1 when the corresponding label belongs to the subset and 0 when it does not. For instance {A,D} maps to 1001. Conversely read every 1 position to recover the subset. Both compositions return the starting object, so the 2⁴=16 bit strings count the subsets. In general an n-element labelled set has 2^n subsets by this bijection.
The empty set has exactly one subset, itself. There is exactly one length-zero sequence, the empty sequence. These are one object with no entries, not zero objects. From an empty alphabet there are zero sequences of positive length; length zero is handled separately, without relying on an unexplained 0⁰.
For length-n binary strings, complement every bit. The inverse is the same operation, pairing strings with k ones and strings with n−k ones. This bijection explains equal counts before a formula for either count is known.
G3. Count five-position strings from {A,B,C,D} (a) allowing repetition, (b) forbidding repetition. Then count three-position strings forbidding repetition. State why “four choices at every stage” is invalid in the last two cases.
G4. For E={A,B,C,D,E}, give the bit-string encoding and inverse for {B,D,E}. Count all subsets, nonempty subsets and subsets containing A. Explain why containing A leaves four free bit choices.
Session C. Divide only when every outcome has equally many descriptions
C1. Constant fibres justify division
For a function f:S→T, the fibre over t is the set of source objects that map to t. Suppose finite S,T and a surjective f have exactly d preimages for every target, with d a positive integer. The fibres partition S into |T| disjoint pieces of size d. Thus |S|=d|T| and |T|=|S|/d. Say what f forgets and prove its fibres are uniform before dividing.
Six distinct labels can fill three distinct positions without repetition in 6·5·4=120 ways. Forget the positions and retain just the three-label set. Every target set has 3·2·1=6 arrangements, so there are 120/6=20 unordered three-label selections.
The same shortcut can fail when repetition is allowed. There are 3²=9 ordered pairs from {A,B,C}. Forget order but retain multiplicities. The targets are AA,BB,CC,AB,AC,BC, where AB represents an unordered pair with one of each label. AA has one preimage, but AB has two, (A,B) and (B,A). The six targets have unequal fibre sizes, so 9/2 is not a count. Split equal-label and distinct-label pairs instead: 3+6/2=6. Here “retain multiplicities” matters: a pair AA has two entries, not the one-element set {A}.
Diagram B, text equivalent. The nine ordered pairs feed six target boxes. AA,BB,CC each receive one arrow. AB,AC,BC each receive two arrows. The total nine arrows cannot be divided by a common two because half the boxes have only one incoming arrow.
C2. Ordered selections and binomial coefficients
For integer n≥0, define n!=1·2·…·n when n≥1, and 0!=1. The latter matches the single empty ordering. Choosing k ordered, distinct labels from n gives
n(n−1)⋯(n−k+1)=n!/(n−k)!, 0≤k≤n.
For k=0 the product has no factors and counts one empty sequence. For k>n no such selection exists; do not use a negative factorial.
Define C(n,k), also written “n choose k,” as the number of k-element subsets of an n-element set. Forgetting order maps the ordered distinct k-tuples onto these subsets, each with k! preimages. Therefore
C(n,k)=n!/(k!(n−k)!), 0≤k≤n.
We define C(n,k)=0 for integer k<0 or k>n. In particular C(n,0)=C(n,n)=1 and C(0,0)=1. These counts concern finite sets of distinct labelled elements. Unlabelled repeated objects require a different representation analysis.
Choosing the unselected complement proves C(n,k)=C(n,n−k). Also, for n≥1 and 1≤k≤n−1, distinguish one label a: k-subsets either contain a, leaving k−1 chosen from the other n−1, or omit a, leaving k chosen from n−1. The cases are disjoint and exhaustive, giving
C(n,k)=C(n−1,k−1)+C(n−1,k).
This is a counting proof of Pascal's identity, not merely a numerical pattern. With our zero-outside convention it also works for k=0 and k=n. Finally partition all subsets by their size: Σ from k=0 to n of C(n,k)=2^n.
G5. From seven distinct tiles, count ordered selections of three and unordered selections of three. Describe the forgetful map and prove the fibre size. Evaluate C(7,0), C(7,7), C(7,8) and C(0,0) by meaning, not by invalid factorial manipulation.
G6. Count three-element subsets of {A,B,C,D,E,F} by splitting on whether A is present. Verify Pascal's identity numerically here, and explain a bijection between three-element subsets of a seven-element set and its four-element subsets.
Session D. Overlap, restrictions and a reproducible audit
D1. Subtract the overlap once
For finite subsets X,Y of a common universe, split their union into the disjoint pieces X\Y, X∩Y and Y\X. In |X|+|Y| the intersection is counted twice, giving
|X∪Y|=|X|+|Y|−|X∩Y|.
If X and Y are forbidden events, the allowed count is |U|−|X|−|Y|+|X∩Y|. Adding back the intersection repairs subtracting those objects twice. “Or” is inclusive; “exactly one” is a different set, with size |X|+|Y|−2|X∩Y|.
For length-four binary strings, let X mean “starts with 1” and Y mean “ends with 1.” Counts are |X|=8, |Y|=8, |X∩Y|=4. Thus 12 start or end with 1, 8 satisfy exactly one condition, and 4 satisfy neither. The middle two bits are free in each fixed-endpoint case. Do not add 8+8 as if the sets were disjoint.
D2. Encode first, enumerate second
A complete enumeration can prove a count for a genuinely finite specified instance, if the generation covers every candidate and the equality/filter rule is correct. It does not by itself prove a formula for arbitrary n. A program that counts the wrong representation exactly still answers the wrong question.
An auditable manual or computational procedure should state the finite universe, list/generate each candidate once, apply the exact constraints, retain a canonical representation if duplicates are possible, and compare with a second derivation. For small cases, show the actual list. For larger cases, supply a reason for coverage and uniqueness instead of trusting an unexplained output. No programming is required in this unit; the author/reviewer use exact enumeration to check these supplied finite examples.
Diagram C, text equivalent. A universe splits into four labelled regions: X only, both X and Y, Y only, and neither. Their counts in the binary-string example are 4,4,4,4. The union includes the first three regions; exactly one includes only the first and third. These descriptions completely specify the diagram without colour.
Independent practice
I1. A record chooses one of three shapes, one of four textures and one of two orientations. Count all records. If one specified shape forbids one specified texture, count the remaining records by subtraction and by shape cases.
I2. Count four-position strings from {A,B,C,D,E} with no adjacent equal labels; repetition at nonadjacent positions is allowed. Compare with the count having no repeated labels anywhere, and give a string counted only in the first family.
I3. Count five-element subsets of a nine-element set, then count those containing one specified element. Explain the bijection that justifies the latter reduction.
I4. List the unordered pairs retaining multiplicity from {A,B,C,D}. Count them by splitting equal and distinct entries; explain why dividing all 16 ordered pairs by 2 fails.
I5. Among integers 1 through 60, count those divisible by 4 or 6, those divisible by exactly one of 4 and 6, and those divisible by neither. Explain the overlap count.
I6. Among six-position binary strings, count those with at least one 1, those with exactly two 1s, and those with an even number of 1s. Give a bijection proving the last count without merely listing the even binomial coefficients; identify its inverse.
I7. From eight distinct labels, choose a three-element set containing at least one of two specified labels. Count by complement and by exactly-one/exactly-two cases, and explain why your cases do not overlap.
I8. In three ordered positions choose distinct labels from {A,B,C,D,E,F}. Count objects with A present. Now forget order. Is dividing your count by 6 justified after imposing that constraint? Prove your answer using fibre sizes.
Homework: prove or repair
H1. Prove the staged product rule by partitioning partial histories, and state its hypotheses precisely. Give a two-stage example with unequal second-stage counts where multiplying the first-stage count by one guessed second-stage count fails.
H2. Prove the constant-fibre division rule. Explain why surjectivity and a positive common fibre size matter. Give an explicit finite function with unequal nonempty fibres, and show why blindly dividing by one of their sizes gives a wrong target count.
H3. Give combinatorial proofs of complement symmetry, Pascal's identity and Σ C(n,k)=2^n. Treat n=0 and endpoint choices explicitly. A factorial calculation may be a check, but is not the requested combinatorial explanation.
H4. Critique “we found 120 descriptions, forgot the order, and divided by 6; therefore there must be 20 valid outcomes.” State the missing map/domain/constraint assumptions, give one case where the conclusion is justified, and a concrete constrained case where a proposed six-to-one map is not justified. Distinguish counting from a claim of equal probability.
Formative quiz: 30 points
Q1 (8). A four-character record uses symbols {A,B,C,D,E,F}; repetition is allowed. Count records beginning with A or ending with F, and count those satisfying exactly one of these conditions. Explain the overlap rather than merely quoting a formula.
Q2 (8). From nine distinct objects choose a four-element subset that contains a specified object A and excludes a different specified object B. Count the subsets, and then count ordered four-position descriptions of exactly those subsets. Justify any division/multiplication by a factorial with the explicit map and fibre size.
Q3 (8). Count five-position strings from {0,1,2,3} with no adjacent equal symbols. Then impose that the first symbol is 0 and the last is also 0. Count the restricted strings using disjoint cases or an explicit finite enumeration argument. Explain why the unrestricted last-stage factor cannot simply remain 3 after fixing that endpoint.
Q4 (6). For ordered pairs from {A,B,C,D,E} with repetition allowed, forget order but retain multiplicity. Count target objects and identify every possible fibre size and how many targets have each. Explain why 25/2 is invalid and why the resulting count alone supplies no probabilities.
Project: constrained display configurations, 40 points
Six distinct fictional tiles carry labels A,B,C,D,E,F. A configuration records (S,primary,secondary,mode), where S is a three-element subset, primary and secondary are different members of S, and mode is Plain or Highlight. A valid S contains at least one of A,B and does not contain both E,F. Plain is always available; Highlight is available exactly when A∈S. Tile order within S is not recorded. The two roles are initially distinct. These are design rules, not observations of how often choices occur.
P1 (10). Specify equality of configurations and count valid three-element sets S. Show two justified methods: a partition by whether A is present and a complement/two-forbidden-set argument. Give the counts with A and without A; check all boundary/overlap meanings.
P2 (10). Count complete configurations. Show why a single uniform “two modes” multiplier would fail. Recount by choosing Plain versus Highlight first, explaining why those cases are disjoint and exhaustive.
P3 (10). Add the rule primary≠A, leaving all other rules unchanged. Count complete configurations and explain how the role-choice count changes between sets with A and sets without A. Check your total a second way by counting the configurations removed from the original family. State whether one common retention fraction applies to both set classes, with a justification; an arithmetic ratio of the final totals alone is not a uniform-fibre argument.
P4 (10). In each of the original and modified models, now forget which of the two marked tiles was primary or secondary, but retain S, the unordered two-tile marked set and mode. Count the resulting targets. For the modified model, give every possible fibre size and the number of targets of each size. Explain whether dividing by 2 is justified in each model. Finish with a short audit explaining what complete enumeration can verify here and what it cannot establish about a real interface's meanings or the probabilities of configurations.
Delayed follow-through
D1. After a pause, use five distinct labels A,B,C,D,E. Choose a two-element set containing A, choose one of its members as a marked tile, and choose Plain or Highlight, with Highlight allowed only when the marked tile is A. Count complete objects in two ways. Explain why counting sets first and multiplying by four is invalid.
D2. Preserve and correct one unsupported counting step from your work, then test the corrected rule on changed data. If none occurred, critique “all histories have the same number of choices, so forgetting information always leaves equal fibres.” Supply a finite counterexample. This is a revision activity, not evidence of certified mastery.
Feedback and next step
Find the first mismatch: wrong objects, swapped role meanings, unmentioned repetition, missing empty case, overlapping cases treated as disjoint, unequal branch counts, an encoding with no inverse, or division by a nonuniform multiplicity. Repair that step before recalculating. A second method should check the model, not merely repeat the same unjustified assumption in new notation.
Unit 2, structured counting and unavoidable repetition, is available in this reader. General multinomial theory, many-set inclusion-exclusion, pigeonhole arguments, recurrences and graphs are not claimed complete here. Neither a correct finite enumeration nor an assistant review measures learner transfer, rubric reliability or real-world sampling probabilities. Specialist appraisal, learner attempts/timing, rendered reading/navigation and device/assistive-technology checks remain outstanding.
Source and original-material note
The exposition, fictional examples, diagrams described in words, questions and keys are original. Optional primary topic reference: MIT OpenCourseWare, Lecture 16: Counting Rules I, checked 4 November 2026. Its terms and license apply to its material. No external exercise, passage, image, transcript or video is reproduced; no affiliation, endorsement or course equivalence is implied.