Introduction to Algebra: Star problems
Ten optional challenges to stretch your reasoning. Work on paper, use hints when you need them, and check the answer or full solution when you are ready. You can skip these problems and continue the course.
- 1 of 3 stars: Stretch
- 2 of 3 stars: Challenge
- 3 of 3 stars: Deep challenge
Stars indicate difficulty within this set.
0 of 10 completed · 0 skipped
Progress saved in this browser.
Progress can't be saved in this browser, so your choices last for this visit only.
-
Problem 1 Two machines, two orders
Difficulty: 1 of 3 stars, Stretch
Machine A doubles its input and then adds 3. Machine B triples its input and then adds a fixed number . Each output becomes the next machine's input.
(a) When , compare A followed by B with B followed by A, starting with the same arbitrary real number. Which result is larger, and by how much?
(b) Find every real value of for which the two orders give the same result for every starting number. Prove your answer.
- Hint 1
Name the starting number and write the output after each machine.
- Hint 2
When comparing the final expressions, check which terms cancel. Do not assume the starting number needs to be solved for.
Answer
For , A followed by B is always larger by 10. The two orders agree for every input exactly when .
Full solution
Let the starting number be .
A followed by B produces
B followed by A produces
For , the two outputs are and .
Their difference is 10, regardless of whether is positive, negative, zero, or fractional.
The input cancels from the comparison.
For general , the first output minus the second is
Therefore, the outputs agree precisely when , or .
Substitution gives in either order, verifying that this choice works for every real input.
If is any other value, the difference is a fixed nonzero number.
Then no starting number makes the outputs equal.
Writing an arbitrary input made it possible to prove a statement about all inputs at once.
Answer
For , A followed by B is always larger by 10. The two orders agree for every input exactly when .
Key idea
Simplifying a difference can reveal an input-independent relationship.
- Hint 1
-
Problem 2 Two erased numbers
Difficulty: 1 of 3 stars, Stretch
Five consecutive positive integers are written in increasing order. Two of them are erased. The remaining three numbers have sum 45.
Find every possible original block of five numbers and every erased pair that works. Prove that your list is complete.
- Hint 1
Write the original numbers as . Bound the smallest and largest possible remaining sums.
- Hint 2
After bounding , the three retained offsets from must have one of only three possible sums.
Answer
Block 12 through 16: erase 12 and 13. Block 13 through 17: erase 13 and 17, or erase 14 and 16. Block 14 through 18: erase 17 and 18.
Full solution
Let the smallest original number be .
The smallest possible sum of three retained numbers is
The largest is
Hence , giving
When , the retained offsets must sum to .
The maximum offset sum is , so the only retained numbers are 14, 15, and 16.
Erase 12 and 13.
When , the offsets must sum to 6.
If 0 is included, the other two distinct offsets must be 2 and 4.
If 0 is absent, the smallest possible sum is , giving the only other choice.
Thus retain 13, 15, 17 and erase 14, 16; or retain 14, 15, 16 and erase 13, 17.
When , the offsets must have the minimum sum 3, forcing .
Retain 14, 15, 16 and erase 17, 18.
Each listed retained triple sums to 45, and the bounds and offset cases exclude every other possibility.
Answer
Block 12 through 16: erase 12 and 13. Block 13 through 17: erase 13 and 17, or erase 14 and 16. Block 14 through 18: erase 17 and 18.
Key idea
A variable and two extreme cases can turn a large search into a few complete cases.
- Hint 1
-
Problem 3 A row controlled by one number
Difficulty: 1 of 3 stars, Stretch
Five positive integers are written in a row. The sums of neighboring pairs, from left to right, are 12, 17, 23, and 20.
(a) Find every possible value of the middle number. For each allowed value, explain how the entire row is determined.
(b) If the five numbers also have total 44, find the row.
- Hint 1
Call the first number . Use each adjacent sum to express the next number in terms of .
- Hint 2
Every entry must be a positive integer. Determine which entry gives the strongest upper bound on .
Answer
The middle number can be any integer from 6 through 16. All rows are for . With total 44, the row is .
Full solution
Let the first entry be .
The first pair sum makes the second entry .
The second pair sum makes the third
Continuing gives the row
The first entry is a positive integer, so .
Positivity of the second gives .
Positivity of the fourth would only require , and the third and fifth are already positive when .
Thus precisely the integers through are allowed.
Every one gives a valid row because the neighboring sums simplify to the required values.
The middle entry is , so it can be any integer from 6 through 16.
Conversely, choosing any such middle entry fixes and therefore all five entries.
Adding the entries gives .
For a total of 44, , yielding .
Its pair sums are , and its total is 44, confirming all the conditions.
Answer
The middle number can be any integer from 6 through 16. All rows are for . With total 44, the row is .
Key idea
Several unknown entries may depend on just one freely chosen variable.
- Hint 1
-
Problem 4 Which targets can the machine reach?
Difficulty: 2 of 3 stars, Challenge
A machine starts at 1. On each move, you may either double the current number or add 3. You may make any finite number of moves, including no moves.
Describe exactly which positive integers can appear. Prove both that the excluded integers are impossible and that every integer in your description can be reached.
- Hint 1
Track whether the current number is divisible by 3.
- Hint 2
For reachability, work backward from a proposed target. An even target can be halved; an odd target greater than 1 can first have 3 subtracted.
Answer
Exactly the positive integers that are not divisible by 3.
Full solution
Starting from 1, a number is never divisible by 3.
Adding 3 preserves its remainder upon division by 3.
Doubling also preserves nondivisibility: a number of the form doubles to , and a number of the form doubles to .
Neither result is a multiple of 3.
To show that every other positive integer is reachable, reverse the moves.
Start with any positive target not divisible by 3.
If it is even, halve it.
The result is positive, smaller, and still not divisible by 3; otherwise doubling it would have made the original target divisible by 3.
If the target is odd and greater than 1, it is at least 5, because 3 is excluded.
Subtract 3.
The result is an even positive integer, smaller than before and still not divisible by 3.
Repeat these backward steps.
The numbers strictly decrease while remaining positive, so the process must stop.
Every allowed number greater than 1 has a backward step, so it can stop only at 1.
Reversing the entire path uses only the permitted forward moves and reaches the original target.
Answer
Exactly the positive integers that are not divisible by 3.
Key idea
An invariant proves impossibility; a decreasing reverse process proves that the remaining cases are all possible.
- Hint 1
-
Problem 5 A score chosen by your opponent
Difficulty: 2 of 3 stars, Challenge
You choose an integer , which may be positive, negative, or zero. Your opponent then chooses one of the three numbers , , and . The chosen number is your score, and your opponent wants your score to be as small as possible.
(a) What is the greatest score you can guarantee, and which integer choices of achieve it?
(b) If you may instead choose any real number , what is the greatest score you can guarantee? Find all real choices that achieve it.
- Hint 1
Your guaranteed score is the smallest of the three expressions.
- Hint 2
Add the second and third expressions. Their sum is fixed, which gives a bound on how large their smaller value can be.
Answer
For integer , the greatest guaranteed score is 8, achieved only by . For real , it is , achieved only by .
Full solution
The second and third expressions always sum to
They cannot both exceed .
When is an integer, both expressions are integers, so at least one is at most 8.
This bounds the guaranteed integer score by 8.
At , the three expressions are 9, 8, and 9.
The opponent can choose 8, but cannot force anything lower, so the bound is attained.
Any other integer choice guaranteeing 8 would need and
These require and , leaving only the integer 5.
For a real choice, the fixed-sum bound is .
To attain it, both the second and third expressions must equal ; if one were greater, the other would be less.
Solving gives .
At this input, the first expression is , so the opponent's minimum is indeed .
The equality condition proves this real choice is unique.
Answer
For integer , the greatest guaranteed score is 8, achieved only by . For real , it is , achieved only by .
Key idea
A fixed sum limits the smaller quantity; equality conditions identify the best choice.
- Hint 1
-
Problem 6 One equation, many possible coefficients
Difficulty: 2 of 3 stars, Challenge
A positive integer is chosen, and then the equation is considered.
Find every ordered pair of positive integers that satisfies the equation. Your reasoning must cover arbitrarily large positive integers, not just a tested range.
- Hint 1
First rule out and . Then rewrite as .
- Hint 2
Subtract three copies of from both sides. Two positive integer quantities must have product 12.
Answer
The pairs are , , , , , and .
Full solution
If , the left side is , which is negative, while the right side is 9.
If , the left side is zero and the right side is 12.
Neither works.
Therefore every positive integer solution has .
Rewrite the right side as .
The original equation then says that copies of equal three copies of , plus 12.
Subtracting those three copies gives
Since is positive, must also be positive.
Both factors are positive integers.
The complete ordered factor pairs of 12 are .
Adding 3 to the first coordinate and 2 to the second gives exactly the six stated pairs.
Each listed pair has
Reversing the rewriting restores the original equation, so all six really work.
Conversely, every positive integer solution had to give one of these factor pairs, proving completeness without an arbitrary search limit.
Answer
The pairs are , , , , , and .
Key idea
Choosing a helpful repeated expression can turn an equation into a complete factor-pair search.
- Hint 1
-
Problem 7 The center is forced
Difficulty: 2 of 3 stars, Challenge
The nine numbers are to be placed once each in a square. Each of the three rows, each of the three columns, and both main diagonals must have the same sum.
(a) Prove that the center must be 14 and that every pair of opposite cells sums to 28.
(b) Prove that 2 cannot occupy a corner.
(c) Give one arrangement that satisfies all the conditions. You may describe it by its three rows.
- Hint 1
The sum of all nine entries determines each row sum. Add the four line sums passing through the center.
- Hint 2
If a corner contained 2, the two remaining entries in its row would have a fixed sum. Which unused pair could produce that sum?
Answer
The common line sum is 42, the center is 14, and opposite cells sum to 28. The number 2 cannot be a corner. One arrangement has rows , , and .
Full solution
The nine numbers total 126, so each row, column, and diagonal must sum to .
Let the center be .
Add the middle row, middle column, and both diagonals.
These four lines count each noncenter entry once and the center four times.
Their total is therefore .
It also equals , so and .
Each line through the center now has its other two entries summing to .
This proves the opposite-pair claim.
Suppose 2 were in a corner.
Its diagonally opposite corner would have to contain 26.
The two other entries in 2's row would sum to 40, and so would the two other entries in its column.
Among the available numbers, the only possible distinct pairs summing to 40 are 14 with 26, or 17 with 23.
But 14 is already the center and 26 is in the opposite corner; neither belongs in that row or column.
Both lines would therefore require 17 and 23.
Their noncorner cells are distinct, so this would repeat numbers, which is forbidden.
Finally, rows , , and use every number once.
Direct addition gives 42 for all three rows, all three columns, and both diagonals.
Answer
The common line sum is 42, the center is 14, and opposite cells sum to 28. The number 2 cannot be a corner. One arrangement has rows , , and .
Key idea
Counting the same entries through overlapping sums can force a hidden value before any search.
- Hint 1
-
Problem 8 Adding to two jars at a time
Difficulty: 3 of 3 stars, Deep challenge
Three labeled jars start empty. On each move, choose two different jars and add one counter to each of those two jars. You cannot remove counters. Any finite number of moves is allowed, including zero.
(a) Give a necessary and sufficient rule for a target triple of nonnegative integers to be reachable. Prove both directions of your rule.
(b) Apply your rule to , , and . For every reachable example, give the numbers of moves using each pair of jars.
- Hint 1
Each move adds two counters in total. If there are moves, how many counters can any one jar receive?
- Hint 2
If the target is reachable in moves, exactly moves omit the first jar. Those are the moves using the second and third jars.
Answer
A triple is reachable exactly when its total is even and no entry exceeds the sum of the other two. Only among the three examples is reachable: use pairs first-second 5 times, first-third 12 times, second-third 18 times.
Full solution
After moves, the total number of counters is , so must be even.
Each jar gains at most one counter per move, giving
With , these conditions say that no entry exceeds the sum of the other two.
They are necessary.
Now suppose the target satisfies both conditions.
Define , a nonnegative integer.
Use the second-third pair times, the first-third pair times, and the first-second pair times.
These are nonnegative integers by the assumed bounds.
Their sum is
The first jar then receives counters.
The same reasoning gives and for the other jars.
Performing the specified moves in any order constructs the target, including the all-zero target with no moves.
Thus the conditions are also sufficient.
For , the total is 70, so .
The pair counts are 5, 12, and 18 as stated.
For , the total is even but , so it fails the largest-entry condition.
The triple has odd total 51, so it is impossible.
Answer
A triple is reachable exactly when its total is even and no entry exceeds the sum of the other two. Only among the three examples is reachable: use pairs first-second 5 times, first-third 12 times, second-third 18 times.
Key idea
Necessary conditions become a complete solution only when a construction proves they are sufficient.
- Hint 1
-
Problem 9 A surprising replacement rule
Difficulty: 3 of 3 stars, Deep challenge
Five cards initially show . On a move, choose two cards showing and , discard them, and replace them with one card showing . Continue until one card remains.
(a) Prove that the final number is independent of the choices and order of moves, and find that number.
(b) Before any moves, you may replace exactly one of the five starting numbers with a different positive integer. The five starting numbers after this change must still be distinct. Find every such replacement that makes the final number 1439, and prove completeness.
- Hint 1
Add 1 to the replacement expression and look for a product.
- Hint 2
Track the product of one more than every current card number. For part (b), compare the new product with the original product.
Answer
The original final number is 719. Exactly three replacements give 1439 with distinct starting numbers: replace 3 by 7, replace 4 by 9, or replace 5 by 11.
Full solution
The key identity is , which follows by distributing the product.
Consider the product formed by adding 1 to every current card number and multiplying.
A move replaces the two factors and by the single factor , equal to their product.
Thus this tracked product never changes.
Initially it is
At the end, if the lone card shows , the product is simply .
Hence and , whatever choices were made.
For part (b), a final value of 1439 requires a tracked product of 1440, exactly twice the original.
If the original card is replaced by , the product changes by the factor .
That factor must be 2, so .
For , the required new values are respectively .
The first two repeat another starting card and are disallowed.
The other three preserve distinctness and double the product, so each works.
The forced equation for proves there are no additional replacements.
Answer
The original final number is 719. Exactly three replacements give 1439 with distinct starting numbers: replace 3 by 7, replace 4 by 9, or replace 5 by 11.
Key idea
A small change of expression can reveal a quantity preserved through a complicated process.
- Hint 1
-
Problem 10 Four additions and four doublings
Difficulty: 3 of 3 stars, Deep challenge
Start with the number 1. Make exactly eight moves: four moves of type A, which add 1, and four moves of type D, which double the current number. You may arrange the eight moves in any order.
(a) Find the smallest and largest possible final numbers, and prove your bounds.
(b) Find every move sequence that ends at 44. Write sequences from left to right in the order performed, and prove that your list is complete.
- Hint 1
The original 1 is doubled four times in every sequence. An added 1 is doubled only by the D moves after it.
- Hint 2
Each addition contributes one of to the final number. To reach 44, the four contributions must sum to 28. Split into cases according to whether a contribution of 16 occurs.
Answer
Minimum 20, from D D D D A A A A. Maximum 80, from A A A A D D D D. Exactly three sequences end at 44: A D A D D A A D; A D D A A A D D; D A A A D A D D.
Full solution
The original 1 contributes at the end.
Every added 1 contributes , where is the number of doublings still to come.
Thus the final number is 16 plus four contributions, each belonging to .
The minimum is , with all additions last.
The maximum is , with all additions first.
For a final value of 44, the four contributions must sum to 28.
At most one can be 16.
If there is one 16, the other three sum to 12.
If one of those is 8, the other two must be 2 and 2.
If none is 8, all three are at most 4, so all three must be 4.
This gives contribution groups and .
If there is no 16, all contributions are at most 8.
With at most two 8s, their sum is at most
Four 8s sum to 32.
Therefore there must be three 8s and one 4, giving .
A contribution specifies its addition's position relative to the four doublings: 16 means before all four, 8 after the first, 4 after the second, 2 after the third, and 1 after the fourth.
The three groups therefore give exactly the three stated sequences.
Each totals , and the exhaustive contribution cases prove no others work.
Answer
Minimum 20, from D D D D A A A A. Maximum 80, from A A A A D D D D. Exactly three sequences end at 44: A D A D D A A D; A D D A A A D D; D A A A D A D D.
Key idea
Track each contribution separately to replace an order-sensitive process with a short numerical classification.
- Hint 1