OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1).
FORMULA
From Mike Sheppard, Feb 20 2025 : (Start)
a(n) = a(n-1) + a(n-28) - a(n-29).
a(n) = a(n-28) + 29^2.
a(n) ~ (29^2/28)*n. (End)
MATHEMATICA
x=29; Select[ Range[ 2000 ], PowerMod[ #, x-1, x^2 ]==1& ]
PROG
(PARI) isok(k) = Mod(k, 29^2)^28 == 1; \\ Michel Marcus, Apr 10 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
STATUS
approved
