OFFSET
1,2
COMMENTS
This is similar to A349194 but with digits taken in reversed order.
The only primes in the sequence are 2, 3, 5 and 7. - Bernard Schott, Dec 04 2021
The positive terms form a subsequence of A349194. - Bernard Schott, Dec 19 2021
LINKS
Michel Marcus, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n=256, a(256) = 6*(6+5)*(6+5+2) = 858.
MATHEMATICA
a[n_] := Times @@ Accumulate @ Reverse @ IntegerDigits[n]; Array[a, 70] (* Amiram Eldar, Nov 13 2021 *)
PROG
(PARI) a(n) = my(d=Vecrev(digits(n))); prod(i=1, #d, sum(j=1, i, d[j]));
(Python)
from math import prod
from itertools import accumulate
def a(n): return 0 if n%10==0 else prod(accumulate(map(int, str(n)[::-1])))
print([a(n) for n in range(1, 71)]) # Michael S. Branicky, Nov 13 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Marcus, Nov 13 2021
STATUS
approved