The number of all positive integers up to 500 with non-repeating digits is
126
Step-by-Step Solution
Pattern: "sum of all three altitudes" of a triangle. Recognise this by the phrase itself — whenever a question asks for altitudes to all three sides, the fastest route is: find the area once, then use three times, once per side.
Why this method works: area is a single fixed number for the triangle. Every side, when used as the base, must pair with its own altitude to reproduce that same area. So once we know the area, each altitude is just Area divided by (half the corresponding side).
Step 1 — Find the altitude to BC.
Since , triangle ABC is isosceles, so the altitude from A lands exactly on the midpoint M of BC.
By Pythagoras in triangle ABM:
Step 2 — Find the area using this altitude.
Step 3 — Use the same area to get the altitude onto AC (call it , dropped from B).
Step 4 — Get the altitude onto AB (call it , dropped from C).
Since (the triangle is isosceles), this altitude uses the identical base length as Step 3:
Step 5 — Add up all three altitudes.
Common trap: assuming all three altitudes are equal (that is only true for an equilateral triangle). Here two altitudes are equal (because two sides are equal) but the third (to the unequal side BC) is different.
Final answer: 126