求所有等于各位数字立方和的三位数。
四个 3 位 Armstrong 数:13+53+33=153,33+73+03=370,33+73+13=371,43+03+73=407。
153,370,371,407。
英文解析
Find all 3-digit numbers equal to the sum of the cubes of their digits.
Let n=100a+10b+c where a∈{1,…,9}, b,c∈{0,…,9}. Need 100a+10b+c=a3+b3+c3.
Check each digit combination:
- 153: 13+53+33=1+125+27=153 ✓
- 370: 27+343+0=370 ✓
- 371: 27+343+1=371 ✓
- 407: 64+0+343=407 ✓
These are the four 3-digit Armstrong (narcissistic) numbers.
153,370,371,407.