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.

A127427 a(n) = v_3( (6n)! ) - v_3( (3n)! ), where v_3(N) is the 3-adic valuation A007949(N).

Original entry on oeis.org

0, 1, 3, 4, 5, 8, 9, 10, 12, 13, 14, 16, 17, 18, 22, 23, 24, 26, 27, 28, 30, 31, 32, 35, 36, 37, 39, 40, 41, 43, 44, 45, 48, 49, 50, 52, 53, 54, 56, 57, 58, 63, 64, 65, 67, 68, 69, 71, 72, 73, 76, 77, 78, 80, 81, 82, 84, 85, 86, 89, 90, 91, 93, 94, 95, 97, 98, 99, 103, 104, 105, 107
Offset: 0

Views

Author

N. J. A. Sloane, Apr 02 2007

Keywords

Crossrefs

Essentially partial sums of A127427.

Programs

  • Mathematica
    s[n_] := Plus @@ IntegerDigits[n, 3]; a[n_] := (3*n + s[3*n] - s[6*n])/2; Array[a, 100, 0] (* Amiram Eldar, Feb 21 2021 *)
  • PARI
    a(n) = valuation((6*n)!, 3) - valuation((3*n)!, 3); \\ Michel Marcus, Jul 29 2017

Formula

a(n) - n = a( [(n+1)/3] ).
a(n) = (3*n + A053735(n) - A053735(6*n))/2. - Amiram Eldar, Feb 21 2021