Bet you ran primes

A sequence defined as a n = p n + 1 m o d p n , a_n = p_{n+1}\bmod{p_n}, where p n p_n denotes the n th n^\text{th} prime number.

What is the sum of the first 1000 terms a 1 + a 2 + + a 1000 ? a_1+a_2+\cdots+ a_{1000}?

Note: You can look up the values of any primes you want.


The answer is 7925.

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.

1 solution

Alexander Gibson
Apr 22, 2018

Bertrand's postulate states that for any n n , there exists a prime number p p between n n and 2 n 2n .Applying this to p n p_n , we get that p n + 1 p_{n+1} lies between p n p_n and 2 p n 2p_n .Thus p n + 1 p_{n+1} mod p n p_{n} or a n a_n is just p n + 1 p n p_{n+1}-p_{n} .This therefore forms a telescoping sum and we get that the sum of the first 1000 terms is p 1000 p 1 p_{1000}-p_1 \equiv 7927-2 \equiv 7925

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...