OFFSET
1,3
EXAMPLE
A002067 modulo 5 is 1, 1, 2, 2, 4, 4, 3, 3, 1, 1, 2, 2, 4, 4, 3, 3, 1, 1, ... with period 8.
MATHEMATICA
max = 100; se = Series[InverseErf[2*x/Sqrt[Pi]], {x, 0, 2*max + 1}]; a[n_] := (2 n + 1)!/2^n*Coefficient[se, x, 2*n + 1]; A002067 = Table[a[n], {n, 0, max}]; period[lst_List] := Catch[lg = If[Length[lst] <= 5, 2, 5]; lst1 = lst[[1 ;; lg]]; km = Length[lst] - lg; Do[If[lst1 == lst[[k ;; k + lg - 1]], Throw[k - 1]]; If[k == km, Throw[0]], {k, 2, km}]]; Table[ period[Mod[A002067, Prime[n]] // Reverse] , {n, 1, 15}] (* Jean-François Alcover, Dec 17 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 06 2008
EXTENSIONS
a(9)-a(15) from Jean-François Alcover, Dec 17 2012
More terms from Jinyuan Wang, Jul 30 2022
STATUS
approved