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.

A380656 a(n) is the number of divisors d such that -d^n mod n = d.

Original entry on oeis.org

0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 3, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, 0, 1, 0, 1, 0, 2, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Feb 03 2025

Keywords

Crossrefs

Programs

  • Magma
    [#[d: d in Divisors(n) | -d^n mod n eq d]: n in [1..100]];
  • Mathematica
    a[n_] := DivisorSum[n, 1 &, Mod[-PowerMod[#, n, n], n] == # &]; Array[a, 100] (* Amiram Eldar, Feb 04 2025 *)