OFFSET
1,3
COMMENTS
Terms after a(126) need more Euler numbers to check the period length. There are 85 unknown terms starting from a(127) till a(500) when 242 Euler numbers are used. - Hakan Icoz, Sep 06 2020
LINKS
Hakan Icoz, Table of n, a(n) for n = 1..125
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