Home > math > Sum of Consecutive Integers: Update 2

Sum of Consecutive Integers: Update 2

November 4th, 2009 Mr. H Leave a comment Go to comments

This is a follow up to Sum of Consecutive Integers and Sum of Consecutive Integers: Update 1.

I presented the original question (how many ways can 1,000 can be written as sum of consecutive integers) to students in my Pre-Calculus Honors class. I estimate that about 10 students of 80 have seriously attempted it and some came close. I was pleasantly surprised when, on the next school day, one student presented to me the correct solution. I gave that student another number to try out and this time he came close. He missed the number of solutions by 1. As soon as I pointed it out, he found it within 2 minutes. He finds the number of ways by actually figuring out what the consecutive integers were and counted how many ways he found. He definitely had an algorithm to find the sequences of consecutive integers. That’s a good sign right?

The question for me as a teacher is (and one raised by Jonathan) is how did the student figure out the solution and how do you support students so they can discover the solution. The way I went about it is to figure out how I would solve it and how my line of questions led to the solution so that I can support my student through the same process. The problem upon reflection is, however, that tools available to me may not be available to students. I can’t expect students to be able to use my method. So I was excited that one of my students was able to find the solution.

When I asked the student how he arrived at the solution. He answered frankly and told me that he found the solution online. So I extended him an opportunity to get some “make-up credit” (since we don’t have extra credit at our school) if he could come up with a solution to extension to the first question (calculate the number of ways that N can be written as the sum of consecutive integers given an integer N). I have yet to hear from him. More importantly, I didn’t find out how one would go about finding a solution and how I could support that process for all students.

So I stayed busy with the second question which asked for a generalized solution. First thing I did was investigate, try out a few numbers and see how they worked to see if there were any easy patterns. Several versions later and we have SumConInt v1.1a. I have made one change to clarify the connections. I am counting a consecutive integer sequence of length 1. All numbers can be written as the sum of the sequence of integer starting with it with length 1.

First step is see if there are any obvious patterns for all the numbers from 1-50.
1-50
I didn’t find any patterns from the above. It seems that the number of ways increases when the numbers increase, but not in any familiar way. It also seemed that the number of ways also didn’t increase smoothly or steadily.

So I asked if there were any patterns to be found in even numbers.
evens
No patterns stood out for me on this one immediately. However I did notice that some large numbers have few number of ways they can be written, they seem to be powers of 2. We’ll examine this later.

I asked if there were any patterns to be found in the odd numbers.
odds
Didn’t see any patterns here. I did notice that 45 is the first number with double digit number of ways it can be written as sum of consecutive digits. Scrolling back up to check 1-50. I notice that the greatest number of ways seem to come up first for odd numbers; 3 in 4 ways, 9 in 6 ways, 15 in 8 ways, and 45 in 12 ways. I’ll investigate this later.

Time to follow up on the powers of 2 angle with prime factorization.
2^n
Seems like powers of 2 all have exactly 2 ways. Even factors don’t seem to have any effect on the number of ways.

Let’s check powers of 3 angle.
3^n
The number of ways increase linearly as the power of 3. Given 3n, the number of ways seems to be 2(n+1).

Let’s take a number with many factors like 60 and see if powers of 2 has any effect on the number of ways. My suspicion is that it will not have an effect on the number of ways.
60x2^n
That confirms it!

Let’s try this again but with powers of 3. There should be an increase in number of ways with increasing powers of 3.
60x3^n
I think I am on to something. This time though, instead of increasing by 2 as I saw earlier, it’s increasing by 4. Maybe the factor of 5 is doing something. I’ll follow up on it later.

Let’s investigate squares and cubes. First the squares.
squares

And now the cubes.
cubes
Hrm. It seems the number of ways is primarily determined by odd factors.

Let’s try this again but only with odd squares and cubes. First the odd squares.
odd.squares
And the odd cubes.
odd.cubes
225 is the most interesting number in here. It seems given a prime factorization, where n and m are exponents of 2 distinct odd prime numbers the, the number of ways is 2(n+1)(m+1). This may be the pattern. But why does it work?

