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.

A086965 Number of distinct zeros of x^3-x-1 mod prime(n).

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Sep 24 2003

Keywords

Comments

For the prime modulus 23, the polynomial can be factored as (x+13)^2 (x+20), showing that x=10 is a zero of multiplicity 2. The discriminant of the polynomial is -23. - T. D. Noe, Aug 12 2004

Crossrefs

Programs

  • Mathematica
    Table[p=Prime[n]; cnt=0; Do[If[Mod[x^3-x-1, p]==0, cnt++ ], {x, 0, p-1}]; cnt, {n, 100}] (* T. D. Noe, Aug 12 2004 *)

Formula

If p = prime(n), a(n) = A030199(p) + 1.