OFFSET
1,2
COMMENTS
This is similar to A349190 but with digits taken in reversed order.
EXAMPLE
24 is a term because A349278(24) = 4*(4+2) = 4*6 = 24.
MATHEMATICA
f[n_] := Times @@ Accumulate @ Reverse @ IntegerDigits[n]; Select[Range[100], f[#] == # &] (* Amiram Eldar, Nov 13 2021 *)
PROG
(Python)
from math import prod
from itertools import accumulate
def ok(n):
return n == (0 if n%10==0 else prod(accumulate(map(int, str(n)[::-1]))))
print([k for k in range(1, 10**7) if ok(k)]) # Michael S. Branicky, Nov 13 2021
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Michel Marcus, Nov 13 2021
STATUS
approved