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.

A382999 a(n) = Sum_{d|n} phi(n/d) * (-2)^(d-1).

Original entry on oeis.org

1, -1, 6, -8, 20, -30, 70, -136, 270, -500, 1034, -2088, 4108, -8134, 16440, -32912, 65552, -130878, 262162, -524800, 1048740, -2096138, 4194326, -8390976, 16777300, -33550348, 67109418, -134225840, 268435484, -536855640, 1073741854, -2147516704, 4294969404
Offset: 1

Views

Author

Seiichi Manyama, Apr 12 2025

Keywords

Crossrefs

Column k=2 of A382995.

Programs

  • PARI
    a(n) = sumdiv(n, d, eulerphi(n/d)*(-2)^(d-1));

Formula

a(n) = Sum_{k=1..n} (-2)^(gcd(n,k) - 1).
G.f.: Sum_{k>=1} phi(k) * x^k / (1 + 2*x^k).