Prove that (n-1)^2 divides n^k -1

  • Context: Graduate 
  • Thread starter Thread starter popitar
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around proving that \((n-1)^2\) divides \(n^k - 1\) under certain conditions, specifically when \((n-1)\) divides \(k\). Participants explore various mathematical approaches and implications related to this divisibility, including the use of the Euler's totient function and the binomial theorem.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested
  • Homework-related

Main Points Raised

  • Some participants propose that \((n-1)^2\) divides \(n^k - 1\) if and only if \((n-1)\) divides \(k\).
  • Others suggest checking the Euler's totient function \(\varphi{([n-1]^2)}\) as part of the proof.
  • One participant expresses uncertainty about connecting the divisibility of \((n-1)^2\) with the condition \((n-1) \mid k\).
  • A later reply discusses the implications of Lagrange's theorem in this context, noting that either \(k = (n-1) \cdot \varphi{(n-1)}\) or \(k = (n-1) \cdot \varphi{(n-1)} w\) for some integer \(w\).
  • Participants explore the factorization of \(x^k - 1\) and its relation to the divisibility conditions, questioning how to connect these with the condition on \(k\).
  • One participant attempts to express the relationship between \((x-1)\) dividing \(k\) and the polynomial expression \(x^{k-1} + x^{k-2} + ... + x + 1\).
  • Another participant suggests rewriting the expressions and using the Euclidean algorithm to clarify the divisibility relationships.
  • There are multiple attempts to clarify the implications of substituting \(x-1\) with \(a\) and how it relates to the overall proof.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the proof or the methods to be used. There are competing views on the best approach to demonstrate the divisibility, and some participants express uncertainty about the concepts involved.

Contextual Notes

Some participants mention limitations in their current understanding of the Euler's totient function and the binomial theorem, which may affect their ability to engage with the proof fully. There are unresolved mathematical steps and assumptions that are not explicitly stated.

popitar
Messages
17
Reaction score
0
Let n>=2 and k>0 be integers. Prove that (n-1)^2 divides n^k -1 if and only if (n-1) divides k.
 
Physics news on Phys.org
you may want to check [tex]\varphi{([n-1]^2)}[/tex]
 
I know that (n-1)^2 | (n^k-1) means that (n-1)^2 *m= (n-1)(n^[k-1]+n^[k-2]+...+n+1). But how do I connect this with (n-1)*a=k? Thanks.
 
al-mahed said:
you may want to check [tex]\varphi{([n-1]^2)}[/tex]

How do I check it?
 
popitar said:
How do I check it?

this is an implication "if and only if", <==>

I'll do the part <==, then you try to do the part ==>

prove that if n-1|k, then [tex](n-1)^2|n^k-1[/tex]:

proof:

first what is [tex]\varphi{([n-1]^2)}[/tex] ??

it is [tex](n-1)^{2-1}\cdot \varphi{(n-1)}=(n-1)\cdot \varphi{(n-1)}[/tex]

now, by euler, as [tex]gcd(n-1,\ n)=1[/tex] then

[tex]n^{\varphi{([n-1]^2)}}=n^{(n-1)\cdot \varphi{(n-1)}}\equiv\ 1\ mod\ (n-1)^2[/tex]

and by Lagrange we know that either [tex]k=(n-1)\cdot \varphi{(n-1)}[/tex] or [tex]wk=(n-1)\cdot \varphi{(n-1)}[/tex]

notice that [tex]\varphi{(n-1)}<n-1<k[/tex], and by hipothesis n-1|k

EDIT: conclusion is: therefore [tex]n^k\equiv\ 1\ mod\ (n-1)^2[/tex]
 
Thank you! But at this moment we didnt study anything about Phi function. Do you know any other method?
 
al-mahed said:
(...)and by Lagrange we know that either [tex]k=(n-1)\cdot \varphi{(n-1)}[/tex] or [tex]wk=(n-1)\cdot \varphi{(n-1)}[/tex]

oops, in fact it is

(...)and by Lagrange we know that either [tex]k=(n-1)\cdot \varphi{(n-1)}[/tex] or [tex]k=(n-1)\cdot \varphi{(n-1)}w[/tex]

popitar, try to rewrite and "play" with the equations you know related to it, factoring x^k-1 is a way, did your teacher give any similar problem with solutions?
 
