[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A309953
Product of digits of (n written in base 3).
5
0, 1, 2, 0, 1, 2, 0, 2, 4, 0, 0, 0, 0, 1, 2, 0, 2, 4, 0, 0, 0, 0, 2, 4, 0, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 4, 0, 0, 0, 0, 2, 4, 0, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 0, 4, 8, 0, 0, 0, 0, 4, 8, 0, 8, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
0,3
LINKS
FORMULA
G.f. A(x) satisfies: A(x) = x * (1 + 2*x) * (1 + A(x^3)).
MAPLE
a:= proc(n) a(n):= `if`(n<3, n, irem(n, 3, 'q')*a(q)) end:
seq(a(n), n=0..100); # Alois P. Heinz, Mar 18 2024
MATHEMATICA
Table[Times @@ IntegerDigits[n, 3], {n, 0, 100}]
PROG
(PARI) a(n) = {if(n, vecprod(digits(n, 3)), 0)} \\ Andrew Howroyd, Aug 24 2019
(Magma) [0] cat [&*Intseq(n, 3):n in [1..100]]; // Marius A. Burtea, Aug 25 2019
CROSSREFS
KEYWORD
nonn,base,look
AUTHOR
Ilya Gutkovskiy, Aug 24 2019
STATUS
approved