5832 is 18 cubed, and its digits add back to 18

A cube whose digit sum returns its own root — one of six such numbers in base ten.

Arithmetic and functions · Level: Classic result · Updated on 2026-11-10

18 cubed is 5832, and 5 + 8 + 3 + 2 is 18, so the root comes back out of the cube's own digits. The first link does the cubing and the second does the adding. The same thing happens one step higher: 27³ = 19683 and 1 + 9 + 6 + 8 + 3 = 27, on the third link. Those two are the last of the family — in base ten the complete list is 1, 8, 17, 18, 26 and 27.

Two arguments squeeze the list that small. First, adding digits never changes a number modulo 9, so requiring digit-sum(n³) = n forces n³ ≡ n (mod 9), and testing the nine residues leaves only n ≡ 0, 1 or 8 — two thirds of all candidates go before any arithmetic. Second, size: the cube of a four-digit n has at most twelve digits, whose sum cannot exceed 9 × 12 = 108, while n itself is at least 1000. Nothing above 999 can ever satisfy the identity, and the handful of cases below it are the six listed.

Answer

5832

How to read it

18³ on the workbench. The second link adds its digits and returns 18; the third is the next and last case, 27³.

Source

Numbers n with digit-sum(n³) = n are 1, 8, 17, 18, 26 and 27 in base ten; the property carries Henry E. Dudeney's name in recreational mathematics

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.