OFFSET
0,3
COMMENTS
This sequence is a variant of A243657 where the multiplications are carried in the opposite order; as (i, j) -> noz(i * j) is not associative in general we obtain another sequence.
Is this sequence bounded?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
FORMULA
a(10^k) = a(10^k - 1) for any k >= 0.
EXAMPLE
For n = 12:
- noz(11 * 12) = noz(132) = 132,
- noz(10 * 132) = noz(1320) = 132,
- noz(9 * 132) = noz(1188) = 1188,
- noz(8 * 1188) = noz(9504) = 954,
- noz(7 * 954) = noz(6678) = 6678,
- noz(6 * 6678) = noz(40068) = 468,
- noz(5 * 468) = noz(2340) = 234,
- noz(4 * 234) = noz(936) = 936,
- noz(3 * 936) = noz(2808) = 288,
- noz(2 * 288) = noz(576) = 576,
- noz(1 * 576) = noz(576) = 576,
- hence a(12) = 576.
MATHEMATICA
noz[n_] := FromDigits[DeleteCases[IntegerDigits[n], 0]];
A321475[n_] := If[n == 0, 1, Block[{k = n}, Nest[noz[--k * #] &, n, n-1]]];
Array[A321475, 50, 0] (* Paolo Xausa, May 20 2024 *)
PROG
(PARI) a(n, base=10) = my (f=max(1, n)); forstep (k=n-1, 2, -1, f = fromdigits(select(sign, digits(f*k, base)), base)); f
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 11 2018
STATUS
approved
