🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2025 Math Kangaroo

Problem 18

Problem 18 · 2025 Math Kangaroo Medium
Number Theory factorizationdigit-sum

The number N is the largest 6-digit number for which the product of all its digits is 180. What is the sum of the digits of the number N?

Show answer
Answer: A — 21
Show hints
Hint 1 of 2
180 = 2²·3²·5; you need six digits whose product is 180.
Still stuck? Show hint 2 →
Hint 2 of 2
To make N largest, put the biggest digits first and pad with 1s.
Show solution
Approach: greedy largest digits, pad with ones
  1. Factor 180 into single digits, using as few non-1 digits as possible with large values: 9, 5, 4 (9×5×4 = 180).
  2. Pad to six digits with three 1s and order descending: 954111.
  3. Digit sum = 9+5+4+1+1+1 = 21.
Mark: · log in to save