Is 1+2+3+4+...+(n-1) divisible by N (odd positive integer)?

  • Thread starter Thread starter Isaak DeMaio
  • Start date Start date
  • Tags Tags
    Induction Proof
Click For Summary
SUMMARY

The discussion centers on proving that the sum of the first (n-1) integers, specifically 1 + 2 + 3 + ... + (n-1), is congruent to 0 modulo n when n is an odd positive integer. Participants suggest using mathematical induction, establishing a base case with n=3, and then proceeding to the induction step by assuming the statement holds for n=k and proving it for n=k+2. Key expressions include the sum formula (n-1)/2 * n and the congruence relations that arise during the proof.

PREREQUISITES
  • Understanding of mathematical induction
  • Familiarity with modular arithmetic
  • Knowledge of congruences and their properties
  • Basic algebraic manipulation skills
NEXT STEPS
  • Study the principles of mathematical induction in depth
  • Learn about modular arithmetic and its applications
  • Explore proofs involving congruences and their implications
  • Practice problems related to sums of integers and their divisibility
USEFUL FOR

Mathematics students, educators, and anyone interested in number theory or modular arithmetic proofs.

Isaak DeMaio
Messages
74
Reaction score
0
1. This is an extra credit question for me, we haven't gone over this at all.
Show by induction that if N is an odd positive integer then 1+2+3+4+...+(n-1) congruent 0 (mod n)

3. Never done a problem like this before, but I assume after the (n-1) it would be (n-1)+n congruent 0 (mod n+2)
 
Physics news on Phys.org
Isaak DeMaio said:
1. This is an extra credit question for me, we haven't gone over this at all.
Show by induction that if N is an odd positive integer then 1+2+3+4+...+(n-1) congruent 0 (mod n)

3. Never done a problem like this before, but I assume after the (n-1) it would be (n-1)+n congruent 0 (mod n+2)
... after the (n-1) it would be n+(n+1) congruent 0 (mod n+2)

The following may fit induction better.
Any odd integer may be expressed as 2k+1, where k is an integer. If n = 2k+1, then the next odd integer (greater than n) is given by n+2 = 2(k+1)+1 .

Then n-1 = 2k. So you need to show that 1+2+3+4+...+2k ≡ 0 (mod 2k+1 )​
 
SammyS said:
... after the (n-1) it would be n+(n+1) congruent 0 (mod n+2)

So would it be:
0(mod n) + [n+(n+1)] = 0(mod n+2)

if done the way the question presents itself.
 
Isaak DeMaio said:
So would it be:
0(mod n) + [n+(n+1)] = 0(mod n+2)

if done the way the question presents itself.

Yes, for the induction step.
 
For n odd, n>0, then n=2k+1 for some k≥0.

Show that 1+2+...+2k = k(2k+1) .

This is equivalent to showing that:

1+2+...+(n‒1) = ((n‒1)/2)(n)
 
SammyS said:
Yes, for the induction step.

How would you cancel out the mods? Or do such things to them to try and make them equivalent?
 
