Anyone who has been around Maths for awhile will have come across some numbers that have special properties.
42 is one of those numbers, but I’ve long ago forgotten how it is so. Anyone who can fill us in is welcome to have a go.
If you know of some special numbers, add them so this topic.
Today I learned about Narcissistic Numbers which are composed of digits that when raised to the power of the number of digits, and then added together will arrive at the same number. The example given was 8208. Being a curious sort, I had to test that…
>>> from math import log10, floor >>> x = 8208 >>> n = floor(log10(x)) + 1 >>> y = 0 >>> while x > 0: y += (x % 10) ** n x //= 10 >>> y 8208 >>>
Looking forward to any interesting numbers you’ve come across to let’s keep this topic growing!
One suspects this is not going to light many fires, but my own faith says it will start one or two. Now that we know the four digit number that fits this scenario we are left with the question of whether there are two and three digit numbers that act the same. Extending beyond four digit numbers will follow, as curiosity goes.
Apparently there are 88 such known numbers that satisfy this construct. The good news is that they are all less than,