Sub topic 2
Matching a method to the topic area
This chapter assumes you know school arithmetic and algebra, and that you can work with factors, multiples, and remainders. TITA questions give no options, so you cannot test choices backward. Choose a method that produces the exact value.
Matching topics to methods
Identify the topic before you start calculating. The table below shows a typical starting method for each area.
| Topic area | Usual starting method |
|---|---|
| Divisibility and remainders | Cyclic remainders and modular arithmetic |
| Counting and arrangements | Casework, inclusion-exclusion, stars and bars |
| Work, speed, and ratio | One unknown with ratio units |
| Integer solutions | Bounds plus casework |
Setting up equations from the wording
Translate each phrase into a symbol before you calculate. For example, "twice a number exceeds another by 4" becomes 2x = y + 4. Count your unknowns against your independent equations. If unknowns outnumber equations, check whether the question needs the full system at all.
Using integer conditions and bounds
Integer conditions limit the search. For positive integers with x + y = 10, x can only be 1 to 9, so you check nine cases instead of an open range.
Casework and organised listing
Split the cases by one variable and list each case in order. The count of positive integer solutions to x + y + z = 10 can be checked by enumeration:
count = sum(1 for x in range(1, 10) for y in range(1, 10) for z in range(1, 10) if x + y + z == 10)
print(count) # 36This matches the stars-and-bars value C(9, 2) = 36.
Calculating accurately and efficiently
Reduce large powers with remainders. The remainder of 7^100 divided by 5 is pow(7, 100, 5), which prints 1. Keep fractions unsimplified until the final step, and recheck each multiplication.
Exercise
How many integers from 1 to 100 are divisible by 3 or 5?
Show answer
47. There are 33 multiples of 3 and 20 multiples of 5, and 6 multiples of 15 are counted twice, so 33 + 20 - 6 = 47.