Unfinished learning resource · Units 1–8 available · Whole-course validation unfinished

Unit 1. Explained answers and formative rubrics

Unit 1 explained answers · unfinished learning resource · TMP-SCI-074. Attempt the Unit 1 tasks before consulting these explanations. Equivalent correct listings, bijections and partitions are valid. Explain the objects and multiplicities, not just the arithmetic. The 30-point quiz and 40-point project are separate unpiloted formative groups, not a semester grade, degree credit or certification.

Readiness

R1. The product is {(A,0),(A,1),(A,2),(B,0),(B,1),(B,2)}. There are six pairs. (A,1) and (1,A) are not equal ordered pairs; moreover (1,A) is not in the declared product because its first entry is not A or B and its second is not a permitted number. Coordinate roles are part of the object.

R2. X∩Y={2,4}, X∪Y={0,2,3,4}, and U\X={1,3,5}. The values |X|=|Y|=3 give sum 6, but the union has four elements: 2 and 4 occur in both sets and were counted twice by addition.

R3. f is surjective because 0 and 1 are both attained. It is not injective because p≠q but f(p)=f(q)=0, and therefore not bijective. This is still a valid function: one output per input does not prohibit different inputs sharing an output.

R4. The values are 60 and 10. The denominator is 6 and 60 is divisible by 6. That proves this arithmetic result is integral; it does not identify a set, a forgetful map or uniform fibres. A counting interpretation needs those additional arguments.

Guided tasks

G1. The pairs are (1,2),(1,3),(1,4),(2,3),(2,4),(3,4). By first coordinate the counts are 3+2+1+0=6; by second they are 0+1+2+3=6. Both partitions assign each valid pair to exactly one coordinate value and cover all possibilities.

G2. F={5,10,15,20,25,30} has six elements, so |U\F|=30−6=24. Zero and 35 are multiples of 5 but are not in the stated universe. Counting them as forbidden members of U would subtract objects that were never included.

G3. Allowing repetition gives 4⁵=1024 five-position strings. Forbidding all repetition in five positions gives zero because there are only four available distinct labels. For three positions the count is 4·3·2=24. Once a label is used it is unavailable later, so the repeated-use product 4·4·… is not the intended process.

G4. With the fixed A,B,C,D,E order, {B,D,E} encodes as 01011. The inverse returns the labels at 1 positions, recovering exactly {B,D,E}. All subsets: 2⁵=32; nonempty: 32−1=31; containing A: 2⁴=16. Fixing the first bit to 1 leaves each of four other bits independently free as a choice count, not a probabilistic assumption.

G5. Ordered distinct three-selections: 7·6·5=210. Forget order to map each tuple to its three-element set. Every such set is attainable and has 3!=6 permutations, so unordered selections number 210/6=35. C(7,0)=1 for the empty subset, C(7,7)=1 for the full set, C(7,8)=0 because no such subset exists, and C(0,0)=1 for the empty set's empty subset.

G6. Sets containing A choose their remaining two elements from five, giving C(5,2)=10. Sets omitting A choose three from five, giving C(5,3)=10. The total is 20=C(6,3), checking Pascal's identity. For seven elements, map any three-subset to its four-element complement. Taking the complement again returns the original set, proving a bijection and equality C(7,3)=C(7,4)=35.

Independent practice

I1. There are 3·4·2=24 records. The forbidden shape-texture pair has two orientations, so subtraction gives 22. By shape: the restricted shape has 3·2=6 records and the other two have 4·2=8 each, giving 6+8+8=22. The forbidden condition is not a ban on that texture for every shape.

I2. The first position has 5 choices and every later position has 4 choices, excluding only the immediately preceding label. Hence 5·4³=320. No repetition anywhere gives 5·4·3·2=120. ABAC has no equal adjacent labels but repeats A, so it belongs only to the first family. Excluding the immediately previous label is not the same as excluding every previously used label.

