go ahead... be a heretic | |
PerlMonks |
Re: Mathematics ethicsby thinker (Parson) |
on Oct 28, 2002 at 15:50 UTC ( [id://208528]=note: print w/replies, xml ) | Need Help?? |
Hi cored, I think ($vldig * $vldig * $vldig) confused the issue a little. From this definition NARCISSISTIC NUMBERS: DEFINITION A narcissistic number is an n-digit number that is the sum of the n-th powers of its digits. Examples: 153 = 1^3 + 5^3 + 3^3. 548834 = 5^6 + 4^6 + 8^6 + 8^6 + 3^6 + 4^6. My attempt at a solution is
I hope this helps thinker
In Section
Seekers of Perl Wisdom
|
|