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.

A380833 a(n) is the number of divisors d of n satisfying (-d)^n mod n = d.

Original entry on oeis.org

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

Views

Author

Juri-Stepan Gerasimov, Feb 06 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 &, PowerMod[-#, n, n] == # &]; Array[a, 100] (* Amiram Eldar, Feb 06 2025 *)