Difference between revisions of "User:Idk12345678"
Idk12345678 (talk | contribs) (→My Solutions) |
Idk12345678 (talk | contribs) (→(x+y)^n \equiv x^n + y^n \pmod{n} if n is prime.) |
||
Line 38: | Line 38: | ||
==Some Proofs I wrote== | ==Some Proofs I wrote== | ||
− | ===<math>(x+y)^n \equiv x^n + y^n \pmod{n}</math> if <math>n</math> is prime. | + | ===Binomial Expansions mod n when n is prime === |
+ | Claim: <math>(x+y)^n \equiv x^n + y^n \pmod{n}</math> if <math>n</math> is prime. <cmath></cmath> | ||
Proof: Expanding <math>(x+y)^n</math> out, all the coefficients are of the form <math>n \choose r</math> by the binomial theorem. To prove the original result we must show that if <math>r \neq 1</math> and <math>r \neq n</math>, then <cmath>{n \choose r} \equiv 0 \pmod{n}</cmath>. Because <cmath>{n \choose r} = \frac{n!}{r!(n-r)!}</cmath>, <cmath>{n \choose r} \times r!(n-r)! = n!</cmath>, which is divisible by <math>n</math>, so the original expression must be divisible by <math>n</math>. However if <math>n</math> is prime, <cmath>\gcd(n, r!(n-r)!) = 1</cmath>, since <math>r!</math> does not contain <math>n</math>(because <math>r<n</math>). Therefore, in order for <cmath>{n \choose r} \times r!(n-r)!</cmath> to be divisible by <math>n</math>, <math>n \choose r</math> is divisible by <math>n</math>. All the coefficients of the expansion(besides the coefficients of <math>x^n</math> and <math>y^n</math>) are of the form <math>n \choose r</math>, and <cmath>{n \choose r} \equiv 0 \pmod{n}</cmath>, so they cancel out and <cmath>(x+y)^n \equiv x^n + y^n \pmod{n}</cmath> if <math>n</math> is prime. <math>\square</math> | Proof: Expanding <math>(x+y)^n</math> out, all the coefficients are of the form <math>n \choose r</math> by the binomial theorem. To prove the original result we must show that if <math>r \neq 1</math> and <math>r \neq n</math>, then <cmath>{n \choose r} \equiv 0 \pmod{n}</cmath>. Because <cmath>{n \choose r} = \frac{n!}{r!(n-r)!}</cmath>, <cmath>{n \choose r} \times r!(n-r)! = n!</cmath>, which is divisible by <math>n</math>, so the original expression must be divisible by <math>n</math>. However if <math>n</math> is prime, <cmath>\gcd(n, r!(n-r)!) = 1</cmath>, since <math>r!</math> does not contain <math>n</math>(because <math>r<n</math>). Therefore, in order for <cmath>{n \choose r} \times r!(n-r)!</cmath> to be divisible by <math>n</math>, <math>n \choose r</math> is divisible by <math>n</math>. All the coefficients of the expansion(besides the coefficients of <math>x^n</math> and <math>y^n</math>) are of the form <math>n \choose r</math>, and <cmath>{n \choose r} \equiv 0 \pmod{n}</cmath>, so they cancel out and <cmath>(x+y)^n \equiv x^n + y^n \pmod{n}</cmath> if <math>n</math> is prime. <math>\square</math> | ||
Revision as of 15:00, 31 March 2025
Contents
My Solutions
Some Proofs I wrote
Binomial Expansions mod n when n is prime
Claim: if
is prime.
Proof: Expanding
out, all the coefficients are of the form
by the binomial theorem. To prove the original result we must show that if
and
, then
. Because
,
, which is divisible by
, so the original expression must be divisible by
. However if
is prime,
, since
does not contain
(because
). Therefore, in order for
to be divisible by
,
is divisible by
. All the coefficients of the expansion(besides the coefficients of
and
) are of the form
, and
, so they cancel out and
if
is prime.
Volume of Cylinder, Cone, and Sphere
If we have a function , that can be rotated to make a shape, the area underneath it will turn into the volume. However, since we are revolving it in a circular motion, the area will actually become the radius. Another way of seeing this is splitting it into infinite circles and adding up all of them. Therefore, for a function
, we have the volume of the solid of revolution to be
.
Cylinder: A cylinder can be expressed a solid of revolution by revolving the line around the
-axis. To find the volume, we can find the area under the curve, and then when we revolve it, it becomes the volume. The radius is
and the height,
, is the upper bound of integration. We have
. Integrating, we get
. This is the formula of a cylinder.
Cone: If you are given the height and radius of the cone, and you have the point on your line(since the vertex is 0), then
, because the height is the x-coordinate and the radius is the y(for the same reason seen above in the cylinder). Now, since we have
, we know the y-intercept, and we can only have one slope. If
, and
is the slope, then we have
, and therefore
, so the equation is
. For the integral, we get
.
Sphere: The equation of a sphere should be a circle, but that is a relation and not a function. Therefore, we can use the top half of a circle, and the bottom half will get filled in when it rotates. Therefore, we get . The diameter is
to
, so that is where we integrate.
.