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.

A318455 The 2-adic valuation of A318454(n).

Original entry on oeis.org

0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 7, 0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 8, 0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 7, 0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 10, 0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 7, 0, 1, 0, 3, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 8, 0, 1, 0, 3, 0, 1, 0, 4, 0
Offset: 1

Views

Author

Antti Karttunen and Andrew Howroyd, Aug 29 2018

Keywords

Crossrefs

Programs

  • Mathematica
    f[1] = 1; f[n_] := f[n] = 1/2 (Sum[Mod[d, 2], {d, Divisors[n]}] - Sum[f[d] f[n/d], {d, Divisors[n][[2 ;; -2]]}]);
    a[n_] := IntegerExponent[Denominator[f[n]], 2];
    Array[a, 105] (* Jean-François Alcover, Sep 13 2018 *)
  • PARI
    A318455(n) = valuation(A318454(n),2); \\ Needs also program from A318454.

Formula

a(n) = A007814(A318454(n)).