OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
From Chai Wah Wu, Jun 21 2020: (Start)
a(n) = a(n-1) + a(n-4) - a(n-5) for n > 5.
G.f.: x*(x^4 + 1067*x^3 + 989*x^2 + 1067*x + 1)/(x^5 - x^4 - x + 1). (End)
MATHEMATICA
x=5; Select[ Range[ 50000 ], PowerMod[ #, x-1, x^5 ]==1& ]
PROG
(PARI) for(n=1, 30000, if(n^4%5^5==1, print1(n, ", "))) \\ Hugo Pfoertner, Jun 21 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
STATUS
approved