I3. C(9,5)=126. For subsets containing the specified element, remove it to get a four-subset of the other eight elements, giving C(8,4)=70. The inverse adds the specified element back; both directions preserve the restrictions and undo each other.

I4. Targets are AA,BB,CC,DD,AB,AC,AD,BC,BD,CD, ten objects in total. Equal-entry pairs give four targets with one preimage each. Distinct-entry pairs give C(4,2)=6 targets with two preimages each. Thus 16=4·1+6·2, and 16/2=8 would undercount. The notation AA retains two copies, not a singleton set.

I5. There are 15 multiples of 4, 10 multiples of 6 and five common multiples, namely 12,24,36,48,60. A number divisible by both is divisible by 12, and these five exhaust the common values in U. Inclusive-or count: 15+10−5=20. Exactly one: 15+10−2·5=15. Neither: 60−20=40. Distinguish removal of one duplicate copy in a union from exclusion of the intersection entirely.

I6. At least one 1: 2⁶−1=63. Exactly two 1s: choose the two positions, C(6,2)=15. For the last count, flip only the first bit; this changes the number of 1s by one, so it maps even-parity strings to odd-parity strings and vice versa. The same flip is its inverse. Hence the two classes have equal size and partition the 64 strings, giving 32 each. The fixed length is positive; the empty-string case would not admit a first-bit flip.

I7. Complement method: C(8,3)−C(6,3)=56−20=36. By cases, exactly one specified label gives 2·C(6,2)=30, and exactly two gives C(6,1)=6. These cases are disjoint because the number of specified labels cannot simultaneously be one and two; together they cover “at least one.” Their total is 36.

I8. Place A in one of three positions and fill the other two in order from the remaining five distinct labels: 3·5·4=60. Equivalently 6·5·4−5·4·3=120−60=60. Forgetting order yields three-subsets containing A. Every valid target still has all six permutations in the valid source domain, because “contains A” is unaffected by order. Dividing by 6 is therefore justified and gives 10=C(5,2). A position-specific restriction would need a fresh fibre check.

Homework

H1. Let H_j be the valid histories through stage j and let H_0 contain the single empty history. If every member of H_(j−1) has exactly m_j extensions, H_j partitions by its preceding history into |H_(j−1)| pieces of size m_j. Therefore |H_j|=|H_(j−1)|m_j. Repeated substitution gives the product through the final finite stage. To count intended outcomes, also require a one-to-one correspondence between complete histories and outcomes. Zero available choices give zero completed histories. Counterexample: choose a∈{1,2,3}, then b>a from that same set. The second-stage counts are 2,1,0; there are three pairs, not 3·2=6. State a finite number of stages, valid partial histories and uniform counts at each stage, not identical allowed labels or random independence.

H2. Each source element belongs to exactly the fibre of its output; different outputs' fibres are disjoint. Surjectivity ensures every declared target has a nonempty fibre. If all have the same positive integer size d, summing fibre sizes gives |S|=d|T|, so division by d is valid. If some targets are never reached, counting only nonempty fibres counts the image, not necessarily the whole codomain. If d=0, division is undefined and the argument cannot recover |T|. Example f:{a,b,c}→{0,1}, with a,b↦0 and c↦1, has fibres of sizes 2 and 1. There are two targets, not 3/2 or 3/1.

H3. Complementation is its own inverse between k-subsets and (n−k)-subsets, proving symmetry. For n≥1, split k-subsets according to inclusion of a fixed label: the included part corresponds bijectively to (k−1)-subsets of the remaining n−1 labels, the excluded part to k-subsets. This gives Pascal's identity. For k=0 or k=n one case has no objects and the other one; the zero-outside convention captures this. For n=0 Pascal's n−1 formula is not asserted, but C(0,0)=1 and complement symmetry hold. Finally every subset has exactly one size k, so the sum of C(n,k) over k=0,…,n counts all subsets. The bit-string bijection gives 2^n, including the single empty subset for n=0.

