For a 4-digit number, the sum of its digits in the thousands, hundreds and tens places is 14, the sum of its digits in the hundreds, tens and units places is 15, and the tens place digit is 4 more than the units place digit. Then the highest possible 4-digit number satisfying the above conditions is
Show solution
Correct answer: 4195
Think of this as: we have four unknown digits and three equations linking them — so one digit stays free, and we scan its possible values to find the biggest number.
Let the 4-digit number be , where is the thousands digit, the hundreds, the tens, and the units. The three conditions are:
- (thousands + hundreds + tens)
- (hundreds + tens + units)
- (tens digit is 4 more than the units digit)
Step 1 — Express every digit in terms of .
From condition (3), we already have in terms of :
Substitute this into condition (2):
Now subtract condition (1) from condition (2):
So all four digits are pinned to a single free parameter :
💡 Teacher tip: Three independent equations in four unknowns leave exactly one degree of freedom. Choosing as the free variable is natural here because condition (3) already hands us directly from .
Step 2 — Apply the digit rules to bound .
Every digit must be a single decimal digit: (it's the thousands digit, so it cannot be ), and .
- Thousands digit: .
- Tens digit: .
- Hundreds digit: (and gives , which is already weaker than ).
Combining all bounds: .
Step 3 — List every candidate and pick the largest.
| Number | ||||
|---|---|---|---|---|
Quick verification of the largest candidate, :
- ✓
- ✓
- ✓
As increases, the thousands digit also increases, so the largest number corresponds to the largest allowed , which is .
Answer:
💡 Why this works: With three independent conditions on four unknowns, exactly one free parameter survives. Driving everything through turns the search into a single column scan — and since the leading digit grows with , the maximum sits at the top of the range.