A163576 Near-factorions: equal to the sum of the factorials of all but one of their digits in base 10.
24, 5761, 5762
Offset: 1
Examples
24 = 4!, 5761 = 7! + 6! + 1!, 5762 = 7! + 6! + 2!
References
- Clifford A. Pickover, "Wonders of Numbers: Adventures in Mathematics, Mind, and Meaning", Oxford University Press, 2003, p. 357.
Crossrefs
Cf. A014080.
Programs
-
MATLAB
f = factorial(0:9); n = 0; for m = 1:2177280, d = f(mod(floor(m*10.^(-floor(log10(m)):0)),10)+1); if any(sum(d)-d==m), n = n+1; a(n) = m; end, end