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.

A358360 The 3-adic valuation of the central Delannoy numbers (sequence A001850).

Original entry on oeis.org

0, 1, 0, 2, 1, 2, 0, 1, 0, 3, 2, 3, 1, 2, 1, 3, 2, 3, 0, 1, 0, 2, 1, 2, 0, 1, 0, 4, 3, 4, 2, 3, 2, 4, 3, 4, 1, 2, 1, 3, 2, 3, 1, 2, 1, 4, 3, 4, 2, 3, 2, 4, 3, 4, 0, 1, 0, 2, 1, 2, 0, 1, 0, 3, 2, 3, 1, 2, 1, 3, 2, 3, 0, 1, 0, 2, 1, 2, 0, 1, 0, 5, 4, 5, 3, 4, 3
Offset: 0

Views

Author

Jeffrey Shallit, Nov 12 2022

Keywords

Comments

The 3-adic valuation of x is the exponent of the highest power of 3 dividing x.

References

  • J.-P. Allouche and J. Shallit, Automatic Sequences: Theory, Applications, Generalizations. Cambridge University Press (2003), p. 453.

Crossrefs

Programs

  • Mathematica
    Array[IntegerExponent[LegendreP[#, 3], 3] &, 105, 0] (* Michael De Vlieger, Nov 12 2022 *)

Formula

b(n) = b(floor(n/3)) + (floor(n/3) mod 2), if n == 0,2 (mod 3);
b(n) = b(floor(n/9)) + 1, if n == 1 (mod 3).
a(n) = A007949(A001850(n)).