H4. The claim needs a precisely specified finite source of valid descriptions, a target outcome set, a surjective forgetful map and exactly six valid source descriptions for every target. For ordered triples of distinct labels from six labels, forgetting order gives three-subsets and every target has six permutations; 120/6=20 is justified. If valid triples must instead have A first, there are 5·4=20 descriptions and ten target sets containing A, each with two valid tail orders. A proposed six-to-one map is false in that constrained domain; 20/6 is invalid. More generally, imposed restrictions may not be preserved by rearrangement. Even a correct outcome count supplies no probabilities without a specified random sampling mechanism and its weights; different generation procedures can make target frequencies unequal.

Quiz key and rubric: 30 points

Q1 (8). There are 6³=216 records beginning with A and 216 ending with F. Fixing both endpoints leaves two free positions, so overlap=6²=36. Inclusive-or count is 216+216−36=396. Exactly one gives 216+216−2·36=360. Rubric: 2 for the two event counts, 2 for the justified overlap, 2 for the union, 2 for exactly-one reasoning and count. Repetition is allowed, including additional A or F in the middle positions.

Q2 (8). Include A and exclude B, then choose three of the other seven labels: C(7,3)=35 subsets. Each target has exactly 4!=24 ordered permutations because every ordering retains inclusion of A and exclusion of B. Therefore there are 35·24=840 valid ordered descriptions. The map forgets all four positions and retains the set, and every permitted set is reached. Rubric: 2 for the correct reduced set and count, 2 for ordered count, 3 for explicit map/surjectivity/constant fibre argument, 1 for keeping membership restrictions independent of ordering.

Q3 (8). Unrestricted no-adjacent-equal count is 4·3⁴=324. With first and last fixed to 0, name the second symbol a≠0 (three choices). If the middle/third symbol is 0, the fourth is any of the three nonzero symbols, giving 3·1·3=9. If the third symbol is nonzero and different from a, there are two choices for it; the fourth must be nonzero and different from the third, giving two choices. This case contributes 3·2·2=12. Total 21. The cases are disjoint and exhaustive; the final fixed 0 imposes a condition on the preceding symbol, so a free-stage factor cannot remain unchanged. Rubric: 2 for 324 with uniform-choice justification, 4 for the complete two-case derivation and 21, 2 for explanation of the endpoint dependency. An exhaustive 21-item listing with a coverage argument is also acceptable.

Q4 (6). There are five equal-label targets with one preimage each and C(5,2)=10 distinct-label targets with two each, for 15 targets. The check is 5·1+10·2=25 ordered sources. Fibres are not uniformly two, so 25/2 is invalid. No sampling rule has been specified, so neither 1/25 nor 1/15 is automatically a probability of an outcome. Rubric: 2 for target count, 2 for both fibre sizes/counts and check, 1 for failed-division explanation, 1 for the probability distinction.

Project key and rubric: 40 points

P1 (10). Two configurations are equal exactly when their set S, primary, secondary and mode all match; reordering a listing of S alone changes nothing. With A present, choose two of B,C,D,E,F: C(5,2)=10, but exclude the pair E,F, giving 9 sets. Without A, B is required; choose two from C,D,E,F, excluding E,F, giving C(4,2)−1=5. Total 14. Alternatively U is all C(6,3)=20 three-subsets. The forbidden no-A-or-B class has C(4,3)=4 members; the forbidden both-E-and-F class has four choices for the third label. Their overlap consists of E,F plus C or D, two members. Allowed count is 20−4−4+2=14. Rubric: 2 for equality/object definition, 3 for the with-/without-A partition, 3 for correct forbidden counts/overlap, 2 for total and justification that neither method misses or duplicates sets.

