A358401 Difference in number of 0's in first n terms of Van Eck's sequence and number of primes less than or equal to n.
1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -2, -1, -2, -2, -1, -1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1
Offset: 1
Keywords
Examples
a(41) = -2 because there are 11 0's in the first 41 terms of Van Eck's sequence and 13 prime numbers less than or equal to 41, and 11 - 13 = -2.