OFFSET
1,3
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..500 (terms 1..125 from Hakan Icoz)
FORMULA
a(n) = n-1 if n=2, 3, 7, 11, 19, 23, 31...is a prime == 2 or 3 (mod 4) (A045326).
EXAMPLE
A000364 modulo 5 gives : 1,1,0,1,0,1,0,1,0,1,0,... with period (1,0) of length 2, hence a(5)=2.
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 06 2003
EXTENSIONS
More terms from Hakan Icoz, Sep 06 2020
STATUS
approved
