cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A309953 Product of digits of (n written in base 3).

Original entry on oeis.org

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

Views

Author

Ilya Gutkovskiy, Aug 24 2019

Keywords

Crossrefs

Programs

  • Magma
    [0] cat [&*Intseq(n,3):n in [1..100]]; // Marius A. Burtea, Aug 25 2019
  • 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}]
  • PARI
    a(n) = {if(n, vecprod(digits(n,3)), 0)} \\ Andrew Howroyd, Aug 24 2019
    

Formula

G.f. A(x) satisfies: A(x) = x * (1 + 2*x) * (1 + A(x^3)).