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.

A348954 a(n) = Sum_{d|n, d < sqrt(n)} (-1)^(n/d) * d.

Original entry on oeis.org

0, 1, -1, 1, -1, -1, -1, 3, -1, -1, -1, 6, -1, -1, -4, 3, -1, 2, -1, -1, -4, -1, -1, 10, -1, -1, -4, -1, -1, 7, -1, 7, -4, -1, -6, 2, -1, -1, -4, 12, -1, -4, -1, -1, -9, -1, -1, 16, -1, 4, -4, -1, -1, -4, -6, 14, -4, -1, -1, 13, -1, -1, -11, 7, -6, -4, -1, -1, -4, 11, -1, 8, -1, -1, -9, -1, -8, -4, -1, 20
Offset: 1

Views

Author

Ilya Gutkovskiy, Nov 04 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[DivisorSum[n, (-1)^(n/#) # &, # < Sqrt[n] &], {n, 1, 80}]
    nmax = 80; CoefficientList[Series[Sum[(-1)^(k + 1) k x^(k (k + 1))/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
  • PARI
    A348954(n) = sumdiv(n,d,if((d*d)Antti Karttunen, Nov 05 2021

Formula

G.f.: Sum_{k>=1} (-1)^(k + 1) * k * x^(k*(k + 1)) / (1 + x^k).