This function calculates the factorion value for the specified input integer. A number is a 'factorion' if it equals the sum of the factorials of its digits in a given base.
A list containing:
x echoing back the input argument.
isfactorion value 1 if x is a factorion and 0 otherwise.
theseq the sequence of values as each output is fed back to the input.
Arguments
x
The integer, or bigz integer, or character string representing an integer.
base
The the base of the input integer x. Bases 2 through 36 are supported. Default is 10.
findcycle
Logical value indicating whether or not to test for cyclic values. See Details for more information.
maxiter
A "safety switch" to avoid possible infinite loops, terminating the function prior to convergence. Only applicable when findcycle is TRUE.