OFFSET
1,2
REFERENCES
Suggested by Amarnath Murthy.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
63 = 6!*3! = 720*6 = 4320, 4 + 3 + 2 + 0 = 9 and 6 + 3 = 9.
PROG
(Python)
from math import factorial, prod
def ok(n):
d = list(map(int, str(n)))
return sum(map(int, str(prod(map(factorial, d))))) == sum(d)
print([k for k in range(1042) if ok(k)]) # Michael S. Branicky, Aug 15 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Meenakshi Srikanth (menakan_s(AT)yahoo.com), Apr 27 2003
EXTENSIONS
Corrected and extended by Jason Earls, May 22 2004
STATUS
approved