login
A272356
(Sum_{i=1..n} prime(i)) mod 4.
1
0, 2, 1, 2, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 0, 3, 0, 3, 2, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 3, 0, 3, 0, 3, 2, 3, 2, 3, 2, 3, 0, 3, 2, 1, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 3, 0, 3, 2, 3, 2, 1, 2, 3, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 2, 1, 0, 3, 2, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 3, 0, 3, 0
OFFSET
0,2
COMMENTS
Inspired by A103271, prime(n)+prime(n+1) mod 4.
FORMULA
a(n) = A007504(n) mod 4.
PROG
(PARI) A272356(n, print_all=1, a=Mod(0, 4))={n&&forprime(p=2, , a+=p; print_all&&print1(lift(a)", "); n--||break); lift(a)}
CROSSREFS
Sequence in context: A286134 A336922 A276469 * A102565 A076826 A137178
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 26 2016
STATUS
approved