You can get rid of the modulus business by using the definition of 0 (mod n). For example, the equation
1 + 2 + 3 + ... + (n - 1) \equiv 0 (mod n)
is the same as saying
1 + 2 + 3 + ... + (n - 1) = kn, for some integer k. (It's also given that n is an odd positive integer.)

You can do something similar for the other modulus equation.
 
SammyS said:
For n odd, n>0, then n=2k+1 for some k≥0.

Show that 1+2+...+2k = k(2k+1) .
The idea here is to use the above as a "Lemma". Proving this by induction is a natural thing to do.

This is equivalent to showing that:

1+2+...+(n‒1) = ((n‒1)/2)(n)

Following what Mark44 said, but using the variable, m, instead of k, which was already used, you have the following

Letting m = (n‒1)/2, you then have:

1+2+...+(n‒1) = (m)(n) .
 
Last edited:
SammyS said:
The idea here is to use the above as a "Lemma". Proving this by induction is a natural thing to do.


Following what Mark44 said, but using the variable, m, instead of k, which was already used, you have the following

Letting m = (n‒1)/2, you then have:

1+2+...+(n‒1) = (m)(n) .

it has to be in K's
so k-1 = mk
 
  • #10
Isaak DeMaio said:
it has to be in K's
so k-1 = mk
No, not at all, if I'm following what you're doing. What I said in my earlier post was
if 1 + 2 + 3 + ... + (n - 1) \equiv 0 (mod n),
then 1 + 2 + 3 + ... + (n - 1) = kn for some integer k.

If your first equation is 1 + 2 + 3 + ... + (k - 1) \equiv 0 (mod n), then the second equation is then 1 + 2 + 3 + ... + (k - 1) = mk for some integer m.

It's not true that k - 1 = mk.
 
  • #11
i meant (k-1) i just didn't do the parent...
 
  • #12
The parentheses aren't the issue here, k - 1 is the same as (k - 1).
 
  • #13
Mark44 said:
No, not at all, if I'm following what you're doing. What I said in my earlier post was
if 1 + 2 + 3 + ... + (n - 1) \equiv 0 (mod n),
then 1 + 2 + 3 + ... + (n - 1) = kn for some integer k.

If your first equation is 1 + 2 + 3 + ... + (k - 1) \equiv 0 (mod n), then the second equation is then 1 + 2 + 3 + ... + (k - 1) = mk for some integer m.

It's not true that k - 1 = mk.

Would the set up be...

(mk) + (k-1) = (m)(k-2)? Why why is it minus 1 and not plus one again?
 
  • #14
You're skipping too many steps for me to follow easily.

Show us your induction proposition and then show is the proposition you need to prove.
 
  • #15
Mark44 said:
You're skipping too many steps for me to follow easily.

Show us your induction proposition and then show is the proposition you need to prove.

I always skip those parts mostly because I don't get those parts.

0(mod n) + [n+(n+1)] = 0(mod n+2)

would that be:
mk + [k+(k+1)] = m(k+2)?
 
  • #16
Isaak DeMaio said:
I always skip those parts mostly because I don't get those parts.
That explains why some of your work is so hard to follow. You can't do an induction proof without showing all three steps.
Isaak DeMaio said:
0(mod n) + [n+(n+1)] = 0(mod n+2)
This makes no sense at all. It is saying that 0 + n + n + 1 = 0; IOW, that 2n + 1 = 0. That's not going to fly.
Isaak DeMaio said:
would that be:
mk + [k+(k+1)] = m(k+2)?


SammyS and I have laid out two slightly different approaches. Go back and read the posts in this thread and pick one of the ways presented, and we can go from there.
 
  • #17
Well I don't know what you mean by "the definition of 0 mod n"
But I'll go your way I suppose.
 
  • #18
If x \equiv 0 (\text{mod n}), that means that x is an integer multiple of n.
 
  • #19
Mark44 said:
If x \equiv 0 (\text{mod n}), that means that x is an integer multiple of n.

Ahhh yes. so could you say," K=N" in this proof? well it'd be k greater = n
 
  • #20
Isaak DeMaio said:
Ahhh yes. so could you say," K=N" in this proof? well it'd be k greater = n
?
As I said a few posts back - Show us your induction proposition and then show is the proposition you need to prove.
 
  • #21
Mark44 said:
?
As I said a few posts back - Show us your induction proposition and then show is the proposition you need to prove.
1+2+3+4+...+(n-1) = (n-1)/2 (n)
n≥1
1...1=0(mod1).
2...2=0(mod2)
3...3=0(mod3)
4...4=0(mod4)

Prove:1+2+3+4+...+(k-1)+k(k+1) = (k-1+1)/2 (k+1)
k≥1

Would that be it?
 
  • #22
I second what Mark44 said.

Added in EDIT:

Ignore this. It was a response to a post a few back.
 
Last edited:
  • #23
SammyS said:
I second what Mark44 said.

didnt i just do that?
 
  • #24
The general statement:
n is a positive odd integer
Show that 1 + 2 + 3 + ... + (n - 1) \equiv 0 (mod n)

Base case:
1 + 2 = 3 \equiv 0 (mod 3)
This establishes the base case.

Induction step:
Let n = k
Assume that 1 + 2 + 3 + ... + (k - 1) \equiv 0 (mod k) is true. (*)

Now let n = k + 2 (to get to the next odd number)
Show that 1 + 2 + 3 + ... + (k - 1) + k + (k + 1) \equiv 0 (mod k + 2). Use (*) in showing this.

Note that the sum on the left starts at 1 and ends at some even number, so in the induction step, you need to add on two more numbers.
 
Last edited:
  • #25
Isaak DeMaio said:
1+2+3+4+...+(n-1) = (n-1)/2 (n)
This is true, but I don't see how it is related to this problem.
Isaak DeMaio said:
n≥1
1...1=0(mod1).
2...2=0(mod2)
3...3=0(mod3)
4...4=0(mod4)
These don't make any sense. In each of the equations above, the left side apparently consists of a single number. That's not what this problem is about.

Equations that are pertinent include the following:
1 + 2 = 3 \equiv 0 (mod 3)
1 + 2 + 3 + 4 = 10 \equiv 0 (mod 5)
1 + 2 + 3 + 4 + 5 + 6 = 21 \equiv 0 (mod 7)

Any one of these establishes a base case, but they don't do anything for establishing the induction step.


Isaak DeMaio said:
Prove:1+2+3+4+...+(k-1)+k(k+1) = (k-1+1)/2 (k+1)
k≥1

Would that be it?
 
  • #26
Mark44 said:
...

Now let n = k + 1 (to get to the next even number)
...

Show that 1 + 2 + 3 + ... + (k - 1) + k + (k + 1) \equiv 0 (mod k + 2). Use (*) in showing this.

Note that the sum on the left starts at 1 and ends at some even number, so in the induction step, you need to add on two more numbers.

Pardon me for butting in, but I'm sure the line I highlighted should say:

Now let n = k + 2 (to get to the next odd number)

The line following that is fine.
 
  • #27
Isaak DeMaio said:
1+2+3+4+...+(n-1) = (n-1)/2 (n)
n≥1

Mark44 said:
This is true, but I don't see how it is related to this problem.
...
At Mark44;
That came from me, in post #5.

The idea here is that this can be proved by induction and that clearly: ((n-1)/2)(n) ≡ 0 (mod n)
 
  • #28
SammyS said:
Pardon me for butting in, but I'm sure the line I highlighted should say:

Now let n = k + 2 (to get to the next odd number)

The line following that is fine.
No problem, and thanks. I edited that post to reflect the change. I was thinking about the last number in the sum, which has to be even, when I wrote that.
 
  • #29
Mark44 said:
No problem, and thanks. I edited that post to reflect the change. I was thinking about the last number in the sum, which has to be even, when I wrote that.

So I should follow this:

The general statement:
n is a positive odd integer
Show that 1 + 2 + 3 + ... + (n - 1) 0 (mod n)

Base case:
1 + 2 = 3 0 (mod 3)
This establishes the base case.

Induction step:
Let n = k
Assume that 1 + 2 + 3 + ... + (k - 1) 0 (mod k) is true. (*)

Now let n = k + 2 (to get to the next odd number)
Show that 1 + 2 + 3 + ... + (k - 1) + k + (k + 1) 0 (mod k + 2).

Then try and prove it to get the correct answer?
 
  • #30
So it would be 3k=0(mod k+2)

Could you subtract the K over to get 2k=0(mod2)?
then would that be it?
 

Similar threads

Replies
7
Views
4K
Replies
20
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
3K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
15
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K