Thank you so much, Al-Mahed!
Factoring x^k - 1 is (x-1)(x^[k-1]+x^[k-2]+...+x+1), and I see that (x-1)^2 divides x^k-1means that (x-1) divides (x^[k-1]+x^[k-2]+...+x+1), but I don't see how I connect this with (x-1) divides k..
 
popitar said:
Thank you so much, Al-Mahed!
Factoring x^k - 1 is (x-1)(x^[k-1]+x^[k-2]+...+x+1), and I see that (x-1)^2 divides x^k-1means that (x-1) divides (x^[k-1]+x^[k-2]+...+x+1), but I don't see how I connect this with (x-1) divides k..


how many elements you have in x^[k-1]+x^[k-2]+...+x+1 ?
 
  • #10
I believe k elements.
 
  • #11
popitar said:
I believe k elements.


correct, k elements, now you must show some work on it, grab a coffe (if you like) and think about it

hint: what means "x-1 divide k" in terms of euclidian form a=qb+r? how could you WRITE it down as an equation? and how to use it? you already saw by yourself you need to prove that x-1 divide x^[k-1]+x^[k-2]+...+x+1
 
  • #12
(x-1) divides k means (x-1) * p = k for some p positive integer. Then I multiply it by (x-1) I get the following (x-1)^2*p=k*(x-1). Then I can say that x^k-1 = k*(x-1)? But (x-1)*z=x^[k-1]+x^[k-2]+...+x+1.. ahh
 
  • #13
This is all I have
(x-1)^2 | x^k - 1 <=> (x-1)|k
(x-1)^2 * m = x^k -1 <=> (x-1)*z=k
(x-1)^2 *m = (x-1)(x^[k-1]+x^[k-2]+...+x+1) <=> (x-1)*z=k
(x-1)*m = x^[k-1]+x^[k-2]+...+x+1 <=> (x-1)*z=k
 
  • #14
write x-1=a, then k=ma=m(x-1) for some integer m, since x-1| k, it yields x=a+1

x^[k-1]+x^[k-2]+...+x+1 = (a+1)^[k-1]+(a+1)^[k-2]+...+(a+1)+1 = a*S + k=(x-1)S+m(x-1), since you'll have k 1's, and the rest of it multiplied by a
 
  • #15
Can you explain this part :(a+1)^[k-1]+(a+1)^[k-2]+...+(a+1)+1 = a*S + k?
 
  • #16
Ok. So you said I replace (x-1) by a, and x=a+1
(x-1)^2 | x^k - 1 <=> (x-1)|k
(x-1)^2 * m = x^k -1 <=> (x-1)*z=k
(x-1)^2 *m = (x-1)(x^[k-1]+x^[k-2]+...+x+1) <=> (x-1)*z=k
(x-1)*m = x^[k-1]+x^[k-2]+...+x+1 <=> (x-1)*z=k
a*m=(a+1)^[k-1]+(a+1)^[k-2] + ...+ (a+1)+1 <=> a*z=k
And from here what to do? Thanks!
 
  • #17
Prove that a divides bc if and only if a/(gcd(a,b)) divides b.
 
  • #18
We need to proofs:
1). If a|bc then a/d divides b, where d = gcd(a,b).
2). If a/d divides b then a|bc.
 
  • #19
popitar said:
Can you explain this part :(a+1)^[k-1]+(a+1)^[k-2]+...+(a+1)+1 = a*S + k?

Popitar, I'm not a teacher, I don't even have a major in mathematics, I'm just a curious guy, so you have to check all this stuff with your teacher.

Anyway, I think you are having trouble to understand the basic concepts of proof, but don't worry, you'll get it soon enough (it is quite confusing at the beginning).

You have to understand the binomial theorem, its expansion, to see that you'll have all the expression being divisible by a=x-1. So if a valid substitution yields a multiple of x-1 you're done in your demonstration that x-1 divide the expression, as required.

Now I think is a good idea turn out the internet and get pencil and paper... try to figure out some stuff by yourself now! Use a calculator to verify some ideas, you need to study more the basics, the euclidian algorithm is the most important thing right now.

That's the stuff you must study now in order to advance.


take care
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 25 ·
Replies
25
Views
4K
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
48
Views
6K
Replies
8
Views
5K