Let’s build some numbers using only odd prime numbers and see if it follows the pattern.
set1
#1 – 2(1+1) = 4 ways
#2 – 2(2+1) = 6 ways
#3 – 2(1+1)(1+1) = 8 ways
#4 – 2(2+1)(1+1) = 12 ways
#5 – 2(1+1)(1+1)(1+1) = 16 ways

Let’s check this again, but this time with odd primes. If I’m correct all odd prime numbers can be written in 2(1+1) = 4 ways.
odd.primes

Let’s try a few more combinations of odd factors.
set2set3set4

Let’s try one more combination of odd prime factors where the powers are 1 and 2.
set5
Looks good!

Let’s look in more detail why the exponents of odd factors seem to determine the number of ways. Notice for every number the “1st int” gives the first integer in the sequence, “num int” gives the number of integers in the sequence, and “median” gives the median of the sequence. Notice that “num int” time “median” gives the actual number.
60x3^n-table
Odd prime factors determine the number of unique odd factors in the sequence. If a number has 3151 in the prime factorization. We can have 1(3050), 3(3150), 5(3051), and 15 (3151) as the distinct odd factors. Multiplying the number 60 by powers of 3 increases the number of unique odd factors.

Let’s see what happens when we multiply by powers of 2.
60x2^n-table
Additional factors of 2 does not increase the number of ways, it does change the first even number of terms in a sequence. The higher the number of factors of 2, the greater the number of the first even numbered sequence of terms. It also does seem that these even numbered sequences are all multiples of the odd numbered factors.

The answer, it seems, is the number of distinct odd factors multiplied by two. Interestingly, Jonathan followed up his extension to the puzzle with a question that asked for the number of unique factors (odd or even) of a given number as if to hint at the solution.

I’ve had a few weeks to reflect on process of solving this puzzle. I’ve also had given some students who wanted to explore the puzzle a little further a link to the tool that I used to figure out the answer (SumConInt v1.1a). It is not obvious to students why I had those presets or why the sequence of questions led to the answer. I’m not sure how I would keep them motivated while solving the puzzle, especially if they didn’t have the tool like I did. I’m less sure whether what I did really helps them learn about the problem solving process or whether I’m giving them the solution to the question. If I am leading them to the solution with questions, is there any purpose to have them figure this problem out? I guess I’ve had limited success with this question. I’d be interested in knowing how other teachers might support students while solving this puzzle.

Sum of Consecutive Integers
Sum of Consecutive Integers: UPDATE 1
Sum of Consecutive Integers: UPDATE 2

Categories: math Tags: , , , , ,
  1. November 8th, 2009 at 14:47 | #1

    I need to work on presentation. The class had worked on the number of factors of any number several weeks earlier.

    On Monday we worked on writing 1000 as the sum of consecutive integers. And the next Monday I posed the extension to N.

    I left them to work in groups, and let them (forced them) to move between groups, to fertilize discussion.

    One group found the powers of 2 angle, and posted it in front. Several groups found that doubling a number did not increase the number of ways.

    And finally two groups expressed that they thought it was twice the number of odd factors only, with reasonable explanation. No one, disappointingly, pulled on the week of three weeks earlier to express the answer in terms of N’s prime factorization. I led them directly there (not by telling them, but by carefully giving them a list of questions) the following Monday.

  2. November 8th, 2009 at 15:18 | #2

    @Jonathan
    I posed the first question as an activity for students who finished the test/quiz early. A few students have seriously attempted it, but only one student got the solution (he found the solution online) and showed it to me the next day.

    I may have missed an opportunity here to engage them in problem solving. If I do this in the future, I’ll probably pick an off day (like an assembly or minimum day) to spend the entire period. I like that you were hinting at the solution for a few weeks before you hit them with the extension. I also like that you moved them group to group.

    For me, the solution came somewhat quickly. But it took me a while to figure out why it worked. I had read the comments on your post and on Nick’s post. I can see how some students might build some intuition about the solutions doing some of the things mentioned in the comments. When I thought about how I found the solution, somehow I don’t see how my students would cook up scripts to help them solve a problem (I don’t think I can expect them to be able to do that). I’m not sure that I would’ve found the solution as quickly without a browser and Notepad or whether I would’ve stayed motivated to finish it.

  1. No trackbacks yet.

Spam protection by WP Captcha-Free