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.

A364205 Expansion of Sum_{k>=0} x^(3*k+2) / (1 + x^(3*k+2)).

Original entry on oeis.org

0, 1, 0, -1, 1, 1, 0, 0, 0, 0, 1, -1, 0, 2, 1, -2, 1, 1, 0, -1, 0, 0, 1, 0, 1, 2, 0, -2, 1, 0, 0, -1, 1, 0, 2, -1, 0, 2, 0, -2, 1, 2, 0, -1, 1, 0, 1, -2, 0, 1, 1, -2, 1, 1, 2, 0, 0, 0, 1, -1, 0, 2, 0, -3, 2, 0, 0, -1, 1, 0, 1, 0, 0, 2, 1, -2, 2, 2, 0, -3, 0, 0, 1, -2, 2, 2, 1, -2, 1, 0, 0, -1
Offset: 1

Views

Author

Ilya Gutkovskiy, Jul 14 2023

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 92; CoefficientList[Series[Sum[x^(3 k + 2)/(1 + x^(3 k + 2)), {k, 0, nmax}], {x, 0, nmax}], x] // Rest
    Table[DivisorSum[n, (-1)^(# + 1) &, MemberQ[{2}, Mod[n/#, 3]] &], {n, 1, 92}]

Formula

a(n) = Sum_{d|n, n/d==2 (mod 3)} (-1)^(d+1).