P2 (10). Each three-set has 3·2=6 ordered role pairs. The nine sets containing A have two modes; the five without A have one. Total 9·6·2+5·6·1=108+30=138. A uniform two-mode multiplier would include forbidden Highlight configurations on five sets without A. Choosing mode first gives Plain: 14·6=84 and Highlight: 9·6=54; the mode labels distinguish the two disjoint classes and 84+54=138. Rubric: 2 for role count, 3 for correct conditional-mode count/138, 3 for the second mode-first count, 2 for uniform-product failure and partition justification.

P3 (10). For each set containing A, primary has two allowed choices and secondary has two remaining choices, including possibly A: four ordered role pairs. Such a set still permits both modes. For sets without A, all six role pairs remain and only Plain is available. Total 9·4·2+5·6=72+30=102. Relative to the original family, the retained fraction is 4/6 for A-containing sets and 6/6 for the others; there is no uniform retention factor justified across these branches. The numerical ratio 102/138=17/23 is not a new combinatorial division rule. A second check counts forbidden primary=A objects: 9 sets·2 secondary choices·2 modes=36; 138−36=102. Rubric: 3 for both role-count cases, 3 for conditional count/102, 2 for nonuniform-retention explanation, 2 for a coherent check such as removing the 36 forbidden configurations.

P4 (10). In the original model, forgetting roles maps each ordered pair to its unordered two-tile marked set. Each target has exactly two orientations and both are valid, so there are 138/2=69 targets. Directly: nine A-containing sets give 3 marked pairs·2 modes each, or 54; five A-free sets give 3 marked pairs·1 mode, or 15; total 69.

In the modified primary≠A model, every same target is still reachable. If the marked pair includes A, only the orientation making A secondary is valid. There are 9 sets·2 marked pairs including A·2 modes=36 such one-preimage targets. If the marked pair excludes A, both orientations remain: 9·1·2=18 targets from sets containing A and 5·3=15 from sets without A, total 33 two-preimage targets. Thus there are 36+33=69 targets and 36·1+33·2=102 ordered sources. Dividing 102 by 2 gives 51 and misses the one-preimage targets. Restricting a role before forgetting it did not remove a target here, but changed its multiplicity; that conclusion required the explicit reachability argument.

The audit should specify the finite source and target representations, exact constraints, and coverage/uniqueness of the enumeration. An exhaustive finite enumeration can verify 138,102 and the fibre histogram for this precise model; it does not establish an unknown real interface's treatment of labels or an unstated probability distribution. Rubric: 2 for original targets and uniform division, 3 for modified fibre sizes/counts, 2 for target/source checks and failed division, 3 for explicit reachability plus audit/model/probability limits. No code or diagram is required if the finite argument is clear.

Delayed follow-through

D1. The set is {A,x} for one of four other labels. If A is marked, there are two modes; if x is marked, only Plain is allowed. Hence 4·(2+1)=12. Alternatively Plain gives 4 sets·2 marks=8 and Highlight gives 4 sets·1 mark=4, again 12. Multiplying four sets by two marks by two modes would give 16 and count forbidden Highlight objects with x marked.

D2. A useful correction identifies the object set, the faulty step, its repair and a new check. For the fallback counterexample, choose two bits independently as counting choices: four histories 00,01,10,11, all generated by uniform two-stage counts. Forget them except for the answer to “is there at least one 1?” The target No has one preimage (00); Yes has three (01,10,11). Uniform history-generation counts did not imply uniform fibres of the later map. Reattempt with three bits to get fibres 1 and 7, checking that the corrected principle persists.

Feedback use

Credit a correct alternative method when it proves coverage and multiplicity. A lone count is insufficient where the prompt asks for a map, inverse, case partition or boundary explanation. Avoid repeatedly penalizing one arithmetic slip while ignoring sound subsequent reasoning, but flag a false universe, unjustified uniformity or unsupported probability claim separately. Correction plus changed-data checking is the goal; no rubric reliability or measured mastery has yet been established. Full-semester assessment remains unvalidated.