Before I get flamed, yes this is a homework question, although its not being marked as I'm learning this course on the side, and will take it in september.
The questions is:
Show that (x - y) is a factor of xn - yn. I don't have a clue how...
Thanks
Printable View
Before I get flamed, yes this is a homework question, although its not being marked as I'm learning this course on the side, and will take it in september.
The questions is:
Show that (x - y) is a factor of xn - yn. I don't have a clue how...
Thanks
(x - y)*(xn-1 + xn-2*y + . . . + yn-1) = xn - yn
For example, the following.
(x - y)*(x + y) = x2 - y2
(x - y)*(x2 + x*y + y2) = x3 - y3
(x - y)*(x3 + x2*y + x*y2 + y3) = x4 - y4
Sorry if there are any typo's in the above.
Thanks:)
what Guv said was true, but it does not prove that x-y is a factor of x^n-y^n
you could use the factor theorem: if x-a is a factor of polynomial f(x), then f(a)=0
f(x):=x^n-y^n
and we see that f(y)=0 ie x-y is a factor of f(x)=x^n-y^n
BugzPodder: Very cute.
I was considering posting multiplied out versions of the following.It is easy to show that every thing cancels out but the following.
- x*(xn-1 + xn-2*y + . . . + yn-1)
-y*(xn-1 + xn-2*y + . . . + yn-1)Isn't that a lot more work and not so elegant as your post?
- xn - yn
mods work nicely too:
x == y (mod [x-y]) ->easy to see, just take y from each side
=> xn - yn (mod [x-y])
== yn - yn (mod [x-y])
== 0 (mod [x-y])
=> [x-y] is a factor of xn - yn
P.S, i know that mods are only supposed to be for integers, but all of the logic used here works for reals too.
You and mods. :rolleyes: :pQuote:
Originally posted by sql_lall
mods work nicely too:
x == y (mod [x-y]) ->easy to see, just take y from each side
=> xn - yn (mod [x-y])
== yn - yn (mod [x-y])
== 0 (mod [x-y])
=> [x-y] is a factor of xn - yn
P.S, i know that mods are only supposed to be for integers, but all of the logic used here works for reals too.
but of course...
now that i think of it, because we are talking about factors, i guess that implies integers...
oh, and possibly you could use induction:
let p(n) = xn - yn
(x-y) is a factor of p(1) [as p(1) IS (x-y)]
p(k)-p(k-1)
= xn - yn - xn-1 + yn-1
= (x-y) (something else)
now, all u gotta do is find the "something else"