Public static void main (string [] ARGs) {int num = 0; system. out. println ("daffodils within 1000:"); For (INT I = 100; I <1000; I ++) {if (I = (I/100) * (I/100) * (I/100) + (I/10% 10) * (I/10% 10) * (I/10% 10) + (I % 10) * (I % 10) * (I % 10) {num = I; system. out. println (Num );}}}
Popular Science:
The number of daffodils is only a kind of self-Power. Strictly speaking, the self-power of three numbers is the number of daffodils.
Appendix: name of the Self-power of other digits
One-digit self-Power: unique number
Two-digit power: No
Three-digit power: daffodils
Four-digit self-Power: Four-leaf rose number
Five-digit self-Power: pentagram
Six-digit power: six-digit combination
Seven-digit self-Power: dipper
Eight-digit power: Eight Immortals
9-bit self-Power: 9-9 Chongyang number
10 x-Power: 10x10
Common daffodils
The number of daffodils is also known as the number of Armstrong.
There are four daffodils in three places:153,370,371,407;
There are three daffodils in four places:1634,8208, 9474;
There are three daffodils in five places:54748,92727, 93084;
The number of six daffodils is only one:548834;
There are 4 daffodils in seven places:172.1625,4211618, 9800817,9926315;
There are three daffodils in the eight places:24678050,24678051, 88593477