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.

A307704 Expansion of (1/(1 - x)) * Sum_{k>=1} (-x)^k/(1 - (-x)^k).

Original entry on oeis.org

-1, 1, -1, 2, 0, 4, 2, 6, 3, 7, 5, 11, 9, 13, 9, 14, 12, 18, 16, 22, 18, 22, 20, 28, 25, 29, 25, 31, 29, 37, 35, 41, 37, 41, 37, 46, 44, 48, 44, 52, 50, 58, 56, 62, 56, 60, 58, 68, 65, 71, 67, 73, 71, 79, 75, 83, 79, 83, 81, 93, 91, 95, 89, 96, 92, 100, 98, 104, 100, 108
Offset: 1

Views

Author

Ilya Gutkovskiy, Apr 22 2019

Keywords

Crossrefs

Cf. A001620 (gamma), A002162.

Programs

  • Mathematica
    nmax = 70; Rest[CoefficientList[Series[1/(1 - x) Sum[(-x)^k/(1 - (-x)^k), {k, 1, nmax}], {x, 0, nmax}], x]]
    Table[Sum[(-1)^k DivisorSigma[0, k], {k, 1, n}], {n, 1, 70}]
    Accumulate[Array[(-1)^#*DivisorSigma[0, #] &, 70]] (* Amiram Eldar, Oct 14 2022 *)

Formula

a(n) = Sum_{k=1..n} (-1)^k*A000005(k).
a(n) = n*log(n)/2 + (gamma - log(2) - 1/2)*n + O(n^(131/416 + eps)) (Tóth, 2017). - Amiram Eldar, Oct 14 2022