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.

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

Original entry on oeis.org

1, -2, 33, -264, 3145, -46500, 823585, -16781408, 387422001, -9999900360, 285311670721, -8916103472496, 302875106592409, -11112006720145604, 437893890382391745, -18446744078004650880, 827240261886336764449, -39346408075098246299676, 1978419655660313589124321
Offset: 1

Views

Author

Seiichi Manyama, Apr 12 2025

Keywords

Crossrefs

Main diagonal of A382994.

Programs

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

Formula

a(n) = -Sum_{k=1..n} (-n)^gcd(n,k).