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.

A280041 Solutions to the congruence 1^n+2^n+...+n^n == 19 (mod n).

Original entry on oeis.org

1, 2, 6, 19, 38, 114, 798, 34314
Offset: 1

Views

Author

N. J. A. Sloane, Dec 29 2016

Keywords

Programs

  • Mathematica
    f[n_] := Mod[Sum[PowerMod[k, n, n], {k, 1, n}] - 19, n];
    For[n = 1, n < 40000, n++, If[f[n] == 0, Print[n]]] (* Jean-François Alcover, Sep 06 2018 *)