Day_4 水仙花數

1.在數論中,水仙花數(Narcissistic number)也稱爲自戀數、自冪數、阿姆斯壯數或阿姆斯特朗數(Armstrong number),是指一N位數,其各個數之N次方和等於該數。 例如153、370、371及407就是三位數的水仙花數,其各個數之立方和等於該數: 153 = 1^3 + 5^3 + 3^3。 370 = 3^3 + 7^3 + 0^3。 371 = 3^3 + 7^3
相關文章
相關標籤/搜索