|
|
A267084
|
|
a(n) = ceiling(A007504(n)/n) - floor(A007504(n)/n); a(n) is 0 if n divides the sum of first n primes, 1 otherwise.
|
|
3
|
|
|
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1
|
|
COMMENTS
|
a(n) = 0 for n=1, 23, 53, 853, ... see A045345.
It is conjectured that there are infinitely many zeros, but that their density is zero.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Table[Ceiling[(Plus@@Prime[Range[n]])/n]-Floor[(Plus@@Prime[Range[n]])/n], {n, 100}]
|
|
PROG
|
(PARI)
up_to = 105
v007504 = vector(up_to, i, prime(i));
for(i=2, up_to, v007504[i] = v007504[i-1]+v007504[i]); \\ Taking partial sums of primes here.
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
More terms and the second description added to the name by Antti Karttunen, Sep 24 2017
|
|
STATUS
|
approved
|
|
|
|