Sum of Consecutive Integers

Nik Bärtsch's Modul 26 Riff

Listen to the bass line. It's a timeline of 2-3-4 (even though the downbeat is on 3, so it would be 3-4-2, but for our purposes 2-3-4 is fine).

Some Observations

2, 3, 4 are three consecutive integers. The resulting bar length is 2 + 3 + 4 = 9, it's divisible by three.

Suspicion: It's divisible by 3 because it's 3 consecutive integers. How about 3, 4, 5: adds up to 12. 4, 5, 6: adds up to 15.

However, it only seems to work for an odd count of consecutive integers, e.g. 2 + 3 + 4 + 5 = 14, not divisible by 4.

If we regard the median as the symmetry axis:
2 + 3 + 4
n-1 + n + n+1; -1 +1 cancel each other out, we're left with n + n + n = 3n.

3 + 4 + 5 + 6 + 7
n-2 + n-1 + n + n+1 + n+2; -2 +2, -1 +1, cancel each other out, we're left with n + n + n + n + n = 5n.

Conjecture: The sum of k consecutive integers with median n is kn if k is odd. Proof
below.

Why is this cool?

Because it means you can superimpose two rhythms of length k and n with a timeline of k consecutive integers with median n and they all will match up if k is odd. (due to the commutativity of addition, you don't even need to play the integers in consecutive order but can permute them at will)

Examples

Click on the timeline link to hear it play.

4 5 6 => k = 3, n = 5, kn = 15.
k 3 3 3 3 3
n 5 5 5
kn 4 5 6

6 7 8 => k = 3, n = 7, kn = 21.
k 3 3 3 3 3 3 3
n 7 7 7
kn 6 7 8

2 3 4 5 6 => k = 5, n = 4, kn = 20.
k 5 5 5 5
n 4 4 4 4 4
kn 2 3 4 5 6

Proof

Conjecture: The sum of k consecutive integers with median n is kn if k is odd.

The sum of the first n integers is m(m+1)/2. So the sum of k consecutive integers is
m(m+1)/2 - (m-k)(m-k+1)/2, simplified:
((2m+1)k - k2)/2. According to the conjecture this is supposed to equal kn if k is odd.
((2m+1)k - k2)/2 = kn.
(2m+1 - k)/2 = n.
n must be integer, so (2m+1 - k)/2 must be integer, too, hence (2m+1 - k) must be even.
2m+1 is guaranteed to be odd, hence k must be odd in order for the result to be even.
q.e.d.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

© Bernhard Wagner, May 28th, 2012.