Consecutive Conundrum

Let n n be a positive integer. Consider this statement:

"The sum of n n consecutive integers is a multiple of n n ."

True only for n = 1 n=1 True only for odd n n True for all n n True only for prime n n

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

Daniel Liu
Aug 26, 2015

Clearly, n n consecutive numbers give the residues 0 n 1 ( m o d n ) 0\to n-1\pmod{n} . Thus, their sum is simply S n ( n 1 ) 2 ( m o d n ) S\equiv \dfrac{n(n-1)}{2} \pmod{n} Clearly if n n is odd then n ( n 1 ) 2 0 ( m o d n ) \dfrac{n(n-1)}{2}\equiv 0\pmod{n} . It remains to prove this is not true for even n = 2 k n=2k . But n ( n 1 ) 2 = k ( 2 k 1 ) ≢ 0 ( m o d 2 k ) \dfrac{n(n-1)}{2} = k(2k-1)\not\equiv 0\pmod{2k} so this property is true for odd n n only.

Joel Toms
Aug 26, 2015

Two solutions in one. Lucky you!

\\

Argument using congruencies

For any integer n n , the set of congruencies modulo n n of any n n consecutive integers is exactly the set { 0 , 1 , 2 , , n 1 } \{0,\,1,\,2,\,\dots,\,n-1\} . In other words:

Let A = { m , m + 1 , , m + n 1 } A=\{m,\,m+1,\,\dots,\,m+n-1\} , for some positive integer m m (so A A is a set of n n consecutive integers). Then:

R = { r Z 0 r n 1 ; a A : a r m o d n } = { 0 , 1 , 2 , , n 1 } . R=\{r\in\mathbb{Z}\,|\,0\le r\le n-1;\,\exists a\in A:\,a\equiv r\,\mathrm{mod}\,n\}=\{0,\,1,\,2,\,\dots,\,n-1\}.

We can now partition R R , starting with subsets that sum to n n . Specifically, we make the following pairs:

{ 1 , n 1 } \{1,\,n-1\}

{ 2 , n 2 } \{2,\,n-2\}

{ 3 , n 3 } \{3,\,n-3\}

\dots

Now:

  1. If n n is odd, we are left only with { 0 } \{0\} . So all of the remainders r r sum to a multiple of n n , and the original sum must therefore be a multiple of n n .

  2. If n n is even, we are left with { 0 } \{0\} and { 1 2 n } \{\frac12n\} . The sum of the remainders r r is, therefore, congruent to 1 2 n m o d n \frac12n\,\mathrm{mod}\,n . Therefore the original sum cannot be a multiple of n n .

So, we conclude:

The sum of n n consecutive integers is a multiple of n n exactly when n is odd \boxed{n\textrm{ is odd}} .

\\

Argument using arithmetic series

A sequence { u r } r = 0 n 1 \{u_r\}_{r=0\rightarrow n-1} of n n consecutive integers may be written as follows:

{ m , m + 1 , m + 2 , , m + n 1 } , \left\{m,\,m+1,\,m+2,\,\dots,\,m+n-1\right\},

where m m is the first integer, and u r = m + r , r = 0 n 1 u_r=m+r,\quad r=0\rightarrow n-1 .

The sum of these integers is as follows:

[ r c l ] . r = 0 n 1 u r = r = 0 n 1 ( m + r ) = n m + r = 0 n 1 r = n m + 1 2 n ( n 1 ) . \begin{array}{c}[rcl] .\sum_{r=0}^{n-1}u_r & = & \sum_{r=0}^{n-1}(m+r)\\ & = & nm+\sum_{r=0}^{n-1}r\\ & = & nm+\frac12n(n-1). \end{array}

Clearly, n m nm is a multiple of n n . So:

r = 0 n 1 u r is a multiple of n 1 2 n ( n 1 ) is a multiple of n . \sum_{r=0}^{n-1}u_r\textrm{ is a multiple of }n\Leftrightarrow\frac12n(n-1)\textrm{ is a multiple of }n.

Now:

  1. If n n is odd, 1 2 ( n 1 ) \frac12(n-1) is an integer, so 1 2 n ( n 1 ) = n ( 1 2 ( n 1 ) ) \frac12n(n-1)=n\left(\frac12(n-1)\right) is a multiple of n n . Therefore, the original sum is a multiple of n n .

  2. If n n is even, n 1 n-1 is odd. Therefore, 1 2 n ( n 1 ) \frac12n(n-1) is an odd multiple of 1 2 n \frac12n , which cannot be a multiple of n n . Therefore, the original sum is not a multiple of n n .

So, we conclude:

The sum of n n consecutive integers is a multiple of n n exactly when n is odd \boxed{n\textrm{ is odd}} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...