Problem statement here.
We prove by induction.
First note that lcm[1,2,…,n+1]=dn+1=pdn iff n+1 is a power of a prime number p and dn+1=dn otherwise. Also note that, if n+1=pk, then pk−1 is the highest power of p that divides dn.
Now if n+1 is not a power of a prime, then we need to choose A and B such that
Adn+Bn+1=1dn
We can write 1n+1 as Qdn where Q=dnn+1 which is an integer.
Choosing A=Q+1 and B=−1 will do the trick.
Now assume n+1 is the power of a prime p. We need to choose A and B such that
Apk−1Q+Bpk=1pkQ
Note that we have p and Q are relative prime (more fomally, (p,Q)=1) because that highest power of p that divides dn is pk−1.
i.e we need
pA+BQ=1
Since (p,Q)=1, by Bezout's Identity there exist A,B such that pA+BQ=1 and we are done.
We prove by induction.
First note that lcm[1,2,…,n+1]=dn+1=pdn iff n+1 is a power of a prime number p and dn+1=dn otherwise. Also note that, if n+1=pk, then pk−1 is the highest power of p that divides dn.
Now if n+1 is not a power of a prime, then we need to choose A and B such that
Adn+Bn+1=1dn
We can write 1n+1 as Qdn where Q=dnn+1 which is an integer.
Choosing A=Q+1 and B=−1 will do the trick.
Now assume n+1 is the power of a prime p. We need to choose A and B such that
Apk−1Q+Bpk=1pkQ
Note that we have p and Q are relative prime (more fomally, (p,Q)=1) because that highest power of p that divides dn is pk−1.
i.e we need
pA+BQ=1
Since (p,Q)=1, by Bezout's Identity there exist A,B such that pA+BQ=1 and we are done.
No comments:
Post a Comment