Sub topic 8
Number, Consecutive Integer, and Money Problems
This chapter assumes you can solve a one-variable linear equation, including equations with parentheses and variables on both sides. It also assumes you know how to define a variable with units and translate phrases such as "3 more than" or "twice a number." The goal here is to apply that workflow to three problem families that appear constantly: number puzzles, consecutive integers, and money (mixtures of prices and quantities).
The Working Model
Each problem in this chapter follows the same pipeline:
- Identify what is asked and what is given.
- Define a variable with meaning and units.
- Express every other unknown in terms of that variable.
- Write one equation from the relationship the problem states.
- Solve, then check against the original words.
The key idea is step 3. Almost every problem here has two or more unknown quantities, but they are linked. If you can write the second unknown using the first, you need only one variable and one equation.
Number Problems
A number problem describes one or more unnumbered quantities through relationships between them. The work is mostly translation.
Example. Three times a number, decreased by 7, equals the number increased by 9. Find the number.
Let n be the number. "Three times a number, decreased by 7" is 3n - 7. "The number increased by 9" is n + 9. The word "equals" gives the equation:
3n - 7 = n + 9
Subtract n from both sides: 2n - 7 = 9. Add 7: 2n = 16. So n = 8.
Check against the words: three times 8 is 24, and 24 decreased by 7 is 17. The number increased by 9 is 17. Both sides agree.
Two numbers with a sum
When two numbers have a known sum, define one variable and write the other as "total minus the first." If two numbers add to 30 and one is 6 more than the other, let x be the smaller number. The larger is x + 6, so:
x + (x + 6) = 30
This gives 2x = 24 and x = 12. The numbers are 12 and 18.
If the problem gave the sum but no other link, you would have an underdetermined problem. A single equation cannot fix two unknowns, which is why the second relationship matters.
Consecutive Integer Problems
Consecutive integers are integers that follow one another with a difference of 1, such as 14, 15, 16. The standard representations are:
| Type | Starting at n | Spacing |
|---|---|---|
| Consecutive integers | n, n + 1, n + 2 | 1 |
| Consecutive even integers | n, n + 2, n + 4 | 2 |
| Consecutive odd integers | n, n + 2, n + 4 | 2 |
Even and odd integers use the same expressions. The difference is what you assume about n: for even integers, n must be even, and for odd integers, n must be odd. This is a common source of confusion. Do not write n + 1 for the "next even integer," because that would be odd.
Example. The sum of three consecutive integers is 72. Find them.
Let n be the smallest integer. The three integers are n, n + 1, and n + 2.
n + (n + 1) + (n + 2) = 72
So 3n + 3 = 72, which gives 3n = 69 and n = 23. The integers are 23, 24, 25. Their sum is 72.
Example with even integers. The sum of the squares... is out of scope for linear equations, so consider this one: the sum of three consecutive even integers is 108. Let n be the smallest. Then:
n + (n + 2) + (n + 4) = 108
3n + 6 = 108, so 3n = 102 and n = 34. The integers are 34, 36, 38. All are even, as required.
Choosing the middle as the variable
For an odd count of integers, centering the variable can simplify the algebra. Let m be the middle of three consecutive integers: m - 1, m, m + 1. The sum is 3m, because the offsets cancel. For a sum of 72, m = 24, which matches the result above.
# Three consecutive integers summing to 72, two ways.
total = 72
# Smallest-as-variable: n + (n+1) + (n+2) = 3n + 3
n = (total - 3) // 3
print(n, n + 1, n + 2) # 23 24 25
# Middle-as-variable: (m-1) + m + (m+1) = 3m
m = total // 3
print(m - 1, m, m + 1) # 23 24 25When no solution exists
Sometimes the equation gives a result that does not fit the type. Suppose the sum of three consecutive even integers is 100. Then 3n + 6 = 100, so n = 94/3, which is not an integer. The correct response is to report that no such integers exist, not to round. This is a check failing in the "words" sense even though the algebra was done correctly.
Money Problems
Money problems combine a count with a value per item. The core relationship is:
total value = (value per item) × (number of items)
Most money problems total several such products. The unknown is usually a count, so the variable is "number of something."
Example. A theater sells 10 tickets in total. Adult tickets cost $8 and child tickets cost $5. The total is $62. How many of each were sold?
Let a be the number of adult tickets. Then 10 - a is the number of child tickets, because the counts add to 10. The adult revenue is 8a dollars and the child revenue is 5(10 - a) dollars:
8a + 5(10 - a) = 62
Distribute: 8a + 50 - 5a = 62, so 3a + 50 = 62, which gives 3a = 12 and a = 4. There are 4 adult tickets and 6 child tickets.
from fractions import Fraction
# 10 tickets total, adult $8, child $5, total $62. Let a = number of adults.
# 8a + 5(10 - a) = 62 -> 3a + 50 = 62
a = Fraction(62 - 50, 3)
print(a, 10 - a) # 4 6
print(8 * a + 5 * (10 - a) == 62) # TrueUsing Fraction keeps the arithmetic exact. The final line is the check from the original wording: 4 adult tickets at $8 is $32, 6 child tickets at $5 is $30, and $32 + $30 = $62.
A table organizes the unknowns
When a money problem has more than two kinds of items, a small table keeps the quantities straight. Fill in the count and the value per item, then multiply.
| Item | Count | Value each | Total value |
|---|---|---|---|
| Adult ticket | a | 8 | 8a |
| Child ticket | 10 - a | 5 | 5(10 - a) |
| Sum | 10 | 62 |
The last column is what you add. The count column is what you use to define the second quantity.
Coins
Coin problems work the same way, but you must convert to a common unit. Suppose you have 12 coins, all nickels (5 cents) and dimes (10 cents), worth 90 cents. Let d be the number of dimes. Then there are 12 - d nickels:
10d + 5(12 - d) = 90
5d + 60 = 90, so 5d = 30 and d = 6. There are 6 dimes and 6 nickels. Notice that the equation stays in cents. Mixing dollars and cents is a frequent error; write 0.10d + 0.05(12 - d) = 0.90 if you prefer dollars, and keep it consistent throughout.
Money problems with a relationship instead of a total count
Sometimes the count is not given directly. For example: "Maria has twice as many quarters as dimes. The coins total $4.50." Let d be the number of dimes. Then she has 2d quarters.
0.10d + 0.25(2d) = 4.50
0.10d + 0.50d = 4.50, so 0.60d = 4.50 and d = 7.5. Dimes must be a whole number, so this problem has no valid solution as stated. The problem was set up correctly, and the check catches the issue. Changing the total to $4.80 gives d = 8, which works.
Common Errors in This Chapter
- Defining a variable without meaning. Writing "let x = tickets" does not say which tickets. Write "let a = number of adult tickets."
- Using n + 1 for consecutive even or odd integers. Use n + 2.
- Forgetting the parentheses on the second item. Writing 5 · 10 - a instead of 5(10 - a) changes the meaning.
- Mixing units. Do not combine cents and dollars in one equation.
- Checking the equation instead of the words. Substituting into 3a + 50 = 62 only confirms the algebra. Substitute into the story: count tickets and add the dollars.
- Accepting non-integer counts. A count of 7.5 dimes means the setup, the data, or the problem is flawed.
Summary of Setups
| Problem type | Variable | Other unknowns | Equation is built from |
|---|---|---|---|
| Number | The unknown number | Often none | The stated relationship |
| Consecutive integers | Smallest integer, n | n + 1, n + 2 (or +2 steps) | The stated sum or relation |
| Money with a total count | Count of one kind | Total count minus the first | Sum of value × count |
| Money with a count relationship | Count of the base kind | Multiple of the base | Sum of value × count |
Exercise
A collection has 15 coins, all dimes and quarters, worth $2.70. How many of each are there? State the answer with units and check it against the words.
Show answer
Let d be the number of dimes. Then there are 15 - d quarters. In dollars: 0.10d + 0.25(15 - d) = 2.70. Distribute: 0.10d + 3.75 - 0.25d = 2.70, so -0.15d = -1.05 and d = 7. There are 7 dimes and 8 quarters. Check: 7 dimes are $0.70, 8 quarters are $2.00, the total is $2.70, and 7 + 8 = 15 coins.
Exercise
The sum of three consecutive odd integers is 87. Find the integers. Then explain why the sum of three consecutive odd integers can never be an even number.
Show answer
Let n be the smallest odd integer. Then n + (n + 2) + (n + 4) = 87, so 3n + 6 = 87, 3n = 81, and n = 27. The integers are 27, 29, 31, and 27 + 29 + 31 = 87. The sum of three odd numbers is odd, because two odds make an even and adding a third odd makes it odd again. In the equation, 3n + 6 with n odd is odd plus even, which is odd.