Integers and the Number Line: 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 checkpoints
Difficulty: 1 of 3 stars, Stretch
Two checkpoints lie at and 12 on a number line. A marker is placed at an integer coordinate .
(a) Find every possible for which the sum of the marker's distances to the two checkpoints is 27.
(b) What is the smallest possible distance sum, and which integer coordinates attain it? Justify both answers.
- Hint 1
What is the distance between the checkpoints?
- Hint 2
A marker outside the interval adds the extra distance to the nearer checkpoint twice.
Answer
(a) or . (b) The minimum is 19, attained at every integer from through 12, inclusive.
Full solution
The distance between the checkpoints is
If the marker lies anywhere between them, its two distances split this 19-unit interval into two parts.
Their sum is exactly 19, regardless of where the marker is placed.
If the marker lies outside the interval, let be its distance from the nearer checkpoint.
Its distance from the farther checkpoint is then .
The sum is .
To reach a distance sum of 27, the extra 8 must be two copies of , so .
The marker can be 4 units left of , at , or 4 units right of 12, at 16.
These are the only possibilities: inside gives 19, and on either outside side the required distance determines a unique point.
Since outside points add a positive amount, the minimum is 19.
All 20 integers from through 12 attain it, including the two endpoints.
Answer
(a) or . (b) The minimum is 19, attained at every integer from through 12, inclusive.
Key idea
Distances to two fixed endpoints are constant between them and increase twice as fast outside.
- Hint 1
-
Problem 2 Five jumps, as close as possible
Difficulty: 1 of 3 stars, Stretch
Start at 0 on a number line. Make five jumps, of lengths 2, 4, 6, 8, and 10, using each length exactly once. Each jump may go left or right, and their order is unrestricted.
What is the smallest possible distance of the finishing point from 0? Give a set of directions that achieves it, and prove that no closer finish is possible.
- Hint 1
If every jump goes right, the finishing coordinate is 30. What happens when one jump is reversed?
- Hint 2
All jump lengths are even. Reversing a jump changes the finishing coordinate by twice its length.
Answer
The smallest distance is 2. For example, send jumps 2,4,8 right and jumps 6,10 left, finishing at .
Full solution
If all five jumps go right, the final coordinate is
Reversing a jump of length replaces a contribution of by , decreasing the endpoint by .
Since every jump length is even, each such decrease is a multiple of 4.
Thus every possible endpoint differs from 30 by a multiple of 4.
In particular, it cannot be 0: 30 is not a multiple of 4.
Also, every endpoint is even because it is a sum of signed even integers, so the endpoints 1 and are impossible.
These observations rule out every distance less than 2.
The distance 2 is achievable.
Direct jumps 2, 4, and 8 to the right, and jumps 6 and 10 to the left.
The coordinate is
Reversing all five directions instead finishes at 2.
The order of the jumps does not affect their total.
Answer
The smallest distance is 2. For example, send jumps 2,4,8 right and jumps 6,10 left, finishing at .
Key idea
Before searching for a construction, identify which changes are possible and use them to rule out smaller targets.
- Hint 1
-
Problem 3 When is the product negative?
Difficulty: 1 of 3 stars, Stretch
For an integer , form the product .
Find every integer that makes the product negative, and every integer that makes it zero. Explain your reasoning without expanding or multiplying out the product.
- Hint 1
The sign can change only when one of the three factors passes through zero.
- Hint 2
Mark , 1, and 5 on a number line, then count negative factors in each region.
Answer
Negative for every integer and for . Zero for .
Full solution
A product is zero precisely when at least one factor is zero.
Here this happens at , , or .
These three boundary values divide the remaining integers into four regions.
If , all three factors are negative.
Two negative factors multiply to a positive number, and the third makes the full product negative.
These are exactly the integers .
If , the factor is positive and the other two are negative.
There are two negative factors, so the product is positive.
If , the first two factors are positive and only is negative.
The product is negative, giving .
Finally, if , all three factors are positive.
Every integer lies either at one of the three boundaries or in one of the four regions.
The classification is therefore complete, and no large multiplication or expanded formula is needed.
Answer
Negative for every integer and for . Zero for .
Key idea
For a product, classify factor signs at their zero boundaries before doing any arithmetic.
- Hint 1
-
Problem 4 Flip two signs
Difficulty: 2 of 3 stars, Challenge
A board displays the five integers . In one move, choose any two different entries and reverse both of their signs. Their positions and absolute values stay unchanged. You may make any number of moves, including zero.
Find the greatest and least possible sums of the five displayed integers. Give moves that achieve each answer and prove the bounds.
- Hint 1
What can one move do to the number of negative entries?
- Hint 2
The sum of all five absolute values is fixed. To maximize the sum, make any unavoidable negative entry as small in absolute value as possible.
Answer
Greatest sum: 24, from . Least sum: , from .
Full solution
The number of negative entries starts at 3.
Flipping two positive entries increases that number by 2; flipping two negative entries decreases it by 2; flipping one of each leaves it unchanged.
Therefore the number of negative entries always remains odd.
This unchanged even-or-odd status is called a parity invariant.
The absolute values total
If all entries were positive, their sum would be 28, but the invariant prevents that.
There must be at least one negative entry, whose absolute value is at least 2.
Replacing a positive 2 by a negative 2 reduces the sum by 4, so no sum can exceed .
To achieve 24, flip the entries , then flip .
The board becomes .
For a minimum, each entry is at least the negative of its absolute value, so the sum is at least .
Flip the original positive entries 2 and 6 together to reach five negative entries.
This attains and respects the odd-negative invariant.
Answer
Greatest sum: 24, from . Least sum: , from .
Key idea
A restriction preserved by every move can prove that an apparently better arrangement is unreachable.
- Hint 1
-
Problem 5 Two absolute-value clues
Difficulty: 2 of 3 stars, Challenge
Two integers and satisfy and . Here denotes the distance of from 0.
Find all ordered pairs , and prove that none are missing. Ordered means that and count separately when and differ.
- Hint 1
If the numbers have the same sign, can the two given totals differ?
- Hint 2
With opposite signs, addition cancels the smaller absolute value against the larger.
Answer
, , , and .
Full solution
Neither integer can be zero.
If one were zero, both and would equal the absolute value of the other integer, contradicting 14 versus 6.
Nor can the two integers have the same sign: in that case adding them adds their distances from zero, again making both quantities equal.
The integers must therefore have opposite signs.
Let their larger and smaller absolute values be and .
Their absolute values sum to 14, while cancellation in their sum leaves a magnitude of 6.
Thus the two lengths have total 14 and difference 6.
Remove the extra 6 from the larger length.
The remaining total is 8, made of two equal smaller lengths, so and .
Either the 10 is positive and the 4 negative, or the 10 is negative and the 4 positive.
Each choice permits both orders.
These give exactly the four listed pairs.
Every pair has absolute values totaling 14 and a sum of 6 or , so all four work.
Answer
, , , and .
Key idea
Absolute-value information often becomes simpler after separating same-sign and opposite-sign cases.
- Hint 1
-
Problem 6 A walk that returns home
Difficulty: 2 of 3 stars, Challenge
A robot starts at 0 on an integer number line. Every move is either 5 units to the right or 3 units to the left. The robot must never visit a negative coordinate and must return to 0 after at least one move.
(a) What is the smallest possible number of moves?
(b) Among all such returning walks, what is the smallest possible highest coordinate visited? Prove both answers; the walk in part (b) need not be shortest.
- Hint 1
A returning walk travels the same total distance right as left. List the first few positive totals each move type can produce.
- Hint 2
Inspect the first two or three moves of a walk that tries to keep its highest coordinate small.
Answer
(a) 8 moves. (b) Highest coordinate 7. Both are attained by .
Full solution
To return to 0, the total distance traveled right must equal the total traveled left.
The positive rightward totals are 5, 10, 15, and so on; the leftward totals are 3, 6, 9, 12, 15, and so on.
The first shared positive total is 15.
Reaching it requires three right moves and five left moves, or eight moves altogether.
Any larger shared total requires more moves.
Both directions must occur in a nonempty returning walk.
The eight-move route uses exactly those moves and stays nonnegative, proving that eight is attainable.
Now consider any allowed returning walk.
Its first move must reach 5.
If its second move goes right, it reaches 10 and has already visited a coordinate at least 7.
Otherwise it reaches 2.
From 2, a left move would reach , which is forbidden, so the next move must reach 7.
Thus every allowed walk has highest coordinate at least 7, regardless of its length.
The displayed route has highest coordinate exactly 7, proving the second answer.
Answer
(a) 8 moves. (b) Highest coordinate 7. Both are attained by .
Key idea
Combine a global balance condition with a short forced beginning to prove two different optimal bounds.
- Hint 1
-
Problem 7 Choose a meeting point
Difficulty: 2 of 3 stars, Challenge
Four students stand at coordinates on a number line. Choose an integer meeting coordinate . Each student walks directly to .
(a) Minimize the total distance walked, and find all integer meeting points that attain the minimum.
(b) Among the points from part (a), minimize the greatest distance walked by any one student. Find all best points and that greatest distance.
- Hint 1
Pair the two outer students, and separately pair the two inner students.
- Hint 2
For part (b), the farthest student must be at one of the two outer coordinates.
Answer
(a) Minimum total 30, attained at . (b) or , with greatest distance 12.
Full solution
The two students at and 14 are 23 units apart.
Their combined walking distance is at least 23, with equality exactly when the meeting point is between them.
Similarly, the students at and 5 are 7 units apart, and their combined distance is at least 7, with equality exactly when the meeting point is between those two positions.
The total is therefore at least .
Both bounds hold with equality precisely when lies in the smaller interval from to 5.
There are eight integer choices, all listed in the answer.
For part (b), within that interval the outer students walk and units; the inner students cannot walk farther than both outer students.
The two outer distances add to 23, so their greater distance must be at least 12 when is an integer.
To keep both at most 12, the first requires and the second requires .
Exactly and work, giving outer distances 11 and 12 in opposite orders.
Answer
(a) Minimum total 30, attained at . (b) or , with greatest distance 12.
Key idea
Pair outer points to bound total distance, then distinguish minimizing a total from minimizing the largest cost.
- Hint 1
-
Problem 8 The longest visiting route
Difficulty: 3 of 3 stars, Deep challenge
Six posts stand at coordinates on a number line. Choose one post as a starting post and list the other five in a visiting order. Travel directly between successive listed posts, with each post listed exactly once. Passing a post while traveling does not count as a listed visit.
What is the greatest possible total distance traveled? Give a route attaining it and prove that no other order travels farther.
- Hint 1
For any two coordinates , their distance is at most . When is it equal?
- Hint 2
In the total for a five-leg route, each interior post contributes to two legs, but each endpoint contributes to only one.
Answer
The greatest distance is 51, attained by the order .
Full solution
For any two coordinates, the direct distance between them is no greater than the distance obtained by traveling via 0:
Equality holds when the two coordinates are on opposite sides of 0.
Apply this bound to each of the five successive legs.
Each of the four interior posts then contributes its absolute value twice, while the starting and finishing posts contribute only once.
The absolute values of all posts total
Consequently, every route has length at most 54 minus the absolute values of its two endpoint coordinates.
The smallest possible sum of two distinct endpoint absolute values is .
Thus every route is at most units long.
To attain the bound, use those endpoint posts and alternate sides of 0 throughout: .
Its leg lengths are 6, 12, 15, 12, and 6, totaling 51.
Every leg crosses 0, so every individual distance bound is an equality.
The construction attains the proved upper bound.
Answer
The greatest distance is 51, attained by the order .
Key idea
Bound a total by counting how many times each item contributes, then arrange equality in every step.
- Hint 1
-
Problem 9 Reconstruct four hidden points
Difficulty: 3 of 3 stars, Deep challenge
Four distinct integer coordinates have sum 0. Measure the distance between every pair of coordinates, giving six distances in total. In increasing order, these distances are 2, 3, 4, 5, 7, and 9.
Find every possible set of four coordinates, and prove that your reconstruction is complete.
- Hint 1
The greatest distance joins the smallest and largest coordinates. Temporarily place those two extremes at 0 and 9.
- Hint 2
For each interior point, its two distances to the extremes add to 9. Which pairs in the distance list can do that?
Answer
The two sets are {} and {}.
Full solution
The largest distance, 9, is the span from the leftmost to the rightmost point.
Temporarily translate all points so these extremes are 0 and 9.
Translation changes no pairwise distance.
Each interior point has two distances to the extremes adding to 9.
Among the remaining distances 2, 3, 4, 5, 7, the only pairs adding to 9 are 2 with 7 and 4 with 5.
Thus the two interiors must use these two pairs, leaving 3 as the distance between the interiors.
One interior lies at 2 or 7, and the other at 4 or 5.
The pairs {2,4} and {7,5} have gap 2 and fail; the pairs {2,5} and {7,4} have gap 3 and work.
The normalized sets are therefore {0,2,5,9} and {0,4,7,9}.
Their coordinate sums are 16 and 20.
Moving every coordinate left by 4 in the first set, or by 5 in the second, makes the sum 0.
This gives {} and {}.
Each has the required six distances.
The endpoint pairing exhausted the possibilities, and the sum condition permits only one translation of each normalized set.
Answer
The two sets are {} and {}.
Key idea
Separate the shape of a configuration, which distances determine, from its location, which another condition can fix.
- Hint 1
-
Problem 10 Read hidden marks from distance totals
Difficulty: 3 of 3 stars, Deep challenge
Five marks are placed at integer coordinates from through 3, inclusive. Several marks may share a coordinate, and each mark is counted separately.
For an integer , let be the sum of the distances from to all five marks. The reported values are:
, , , , , , .
Find the coordinates of all five marks, including any repeated coordinates. Explain why the reports determine a unique answer.
- Hint 1
Track the change in the total when the observation point moves one unit right.
- Hint 2
A mark at or left of the old integer coordinate becomes one unit farther away; every other mark becomes one unit nearer.
Answer
The marks are at .
Full solution
Move the observation point from an integer to .
A mark at or left of contributes an increase of 1 to the distance total.
Every other mark is at or right of , since its coordinate is an integer, and contributes a decrease of 1.
If marks are at or left of , the change in total is
Thus the change tells us the exact cumulative number : add 5 and divide by 2.
The successive changes in the supplied totals are .
They therefore imply cumulative counts of at or left of , respectively.
There is one mark at and none at .
The cumulative count increases from 1 to 3 at , so there are two marks there.
There are none at 0 or 1, one at 2, and the fifth mark must be at 3.
This forces the multiset .
For verification, their distances from total
The forced one-step changes then reproduce all later reports.
No alternative placement can give different cumulative counts while preserving the same changes, so the answer is unique.
Answer
The marks are at .
Key idea
Differences between neighboring measurements can reveal hidden counts more directly than the measurements themselves.
- Hint 1