A106277 Number of distinct zeros of x^4-x^3-x^2-x-1 mod prime(n).
0, 1, 0, 1, 0, 0, 1, 1, 1, 2, 0, 2, 2, 0, 1, 0, 1, 1, 1, 1, 2, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 4, 0, 1, 0, 2, 2, 2, 2, 4, 1, 1, 1, 0, 0, 1, 1, 2, 0, 0, 0, 1, 0, 0, 2, 1, 0, 1, 1, 0, 2, 2, 2, 0, 0, 2, 1, 0, 1, 2, 0, 0, 2, 0, 1, 0, 2, 1, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 1, 0, 0, 1, 2, 1, 1, 0, 2, 1, 2, 1, 3, 0, 0
Offset: 1
Keywords
Links
- J.-P. Serre, On a theorem of Jordan, Bull. Amer. Math. Soc., 40 (No. 4, 2003), 429-440, see p. 433.
- Eric Weisstein's World of Mathematics, Fibonacci n-Step Number
Crossrefs
Programs
-
Mathematica
Table[p=Prime[n]; cnt=0; Do[If[Mod[x^4-x^3-x^2-x-1, p]==0, cnt++ ], {x, 0, p-1}]; cnt, {n, 150}]
-
Python
from sympy.abc import x from sympy import Poly, prime def A106277(n): return len(Poly(x*(x*(x*(x-1)-1)-1)-1, x, modulus=prime(n)).ground_roots()) # Chai Wah Wu, Mar 29 2024
Comments