Sum of consecutive primes

Algebra Level 3

For each positive integer n n , S n S_n is the sum of the first n n consecutive prime numbers.

For example:

n = 1 S 1 = 2 n = 2 S 2 = 2 + 3 = 5 \begin{aligned} n=1 & \implies S_1= 2 \\ n=2 & \implies S_2=2+3 = 5\end{aligned}

Arrange these numbers in a sequence of ascending order: S 1 , S 2 , S 3 , . . . S_1, S_2, S_3,... . Is the statement below true or false?

In the sequence above, we can always find two consecutive numbers which are both perfect squares.

False True

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

Adrian Klaeger
Aug 2, 2020

By contradiction assume there exist integers S n 1 \sqrt{S_{n-1}} and S n \sqrt{S_n} .

By definition S n S n 1 = p n S_n - S_{n-1} = p_n , where p n p_n is the nth prime.

( S n + S n 1 ) ( S n S n 1 ) = p n (\sqrt{S_n} + \sqrt{S_{n-1}})(\sqrt{S_n} - \sqrt{S_{n-1}}) = p_n

Since p n p_n is prime, the two factors above must be:

( S n + S n 1 ) = p n (\sqrt{S_n} + \sqrt{S_{n-1}}) = p_n

( S n S n 1 ) = 1 (\sqrt{S_n} - \sqrt{S_{n-1}}) = 1

Adding both equations gives:

2 S n = p n + 1 2 \sqrt{S_n} = p_n + 1

S n = ( p n + 1 2 ) 2 S_n = (\frac{p_n + 1}{2})^2

The expression ( p n + 1 2 ) 2 (\frac{p_n + 1}{2})^2 can be interpreted as the sum of all odd numbers up to p n p_n .

However, these values will never be equal, since S n S_n will be greater than the sum of odd numbers up to n = 4 n = 4 due to the even prime 2 2 , and less afterwards due to non-prime odd numbers being skipped, starting with 9 9 .

Excuse me, but I don't understand why ( p n + 1 2 ) 2 (\frac{p_n+1}{2})^2 can be interpreted as sum of all odd numbers up to p n p_n ?

Tin Le - 10 months, 2 weeks ago

Log in to reply

If o n = 2 n 1 o_n = 2n - 1 is the nth odd number, then n = o n + 1 2 n = \frac{o_n + 1}{2} .

The sum of the first n n odd numbers is n 2 n^2 (see properties of square numbers or sum of arithmetic progression ).

Therefore, the sum of all odd numbers up to o n o_n is ( o n + 1 2 ) 2 (\frac{o_n + 1}{2})^2

Adrian Klaeger - 10 months, 1 week ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...