The Phrygian Cap


d33p shadow

luisbg

@ubuntu.com

about me

Blogalia
Subscribe with Bloglines

wishlist
amazon.co.uk





bethencourt's Profile Page


<Febrero 2010
Lu Ma Mi Ju Vi Sa Do
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
             

Creative Commons License


planet ubuntu
Silicon Island



"All religions, arts and sciences are branches of the same tree. All these aspirations are directed toward ennobling man's life, lifting it from the sphere of mere physical existence and leading the individual towards freedom." Albert Einstein

factorials




4! + 0! + 5! + 8! + 5! = 40585

1! + 4! + 5! = 145

7 Comentarios


Referencias (TrackBacks)

URL de trackback de esta historia http://luisbg.blogalia.com//trackbacks/60291

Comentarios

1
De: nominomla Fecha: 2008-10-31 17:05

2! = 2 ;)



2
De: Ryan Fecha: 2008-10-31 21:23

#!/usr/bin/python
search_space = range(0, int(raw_input("Search space: 0 to (integer): "))+1)
def factorial(i):
result = i
for j in range(1, i):
result *= j
if result == 0:
result = 1
return result
for i in search_space:
si = str(i)
total = 0
for j in range(0, len(si)):
total += factorial(int(si[j]))
if total==i:
print str(si[0])+"!",
for j in range(1, len(si)):
print "+", str(si[j])+"!",
print "=", total



3
De: Ryan Fecha: 2008-10-31 21:23

Hell if your blog preserves whitespace. =P



4
De: Walther Fecha: 2008-10-31 22:15

Interesting.

I searched every possible solution and 1, 2, 145 and 40585 are the only ones I could find.
9! is 362880 (6 digits), so you don't have to look any further than numbers of 7 digits. Because beyond 7 * 9! total number will grow faster than the sum of the factorials could ever grow.

Sorry for taking this too far :)



5
De: Keeguon Fecha: 2008-11-01 13:19

Interesting...



6
De: Ilya Fecha: 2008-11-02 10:38

http://en.wikipedia.org/wiki/Factorion



7
De: luisbg Fecha: 2008-11-04 17:49

@ ryan: less is more, the content is the only important part of the design of the blog.

@ walther: yes, the amount of times this happens is very low.

@ ilya: thanks for the link!



Nombre
Correo-e
URL
Dirección IP: 38.107.191.94 (5bf30e74b6)
Comentario

©2007-2009 luis de bethencourt guimerá
Powered by Blogalia