Prime Sums

If p p is an odd prime number, at most how many ways can p p be expressed as a sum of two or more consecutive integers?


A slightly harder problem awaits here .

p \lfloor \sqrt{p} \rfloor 3 1 4 2 p ϕ ( p ) p - \phi(p) None of the choices

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.

2 solutions

Efren Medallo
May 12, 2017

For all odd primes p p , there are only 3 3 ways for it to be expressed as a sum of k k consecutive integers.

  1. k = 2 k = 2 , since p p is odd, then it will be easy to prove this out.
  2. k = 2 p k = 2p , and that specifically is the sequence of integers from ( p 1 ) -(p-1) to p p .
  3. k = p k = p , and that is the sequence of integers from ( p 3 2 ) -(\frac{p-3}{2}) to p + 1 2 \frac{p+1}{2} .

I will post the proof a little while later.

So please tell me how can be 5 expressed as sum of two or more consecutive integers in 3 ways?

akash patalwanshi - 4 years ago

Log in to reply

5 = 2 + 3 5 = 2+3

5 = 4 + 3 + 2 + 1 + 0 + 1 + 2 + 3 + 4 + 5 5 = -4 + -3 + -2 + -1 + 0 + 1 +2 + 3 + 4 + 5

5 = 1 + 0 + 1 + 2 + 3 5 = -1 + 0 + 1 + 2 + 3

Efren Medallo - 4 years ago

Log in to reply

Thank u. I didn't noticed question was asked for whole integers. I consider only positive integers

akash patalwanshi - 4 years ago
Jason Martin
Nov 13, 2017

We have that p = n + ( n + 1 ) + ( n + 2 ) + + ( n + m 1 ) = m n + m ( m 1 ) 2 2 p = m ( 2 n + m 1 ) p=n+(n+1)+(n+2)+\ldots +(n+m-1)=mn+\frac{m(m-1)}{2} \Rightarrow 2p=m(2n+m-1) . In particular, m 2 p m = 2 , p , m|2p \Rightarrow m=2, p, or 2 p 2p (because there must be 2 2 or more integers, m 2 m \geq 2 ). This yields exactly 3 \boxed{3} solutions for ( m , n ) (m,n) .

Note from this, we find n = p 1 2 , p + 1 2 , n=\frac{p-1}{2}, \frac{p+1}{2}, or ( p 1 ) -(p-1) respectively. As an example of n = ( p 1 ) n=-(p-1) , consider p = 5 p=5 . Then 4 3 2 1 + 0 + 1 + 2 + 3 + 4 + 5 = 5 -4-3-2-1+0+1+2+3+4+5=5

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...