Definition
The definition of a narcissistic number relies on the decimal representation n = dkdk-1...d1d0 of a natural number n, e.g.
- n = dk·10k-1 + dk-1·10k-2 + ... + d2·10 + d1,
with k digits di satisfying 0 ≤ di ≤ 9. Such a number n is called narcissistic if it satisfies the condition
- n = dkk + dk-1k + ... + d2k + d1k.
For example the 3-digit decimal number 153 is a narcissistic number because 153 = 13 + 53 + 33.
Narcissistic numbers can also be defined with respect to numeral systems with a base b other than b = 10. The base-b representation of a natural number n is defined by
- n = dkbk-1 + dk-1bk-2 + ... + d2b + d1,
where the base-b digits di satisfy the condition 0 ≤ di ≤ b-1. For example the (decimal) number 17 is a narcissistic number with respect to the numeral system with base b = 3. Its three base-3 digits are 122, because 17 = 1·32 + 2·3 + 2, and it satisfies the equation 17 = 13 + 23 + 23.
If the constraint that the power must equal the number of digits is dropped, so that for some m possibly different from k it happens that
- n = dkm + dk-1m + ... + d2m + d1m,
then n is called a perfect digital invariant or PDI. For example, the decimal number 4150 has four decimal digits and is the sum of the fifth powers of its decimal digits
- 4150 = 45 + 15 + 55 + 05,
so it is a perfect digital invariant but not a narcissistic number.
In "A Mathematician's Apology", G. H. Hardy wrote:
- There are just four numbers, after unity, which are the sums of the cubes of their digits:
- .
- .
- These are odd facts, very suitable for puzzle columns and likely to amuse amateurs, but there is nothing in them which appeals to the mathematician.
Read more about this topic: Narcissistic Number
Famous quotes containing the word definition:
“Mothers often are too easily intimidated by their childrens negative reactions...When the child cries or is unhappy, the mother reads this as meaning that she is a failure. This is why it is so important for a mother to know...that the process of growing up involves by definition things that her child is not going to like. Her job is not to create a bed of roses, but to help him learn how to pick his way through the thorns.”
—Elaine Heffner (20th century)
“The very definition of the real becomes: that of which it is possible to give an equivalent reproduction.... The real is not only what can be reproduced, but that which is always already reproduced. The hyperreal.”
—Jean Baudrillard (b. 1929)
“It is very hard to give a just definition of love. The most we can say of it is this: that in the soul, it is a desire to rule; in the spirit, it is a sympathy; and in the body, it is but a hidden and subtle desire to possessafter many mysterieswhat one loves.”
—François, Duc De La Rochefoucauld (16131680)