Java Study Notes-Daffodils

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.