A sequence defined as where denotes the prime number.
What is the sum of the first 1000 terms
Note: You can look up the values of any primes you want.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Bertrand's postulate states that for any n , there exists a prime number p between n and 2 n .Applying this to p n , we get that p n + 1 lies between p n and 2 p n .Thus p n + 1 mod p n or a n is just p n + 1 − p n .This therefore forms a telescoping sum and we get that the sum of the first 1000 terms is p 1 0 0 0 − p 1 ≡ 7927-2 ≡ 7925