#elementary-number-theory
1 messages · Page 75 of 1
Am I crazy or are they not proving 1?
theyve shown a different statement
must be a typo in 1 right?
cause i was thinking that product doesnt even mean anything
yeah and in the proof of the other too they keep using this result so it must have been a typo
I assume they just meant what they write in the end of the proof
I am trying to get a sense of the intuition for why this is true, but it isn't clear to me. I considered an example where m = 7, n = 3, q = 2, and r = 1 and confirmed the result, and compared the gcd's of not subtracting 1 and subtracting 1, but that didn't reveal much to me. I don't have a sense for why subtracting 1 from each of the values in the equation would make the gcd's become equal.
r=gcd(m,n)?
Let gcd(x^n-1,x^r-1)=y
Let's say a(x^n-1)+b(x^r-1)=y for some a,b. Then, Note (x^m-1)-x^(m-n)(x^n-1)=x^(m-n)-1
Repeating that, we get x^r-1 can be written as a linear combination of x^m-1 and x^n-1
Which means, a(x^n-1)+b(x^m-1)=y for some a,b
That is gcd(x^n-1,x^m-1) divides y
what motivated you to use x^r-1?
Well, That's your proposition
oh, sorry, I misread the syntax was all
Similary you can show y divides gcd (x^n-1,x^m-1)
The Intuition as to why this works is that we can make an "euclidean algorithm" work for powers(ok,we use this proposition to establish that)
That is if a|gcd (m,n)
x^a-1 can be written as a linear combination of x^m-1 and x^n-1
Is it typical to look to represent a number as a linear combination in order to show divisibility?
yes, I mean that. Because that is essentially the approach you took
I mean, it makes sense that if something divides a and b then it will divide c
I just never would have thought to use a linear combination
There are Basically 2 kinds of approaches in elementary number theory
1)Make a linear combination like what I did above
- Prime Factorisation
okay, noted. So, some clarifying questions: a, b are not necessarily constrained to the integers, correct?
Here,yes
Ah, well if they are why do I know that the gcd will necessarily be able to be represented by such a linear combination of a(x^n - 1) + b(x^r - 1)?
You know the proof for why that can be done for natural numbers?
No, I do not. To be clear, I don't have experience with elementary number theory.
The proof for why polynomials can be written that way is extremely similar
Okay, so in the case of the natural numbers it would be a proof for why any natural number can be written as a linear combination of two other natural numbers?
Yes
I mean,it doesn't hold for N,it holds for Z
Because you obviously can't write 1 as a natural number combination of 7 and 3
yes, that's true
But,1=7+(-2)3
okay, I'll look into that. It makes sense to me, though because the only distinction really is that in one case I'm dealing with the integers themselves, in the polynomial case we're dealing with integers as polynomial coefficients, but it amounts to the same thing
Now, the step following "then, note" is not clear to me, and also how "repeating" that note will lead us to the conclusion that x^r - 1 can be written as a linear combination of x^m - 1 and x^n - 1
I agree
But why are we using this construction? We could continue constructing x^{m-kn} - 1 in that sort of fashion
but where does that lead us?
This works as long as m-kn>n
Because we are multiplying (x^n-1) with x^(m-(k+1)n)
We can do that only as long as m-(k+1)n>=0
i.e., m-kn>n
So,after sufficient number of steps,you end up with x^{m-qn}-1
=x^r-1
We can only keep doing this so long as >0 because these are supposed to represent natural numbers?
Polynomials can have only non negative powers
Okay, so if I've understood correctly, we are applying this construction iteratively until we arrive at what would be the construction for x^r-1. And the fact that we know that we will eventually end up with x^r - 1 tells us that yes, we can represent x^r - 1 as a linear combination of x^m - 1 and x^n - 1
Yes
Okay, so this makes sense, but can you elaborate on why we know that from m-kn > n implies that m-qn will equal r before necessarily becoming negative
I played with the equality a bit, but I'm probably forgetting some constraint on m and n
Remember how divison is defined?
By the euclidean algorithm?
m=qn+r,if q>r>=0 ,q is the largest number such that m-qn>0
Yes, I remember that
So,You reach x^(m-qn)-1 via this algorithm
Because m-(qn)>0,(m-(q-1)n)>0...(m-n)>0
where q is the largest such integer
Now m-nq=r by that condition
Hm, so is the iterative process that we went through sort of like a euclidean algorithm for polynomials?
We are doing euclidean algorithm on a where x^a-1 is the polynomial
Ah, I see
If you know Euclidean lemma, You can show this is true pretty easily
I am talking about given natural numbers a,b!=0
a=bq+r for some natural numbers q and r<q
Another important hint is every nonempty subset of N has a minimum element
Noted
Okay, well thanks for your help! I think I'm going to look over our discussion and try to summarize this in my head, but this process makes a lot more sense to me now
Hey, I was reviewing this, and regarding the conclusion that x^r - 1 can be written as a linear combination, I am not clear on why we can regard (x^(n - (q - 1)n) - 1) - (x^(m - qn))*(x^n - 1) as a linear combination, simply because this is not the form of a linear combination.
You can rewrite $x^{m-(q-1)n}-1$ in terms of $x^{m-(q-2)n}-1$ and $x^n-1$
DrunkenDrake
DrunkenDrake
It's like if d=m b+ n c
and c=pa+qb
d can be written as a linear combination of a and b
A linear combination in R[x] of polynomials p(x) and q(x)
is m(x)=a(x)p(x)+b(x)q(x) for some polynomials a,b
Ah, I was thinking of linear combinations along the lines of a_1*x_1 + a_2*x_2...
But it's perfectly fine to regard this as a linear combination because we're dealing with a polynomial vector space
Polynomials with coefficients in R(set of real numbers)
Okay. So, it fits the form of a linear combination in R[x]. No problems.
Thanks for the clarification!
Shuri2060
Does this look easy to prove by a. Induction b. Directly?
Just wondering - thought over it for a few minutes and don't see a way yet
Edit: I see a way by induction
Shuri2060
if you can show its a probability then you're done
ik but its not a number theory way
true, you probably should ask your prof, but induction seems the safer choice
aha not an actual Q or anything --- its something I thought of after finding that probability
I see another way to approach this problem:
divide by $n^{n-1}$ on both sides
You get $(1+\frac{1}{n})^{n-1} \leq n$
Which you can prove directly by expanding the LHS and doing a bit more work.
Dagnyr
what does this represent 
yh thats how i got induction
Take a sequence of a n-sided die roll results. Find the probability one of the partial sums of the series is exactly equal to n.
===
eg. 6-sided dice. Keep rolling and adding on result to total. Probability of reaching exactly 6 is 7^5/6^6
Given a function f mapping integers to integers, if a-b divides f(a)-f(b), can we say f is an integer polynomial?
no, take f(x)= x(x+1)/2 @broken igloo
maybe I misunderstand 'divides' here though
oh, I think the example still works in either case lol
yeah because 2-0 does not divide f(2)-f(0)=3, so that's not a counterexample
pick a,b of different parity
it's contingent upon when it divides
3-0 divides f(3)-f(0), but f is not an integer polynomial
oh I see, you are treating it as for some a, b. I was thinking of for all integers a, b.
I guess when a=b you're dividing by 0, or I guess you can exclude that if you want that way or
maybe I need to rethink the question now
but 0 divides 0 so we are fine
0 = 0x for some integer x
I originally was thinking it was like polynomials in Q[x] and so trivially x-y divides f(x)-f(y) but
well ok I guess not a specific a, b hmm try to think of something
ok I think I have it now
f(x)=1/2
f(a)-f(b)=0
and a-b divides 0
0 = (a-b)*0
no no nevermind doesn't map integers to integers wew
what I know so far is if f(x) is a solution, then so is g(x)-g(x-k)
So, I thought I finished this proof,but I made an arithmetic mistake where the pink question marks are. So, I erased and now I’m a little stuck.
If I add 39a_0 to both sides, I would have a multiple of 13 on the LHS. I’m not quite sure how to finish it off.
Wait, would
$$10(10^{n-1}a_n + ... + 10^0a_1) \equiv 0 (\bmod 13) $$
$$ \implies (10^{n-1}a_n + ... + 10^0a_1) \equiv 0 (\bmod 13)???$$
beeswax
Both sides of what?
This equivalence:
$$10(10^{n-1}a_n + ... + 10^0a_1) \equiv 0 (\bmod 13) $$
I just guessed the implication was true, because that would give me what I want, but I'm foggy on why it's true
DrunkenDrake
ab=0 mod p => a or b = 0 mod p
ahhhh
its just using the fact that things have multiplicative inverses in Z_p, so you can 'cancel' one of the terms and the other has to be 0 then
Person A flips a coin twice. Person B flips a coin 3 times. What is the probability that A obtains more heads than B?
o we have diophantine equation
91x + 23y = 5000.
and I did reverse euclidian algorithm on it, and we get our particular solutions (-1,4), now why would you multiply it with 5000 ?
Because you end up with
91(-1)+23(4)=1?
sure, but that doesn't make sense as to why you would multiply it with 5000
a=b <=> 5000a=5000b
I don't get that tho
Which step do you not get?
5000(91(-1)+23(4))=5000
This
but why don't this dude do that ? his particular solution is x_0 and y_0 while I have to do all these other steps
I mean, That's not exactly direct
You can show given a specific solution (a,b) all solutions are of the form (a+ (k b/(a,b)) ,
b-(k a/(a,b))) for some k
yeah I know
but the thing is
his x_0 and y_0 are the particular solutions
while
In my case particular solutions were not x_0 and y_0
but then I dont have to do
then we have x = -1 -23n
and y = 4+91n
right?
instead
@leaden swan
Yes
but why would you do it the other way?
but if I get this right x = -1 -23n
and y = 4+91n is the general solutions?
Yea, That's the correct approach
but how would we get all our infinite solutions @leaden swan
I mean I can't test all n's
See this
Can someone explaint he fundamental theorem of arthimatic? like i understand it some what but how can we say that $n=p_1p_2...p_s and n=q_1q_2..q_r$
cRaZyNiChOlAs12
Are you looking at a proof of the fundamental theorem?
And this part is showing the uniqueness of the factorization?
I dont need the proof i just dont quite get what the q and p represent? is it the prime factorization of just n?
I'm just asking you to put this in context? Because it seems like the context is someone trying to prove the uniqueness of this factorization
Like, where did you see this?
yea i mean the book already has the proof written out for me
um can we talk about this a little later i have to go to class lol sorry
does anyone here know the creteria for an ellipse to have integer solutions?
The Hasse Minkowski theorem?
i have no clue what that is lol could you give something to read about it?
What do yall consider the "end" of elementary number theory? i.e. when should you start moving on to algebraic/analytic?
Is it around quadratic reciprocity?
just whenever you're interested enough
I got into NT cause I had a bunch of friends who would do them and after a while I just grew out of it and had a taste for more
my entry point was the dirichlet convolution and that got me into more analytic number theory stuff
ty
yea so in my abstract alg class which is just number theory the book goes over the fundament theory of arithmetic. but what i dont understand is since n can only have 1 unique set of primes (or maybe it can have more than that idk im assuming here) then how can it have p_n and q_m?
I really need more context about where you're seeing this
like the surrounding text or something
Yeah this is what I said earlier
so doesn't n have to have a unique set of factorization though?
No, they're stating the uniqueness here
The point is that you can't write it two different ways
The theorem is saying that if you write it down in two ways, then those two ways have to be the same
oooohhh ok that makes a lot more sense when u say it like that
so basically the q is just representing p but in a different spot in the order
Right, and potentially adding some negatives
like you have that 15 = 3 * 5 = (-3) * (-5)
so prime factorization isn't completely ""unique"", but its basically unique up to these negatives and the reordering
ok that makes sense, so could u help me with a proof quick involving that?
no no not like the proof of it its a seperate question
prove that there are no nonzero integers a,b such that $a^2=2b^2$
only put dollar signs around the math things
oh okie
cRaZyNiChOlAs12
This is actually the same thing as saying that sqrt(2) is irrational, maybe you've seen that proof before?
yea its the 2nd part of this question lol
but it asks us to use the arithmetic thing to prove this
ah okay
Yeah cool
so maybe the first thing to think about is what the prime factorization of squares look like
Is there something special about the prime factorization of a^2 for example?
Maybe try some examples like 12^2 or 15^2
that its only 2 and 3s?
uhhh
uh sorta, the book asks me to use fundamental theorem of arithmetic to prove there are no nonzero integers a,b such that $a^2=2b^2$
cRaZyNiChOlAs12
So what does the prime factorization of 15^2 look like
$335*5$
cRaZyNiChOlAs12
Right, what about 12^2?
$22223*3$
cRaZyNiChOlAs12
So we can write the first one as 3^2 * 5^2
mirzathecutiepie
and the second as 2^4 * 3^2 for example
so maybe you can start to see a pattern on what happens on the prime factorization of something squared?
Please scroll up. They're trying to prove that sqrt(2) is irrational in the next part.
Another way to see this, if you have that $n = p_1 p_2 \cdots p_m$ is the prime factorization of $n$, then what does the prime factorization of $n^2$ look like?
Zopherus
idk it has to do something like $p_1^2$ right?
cRaZyNiChOlAs12
Yeah
Play around with more examples, and try to come up with something thats true about the prime factorization of squares
in particular, look at what the powers are
that its always 2 3 of 5?
it becomes prime?
both the factors are to the fourth
its factors are also squared?
i feel like it is right in front of my face and im just missing it lol
Yeah its factors are squared
so what does that mean about the powers that show up in the prime factorization?
uhhhh, can they be 1?
cRaZyNiChOlAs12
and $2^2*349$ is the prime factorization
cRaZyNiChOlAs12
ah so then its factors are always squared or multiples of 2?
factors' powers are always multiples of two
yeah I'm not sure what you mean by "factors are always squared"
since 2 is a multiple of 2
yea thats what i meant i was just complicating it
Right, so back to the original idea
a^2 = 2b^2
so what can we say about the prime factorizations of both sides
really late reply, but I want to get into elliptic curves, and get more practice with my algebra to slowly shift into algebraic geometry
that the factors are always raised to a multiple of 2?
Well that's true for a^2 and b^2 separately, but the right hand side is 2b^2 right? How does the 2 affect the prime factorization?
yeah, quadratic reciprocity, and things like how (Z/pZ)* is cyclic is all you really need
I took a modern algebra course that went up to the beginnings of galois theory, so I should be good to go!
it would make the factor half of what it is supposed to be?
Is that true?
Play around with some examples again, what happens to 2 * 6^2 or 2 * 8^2 or 2 * 12^2?
Sorry, I should've specified that that's all the knowledge you need from elementary number theory. To do things like elliptic curves, you preferably need knowledge of Galois theory and preferably some (classical) algebraic geometry
it makes one of the factors powers odd?
I appreciate the advice. I'm currently doing some self study from a mix of Dummit/Foote and Jacobson for the algebra stuff, so hopefully I can get a good intuition from there
Exactly
So why can't it happen that a² = 2b²
becaues a^2 has to have even powers while 2b^2 has to have odd
and that means that they cant be equal
ayyy
And this is where you use your theorem
If n = a² = 2b²
Then you get two prime factorizations of n
And you can use your theorem to say that they're the "same"
oookkkkk
this makes so much more sense lol
another thing i dont get is proving congruence from modular thingys
Do you have an example?
so something like proving $a+c=b+d (mod n)$
cRaZyNiChOlAs12
Actually either one works
oh yea it can be negative too
(And it's part of showing that equality mod n is a equivalence relation)
so a-b=nk and c-d=nj
Yeah exactly
Reposting my Mathematica function in case anyone can benefit from it:
HighlyCompositeNumberList[n_Integer] :=
Parallelize[
Pick[Range[n],
FoldPairList[{#2 > #1, Max[#1, #2]} &, 0,
Table[DivisorSigma[0, i], {i, 1, n}]]]]
Got a puzzle that i cant seem to solve
if i have a person that can move double the position he moved previously, i want to check if it can reach a certain position
for example, if i want the person to move to (3,4), they can go to 1,0 -> 3,0 -> 3,4 (only parralel to axis)
i cant think of a general way to solve this for any coordinate, can anyone help?
let me clarify
nah I got it
Wait, does he have to move double the previous length, or can he choose?
Right off the bat, any number that sums to 2^n-1 is possible to achieve
And actually, I think that solves the problem
@dusky glacier
hm
Lemme try with 5,2 -> 1, 0 -> 1,2 -> 5,2
ye ok, I recommend thinking in terms of binary
Or rather, think of the 2 coordinates in terms of binary
Notice that if they share a digit, aka if the first is 1021 and 1121, you won't be able to reach it cause they both require a jump of length 2
thus, they cannot share a common digit. However, each jump must be double the length of the previous, so we get the total to 2^n-1
(1 + 2 + 4 + 8...2^n = 2^(n+1) -1)
hm didnt get this
are you talking about binary the number system?
yes
np
Could someone explain quadratic forms to me?
What exactly are you confused about?
a lot, so i get the general defintion but this example im doing doesn't make sense to me
What here doesn't make sense? @bleak robin
So I get the 4-dimensinal part and how we get to m_theta but from there how do you get the for a in k part?
{1, theta, theta^2, theta^3} is a basis for K over Q
what book is this?
It's The Hasse-Minkowski theorem by Adam gamzon, it's a thesis I'm reading for a research project
Ah cool
could anyone expand on the hint for b? I can't get anything useful beyond S has to have all elements odd or all elements even and all elements are equal mod 3
If the first k primes are p_1, ..., p_k, and their product is m, then try to use the fact that #S_(p_i) <= p_i/2 for all i to say something about #S_m through the chinese remainder theorem
@karmic crest
do you mean S[m]? @light flicker
No I mean #S_m, but information on #S_m gives you information about S[m]
oh was confused cos they only define S_p for prime p then, sounds good I'll have a go
I'm assuming if you have #S[m]/m -> 0 you can then get #S[N]/N -> 0 quite easily?
how do i check for solutions in p-adic fields R?
Uh, R is not a p-adic field
But for Q_p, things like Hensel's lemma and the legendre symbols are helpful
alright thanks
thank you so much, im hoping to go into my uni years in 3 years and this really helps :)
np I'm always happy to talk about nt
i want to talk about nt with you 🥺👉👈
man's doing algebraic number theory in high school?
yea xD
What are you doing this research project for?
fun lol
Are you doing it under the direction of a teacher or?
yea, I have a prof from a local university thats helping me
Nice
thanks
so to make sure I'm on the right lines: you'd take x \in S and say x \equiv y (mod m) for 0 <= y < m which is equivalent to x \equiv y (mod p_i) for each i by CRT then count each possible y using #S_p <= p/2?
vaguely yeah
vaguely? :p
I was thinking of it slightly differently but its the same idea
wait isn't it just, p_i/2 possible values mod p_i, so maximum of \prod p_i/2 = m/2^k possible combos overall, then #S[m]/m = 1/2^k -> 0? @light flicker or am I missing something
yep thats what I was thinking
ohhh and then the uniqueness part of CRT ensures that we don't have to do any more counting (I was confusing myself by multiplying that by something else too)
that makes sense
to be a pain, showing #S[N]/N -> 0 from #S[m]/m -> 0 doesn't seem to be as simple as it looked, I'll sleep on it though
@karmic crest Hint: ||(x-1)/(y-1) < x/y as long as x > 1 and x < y||
turns out I'm just a smoothbrain then lmao
You see how this implies what we want right
i'll have a think but I'd imagine it won't be that bad
actually no it's obviously not ignore that lol
but my strategy would be to have S[N]/N <= S[(some m depending on, and increasing in, N)]/(that m again) then RHS -> 0
Yeah thats the right idea
i'll try to iron out the details tomorrow, getting late
if d is gcd(a,b) a/d and b/d are coprime
Because you removed the common prime powers from a and b
it equals c tho?
if r and s had any common factors they would have been included in gcd(a,b)=d
ok, thanks makes sense ty
Yes
suppose it doesn't and look at what happens mod 3
@light flicker sorry to be a pain again, but looking at it again the details don't seem easy to iron out lol, I picked m_N to be the m nearest to N then #S[m_N]/m_N >= (#S[N])/(m_N - (#S[m_N] - #S[N]), but then the denominator is >= N so that doesn't seem to go anywhere
I'm probably overcomplicating it
Try picking m_N to just be greater than N
um can i post a question in here it doesnt get answered in questions :/
my issue is that for the denominator <= N you have to have m_N - N = #S[m_N] - #S[N], but there doesn't exist such an m_N for all N, eg. if N isn't in S, surely?
I guess I could try to make the denominator <= 2N, but I still see issues if there are large gaps in S?
Okay yeah, actually my bad, this idea doesn't work you're right
haha nw, I was worried I was going mad :p
the fact that #S[m]/m -> 0 can still be used here right? Or did they mean something else with CRT
Yeah its kinda weird
If you assume that the limit does exist, then the limit has to be 0 since the m's give a subsequence that converge to 0
ye but it seems hard to prove that
my only idea is bounding but I would have thought that strongly depends on S, since S might not even be infinite etc.
hint: try to write a in a way that you can reduce it to its last digit modulo 10
it would have to be someting like $a_1-10$ yea?
cRaZyNiChOlAs12
i was thinking something like a = 10b + d, where b and d are natural
that makes more sense cause mine would only work for digits 11-19
so you just need to prove that any nonnegative integer a can be written in that form, which isn't too difficult
what is the equation for a modulo again, b-a=nk? right?
or a-b
yea im confused lol
wait are you asking if a = b (mod c) that a - b is divisble by c?
yea isnt that the equation for it? a=b (mod c)=a-b=nk
yea
so then i would have to put it into that form yea?
well in mod 10, 10b is congruent to 0 and you'll be left with d, which is your last digit
wdym?
im confused by the question too
this
how do i prove that a nonnegative integer cant take the from of 10d+b
Uhhhhh
it can
They said the opposite?
oh my lord...
rip
sometimes man sometimes
so then the proof would be like. $suppose a=10m+n. Therefore 10m+n=10k which will then leave us with just with the remaining digit$
cRaZyNiChOlAs12
Uh, hm ig you could do it like that? But one thing to note with mods is that writing out = 10k is not really worth doing unless you're doing some fancy algebraic manipulation that you are sure will result in an observation that helps you solve the problem.
A quicker way to do it is just directly let 10m = 0 mod 10, so you get 0 + n mod 10
writing out =10k is good and all for like, when you're just starting out, to gain an intuition, but after a certain point it's just tedious imo
so i can just say what i said but just say 10m+n=0 (mod 10)?
Ah no
See, the only things you can say are 0 mod 10 are ones you know are multiples of 10
10m is a multiple of 10, so it's 100% 0 mod 10
however, you don't know about n
so you just write 10m + n = n mod 10
um one more quick question. so do i have to explain that 10m+n=n mod 10 is 10m+n-n=mod 10? or can i just leave it as 10m+n=n mod 10
it's the same thing
what you're asking is the equivalent of "do I need prove that 2 = 2? Or should I prove that 2 -2 = 0?"
yea ik but im guessing i dont have to actually like right it out and show more of the equation
if that makes sense
nah it's understood
sweet, thanks
- An integer is said to be square-free if it is not divisible by the square of any integer greater
than 1. Prove the following:
(a) An integer $n > 1$ is square-free if and only if n can be factored into a product of
distinct primes.
Yes
ok, starting with the forward
n is square free
so a^2 is not a divisor of n
$p_1^{2k_1}\dots p_r^{2k_r} \nmid q_1 \dots q_s$
Yes
(from a previous question, intergers squared are of this form)
mm no don't think that much
ok
"it is not divisible by any square"
So like, if I have a single square in a the prime factorization, it's over
To illustrate, take 45
45 = 3^2 * 5. Although the 5 might not be a square, 3^2 is
so 45 is not square free
yeah
cant seem to show distinctness generally tho
but obviously i can see that if the canonical form has powers that are larger than 1 then it cant be square free
so a bit stuck :/
it's very close to the definition
Alright, so let a = p*q*r....etc. or however you want to write it. Now, assume there exists a prime that isn't distinct from the others, WLOG(without loss of generality) let it be p. Thus, you get the final form as p^2*q*r......etc. However, taking q*r*...to be some integer, say k, a can be written as kp^2, which is a multiple of a square. So we're done
that's pretty much it
prove that if $p>=5$ and p is prime, prove that $[p]=[1]or[p]=[5] in Z_6$
cRaZyNiChOlAs12
so i need to prove for each [2] [3] and [4] do not work. So something along the lines of $p=0(mod 6)=p-0=6k$ for k is an integeer, and 6 cannot divide p since it is a prime. Right?
cRaZyNiChOlAs12
if i understand what you're saying, yes
ok so how do i prove that 5 would work? like how do i say that mod 5 works but only in the case of p being 5
don't do that
just prove that all the others can't work
well i mean 5 is just a direct example so it can work
so by proving that 2 3 and 4 dont work it proves that either 1 or 5 does work
2, 3, 4 and 0/6 don't work so it has to be 1 or 5, yes
you want to stick with mod 6 the whole way btw
no mod 5
yes
What's your math background and why are you trying to learn number theory?
ok so like, something written as x= 2 (mod 6) is just x-2=6k and then is that just x=6k+2? right just using simple math skills. cause when i looked at this like review my prof had it written as x=6k-2
yeah so that'll be for x = 4 (mod 6)
wait, why
so say x = 6k - 2
6k - 2 = 6k - 6 + 4 = 6(k-1) + 4 = 6j + 4
bc it all loops around
-2 = 4 mod 6
-3 = 3
or they just meant to write +2 idk
hmmm
yes
p=6k+4
yes
ok so then p=2(3k+2)
yes
lmfao let me show u what he did
cause maybe i am missing something
p-4=6k=p=2(2k-2)
also what does the notation k' mean is that a specific notation
yeah that's wrong
so why did he write it as -4 not a positive 4
if only 😔
thanks again
this channel has literally helped me sooooo much more than anything i have ever found online
so it goes
David Burton Elementary Number Theory
I like burton too
For any integer a, the units digit of $a^2$ is 0, 1, 4, 5, 6, or $9$.
Yes
anyone know how to do this?
the units digit of a^2 only depends on the units digit of a
whats the limit in the middle called?
@bleak robin https://en.wikipedia.org/wiki/Inverse_limit
In mathematics, the inverse limit (also called the projective limit) is a construction that allows one to "glue together" several related objects, the precise manner of the gluing process being specified by morphisms between the objects. Inverse limits can be defined in any category, and they are a special case of the concept of a limit in categ...
ty
If i want to show the following, would I just say let there be f(c) = c^2 + 1, then use Hensel's Lemma for c=2?
yes
beeswax
No
It's a value that satisfies
Not the smallest
The smallest value will be order of a in (Z/nZ)*
If you mean for all such a,then it's in some cases and it's not in others
I'm having trouble finding a counterexample
ah
infact a^2=1 mod 8 for any coprime a
What was your intuition on choosing n?
I just knew this beforehand
Wait, is there some kind of formula for phi(n)? I cant find one in my book
yes
I see
$phi(p^k)=p^k(1-\frac{1}{p})$ where p is prime
DrunkenDrake
Oh, that clears things up
How did you make it so that your TeX has a white background on it?
idk,that was default for me
the carmichael function $\lambda$ is defined to be the minimal exponent such that $a^{\lambda(n)} \equiv 1$ for all $(a, n) = 1$
Pappa
it's also known as the order for primes if I'm not wrong
Mod 10 looks good
Suppose that I have a n×n system of linear diophantine equations over $\mathbb{Z}$ is there criteria to know when do solutions exist?
MisterSystem
ye, kinda like that
What exactly do I have to do?
Ooooh
I can see somehow how this may be useful
But still not so sure
beeswax
Because $ar_1,...,ar_s$ is also a residue system for n
beeswax
They're the same mod n?
Yeah, that's what I was guessing
That's only true when a and n are relatively prime im guessing?
Yes
Does this have something to do with Euler's Theorem
This part?
Yeah
You can use this to prove euler's theorem yes
I'm not quite seeing how/where
Is this kind of like the Legendre Symbol, so like if i want to find (3, 4)_p, id solve z^2 - 3x^2 - 4y^2 = 0, in Q_p which i'd use Hensels Lemma or something in that area to do?
yeah, along with doing some simplifications you can do on the hilbert symbol itself
like in the case you gave (3,4)_p = (3,1)_p = 1, you can see the first equality comes from writing 4=2^2 and pulling it into the variable, the second equality comes from seeing once you have 1 you can just set x=0 and have y^2=z^2 so just pick y=z !=0
alright thank you.
are there more properties that wuld help me that are not listed here?
also aside from the characteristic 2 case, you're guaranteed to have solutions mod p so long as a,b are p-adic integers from the Chevalley-Warning theorem because the trivial solution is 1 solution and you're guaranteed a multiple of p solutions
so you can sort of go to the derivative case to check more immediately
for the sake of Hensel's lemma I mean
oh thats really helpful, thanks
I guess more precisely, if a,b are nonzero mod p, then you know there's at least one of x or y that's nonzero to make z^2=ax^2+by^2 so you simply pick the nonzero one and plug the other two numbers in to make it a single variable function, wlog let's say it's x we want to lift, then 2ax != 0 mod p clearly (except in characteristic 2)
so this solves a huge chunk right away
how would i prove this? they left it as an exercise for the reader
one last question, how would I express a number a = p^b * u, where u is a unit in Q_p for a given prime?
@bleak robin the proof of that follows from quadratic reciprocity
For the second question, if you think of a p-adic number as (x_1, x_2, x_3,.... ) as in the inverse limit definition of Q_p, then this is a unit if and only if x_1 is nonzero
Thus, given some p-adic number a = (0,0,...., 0, a_1, a_2, ....) with a_1 non-zero, you can write this as p^b (a_1, a_2, ....) and the latter element is a unit
ok that makes a lot more sense, thank you
Here is a good problem: Three of the elements in the solution set of the simultaneous system$$ x^{x+y} = y^4, \qquad y^{x+y} = x $$are ordered pairs of integers $(x, y)$. Find these ordered pairs.
LifeSource
I don't need help with it by the way
hmm I'm missing one of the 3
I got (1,1) and (4,-2) but the way I solved makes me think they're the only solution, I suppose if we say 0^0=0 then I have a 3rd solution as (0,0)
but morally I wanna believe 0^0=1 for integers lol
@gentle lily let me know if there's a third solution I didn't get or it really is (0,0), I'll play with it tomorrow
what'd you get for part a
u=4, v=-13
and gcd is?
1
your equation is pretty similar to what you need, you can multiply through by 31
but that's just one solution
well, does that make sense so far?
Well when we have $y^{(x + y)^2 - 4} = 1$, we also have to consider $y = -1$
LifeSource
I never got that
yeah kind of
I plugged in for x into the other equation to get $(y^{x+y})^{x+y}=y ^4$ so $y^{2(x+y)}=y^4$ and then I put $x+y=2$ in the exponent, from there I plugged into $y^{x+y}=x$ to get $(2-x)^2 = x$, expanded the quadratic
Merosity
then factored it for the 2 roots
i guess that was my mistake
it's (x+y)^2 not 2(x+y)
hah just did it completely wrong
XD
@sudden orchid what do you mean kind of
yeah i got it actually
but u said there were more than these two solutions?
x=124 and y=-403
yeah, to get those we need to add 0 in a fancy way effectively
we can make 0 with those numbers in infinitely many ways
and add those on to our single solution
777x+239y=0 has a surprisingly simple solution
just pick x=-239 and y=777
now adding any multiples of this pair to your solution will still be a solution
You also need to show all solutions are of that form
Anyone have any advice for reducing exponents that involve mods? Not sure if this is elementary number theory or advanced ... let me see if I can lay it out. I'm trying to simplify to X with substitution.
The gcd of b_1 and b_2 is 1
Ah wait am I interrupting another discussion?
Just find c_1 and c_2 such that c_1b_1+c_2b_2=1
I was advised to start here and start plugging in C1 and C2, but quickly got overwhelmed
Note: Exclusively doing this with variables, no numbers
Yea,Just do ${Y_1}^{c_1}{Y_2}^{c_2}$
_> this bot lol
DrunkenDrake
LHS will be $x^{b_1c_1+b_2c_2}=x$ mod(n)
DrunkenDrake
ok let me try that out, thank you
Actually, That's not quite correct
c_2 or c_1 will be negative
And if gcd(Y_1,n)!=1 or gcd(Y_2,n)!=1 you can't raise them to a negative power
Substituting everything got ugly quick, but I’m not super familiar with multiplying different mods
I suppose the inverse of b is why we’re able to remove one of the mods?
How did you get ${Y_1}^{c_1}{Y_2}^{c_2} \ from \ {Y_1}^{c_1}({Y_2}^{c_2})^{-1} \ mod \ n$?
:|
F
I assumed c_2 can be negative
hurricane
I do not 🤔 this is actually for RSA public key cryptography hilariously, scrambling backwards finding if that property needs to hold true
I assumed c_1b_1+c_2b_2=1
That step is wrong if gcd(y_2,n)!=1
I know that both gcd(b_1, Phi(n)) and gcd(b_2, Phi(n)) = 1, but I dont think thats helpful here
In that case inverse is not defined
Ah, we can assume that gcd(y_2, n) = 1 in that case
We also know for certain that x is a real whole number
I'll have to poke at this some more
Thank you for your insights
Well I got confused so went the substitution route anyways, got real close
But now am stuck again trying to get rid of the mod n; which apparently is ok
Leading me to conclude that Math is indeed for Masochists 😂
This is why mods are messy
$y_1^{c_1}{(y_2^{c_2})}^{-1}=x mod n$ is what you get when you do that simplification
DrunkenDrake
Which is what you want
I stand in awe every day of whoever it was that came up with this stuff
Got a quick question regarding some number theory stuff
suppose a is a unit in Z/n, and b is a zero divisor in Z/n, how can I show that the product of a and b is also a zero divisor in Z/n
Can you provide a more formal way of saying that
This was a quiz question that I didn’t quite know how to go about, It mentioned saying that a*b =/= [0]
It wanted me to verify that
Let's say a is a unit in a commutative ring R,and b is a zero divisor,
Let n be a nonzero element such that bn=0,then a.(bn)=a.0
(ab)n=0
Implying there is a non zero element n such that (ab)n=0
Why does it want me to verify (i)
I don't think 0 is generally included in the set of zero divisors
This is how D and F defines it
apparently, It's convention. Ask your professor
Hmm I don’t quite understand this, could you provide an example of where this holds true
Take (Z/6Z)
Ok
Oh I see
Okay I just got confused with their hints because aren’t we supposed to show that [a][b]=[0], i.e. the product of a b is a zero divisor
Oh ok
Wait so how do I verify that, a, b are nonzero so there is no need for verification
2(3)=0 in Z/6
Product of 2 non zero numbers can be 0 in Z/n
You use the fact that a is a unit and do a contradiction
Oh I see
So show that n doesnt divide ab
Wait why do people not include 0 as a zero divisor
i think they do, just not a nontrivial zero divisor
idk
Not including zero makes it less awkward to state certain facts like "A integral domain has no zero divisors"
As opposed to "A integral domain has no zero divisors other than 0"
Oh ok
how would I change (x - M/2)^2 + (y - M/2)^2 + xy into a quadratic form?
I have (x - M/2)^2 + (y - M/2)^2 + xy = M^2/2 - N, and I want to able to change it into x1^2 + x2^2 = f(M, N)
make the 2x2 symmetric matrix and then diagonalize it
the eigenvectors of a symmetric matrix are orthogonal, so the matrix of eigenvectors is orthogonal and so you can use it as a change of basis
$v^T A v = v^T(E^T D E)v = (Ev)^T D (Ev) = u^T D u$
Merosity
Wait a quadratic form should only have terms with degree exactly 2
But the left hand side has -xM and -yM
Or am I just dumb
oh you're right that might be a problem
when trying to put it into diagonal form like that, $v^TAv +b^Tv + c$ will not be able to remove the terms by getting us $u^T Du + (Eb)^T u + c$ since the eigenvectors are linearly independent.
Merosity
does that mean that i'd need to bring it M/3 down on both sides and get x^2 + xy + y^2 = -n, then solve from there?
does this include p = infinity?
Ok thx
ur welcome
hi, may be somebody can help me with example related to groups/groups notation. Im confused by example 2.8 of ":Guide to pairing based cryptography": https://by1lib.org/book/2932885/2b8bd1?regionChanged=&redirect=196496375
here is a screenshot of example 2.8
as I understand they use theorem 2.2 -> they take elements from group Z_13 and raise them to the 5-th degree under modulus 13
Im confused by Z_13{5}
I mean 2**5 mod 13 = 6... or... what?
hm but does 2^5 =1?
yah... that is my point... and Im trying to understand is it my math is wrong or... authors
weird mistake, obviously the only thing in that set is 1 cause 5 doesn't divide 12
Let $0 < a,b < p$ where $p$ is prime. and $a, b \in \mathbbN}$. How can I prove that: $p = \frac{ab}{x}$ has no solution over $\mathbb{N}$ where $x \in {1, ... p}$ ?
figured it out: w.l.o.g $p = a \cdot \frac{b}{x} \Longrightarrow \frac{b}{x} \in \mathbb{N}$, which is a contradiction since $p$ is prime. Thus there isn't a solution
the implication does not hold
the thing is that, ab/x, even if it is an integer, cannot have any factor of p
why doesn't it hold? I forgot to mention that a, b are integers aswell
@floral ice I mean if you take like a = 2, b = 3 and x = 2, then 3/2 is not an integer
but b = p which isn't allowed
I'm saying that the implication that a \cdot b/x implies that b/x is an integer is not valid
a b = p x, therefore p divides a b. But a product is divisible by a prime only if one of the terms is - and they can't be, because they are smaller than p.
Your way, meanwhile, doesn't really work. Why must b/x be an integer? You only know that (a b)/x is.
Can anyone help me understand why
Ï•(8) = 4 with elements {1,3,5,7}
Rather than
Ï•(8) = 5 with elements {1,3,5,6,7}
Is it just gcd(8,6) = 2 being the reasoning?
Rather than 1
Yes
Thank you
In inclusion-exclusion principle for example, do you always add the intersection of all sets given it is more than two sets eg
$A \cup B \cup C \cup D = |A| + |B| + |C| + |D| - A \cap B - A \cap C -..... + A \cap B \cap C \cap D$
Harbh
This is what I found online; I'm not sure if its the same formula
n (A U B U C U D) = n (A) + n (B) + n (C) + n (D) – n (A ∩ B) – n (A ∩ C) – n (A ∩ D) – n (B ∩ C) – n (B ∩ D) – n (C ∩ D) + n (A ∩ B ∩ C) + n (A ∩ B ∩ D) + n (A ∩ C ∩ D) + n (B ∩ C ∩ D) – n (A ∩ B ∩ C ∩ D)
Well to make sure I did it correctly for adding and subtracting the individual parts
Not for actually writing it out if you get me; just to make sure I know what parts to plus and what to minus
Trying to find how many numbers are not divisible by 2, 5, 7 and 13 by inclusion-exclusion principle
Thank you!
Ok well I guess that makes sense
It’s just kind of disgusting
Basically it’s
- sum of all the single sets
- sum of all intersection of two sets
- sum of all intersection of three sets
- sum of all intersection of 4 sets
- ...
The pattern holds for not only $|A\cup B\cup C\cup B|$ for 4 sets but $n$ sets in general
Whoever
Nothing better than a general rule for anything maths
I prefer to write the inclusion-exclusion as $$\varphi(n) = \sum_{d|n} d \mu(n/d)$$
Merosity
I'm not that good at maths to understand that unfortunately 😔
mu is the mobius function, and it encodes inclusion-exclusion for doing number theory stuff, look into mobius inversion or the dirichlet convolution if you're interested
How is it related?
oh these are two questions by the same person, I just skimmed the first part about phi and saw talk about inclusion-exclusion and just assumed they were doing this
i am quite lost on this one
would I wanna do something like adding a+u=b and a+y=b?
What does a being a unit mean?
The first one, the second is equivalent if n is prime
So can you use this in some way?
Maybe think about how you would solve ax=b if they're all rational numbers and a is not 0
well you would just divide by a and get b/a=x
so could i multiply like a^-1 to both sides?
So then would something like d$ax_1=b=ax_2$ then $x_1=a^-1ax_1=a^-1ax_2=x_2$
cRaZyNiChOlAs12
Right
alrighty i have got another one cause once again i am stuck oof
so why does ar-b=kn like where does that even come from
so is that just saying ar= b mod n
x has to be [r] for some r
so ax= b mod n as well?
so im guessing that i need it get it down to something along the lines of b=dk
where does that come in to play? how does a=b and why does r divide a
Ok,I didn't mean a and b as in this question.
So,You have ar=b mod n,rewrite this removing the mod
ar=b+kn for some integer k
wait how does d divide (ar-kn) since (ar-kn)=b
d=gcd(a,n)
oh lord
lol
and that just means d=au+nv but instead its kn and ar
goootch
so the proof would go along the lines of. Since ar=b mod n that means ar-kn=b and since d=(a,n) it takes the form of d=ar-nk=b that means d|b
Hi 🙂 this is from a number theory exercise sheet, but I'm really not sure where to start/ what theorems to use or even what subtopic of number theory this comes under
sorry I just realised I cut out the question
Weird, someone asked this exact same question a couple weeks ago
Also there's a hint below
here
Thank you- yes we actually go to the same university so that would explain it hahaha
Ah, yeah that makes sense
Just wondering what it means for the legendre symbol to be congruent like this
is this saying that the value is a^(p-1)/2
I mean, the legendre symbol is either 1 or -1?
So it's just regular congruence of numbers?
yeah but hcf(a,p) = 1 means the legendre symbol can't be 0 here but you're right
Thank you very much 🙂
oh um wuts the difference between root and logarithm? so if i have sqrt(4) and log2(4), wouldnt they give me the same results?
This isn’t discrete math, the principal sqrt and the log2 intersect at x=4 but that doesn’t make them the same. The log2 is the inverse of the function 2^x while the principal squareroot is function that returns the positive squareroot.
If you plot the functions in desmos
I will se that sqrt will outgrow log2
after x=30 sqrt outgrows significantly
so besides graphing, what makes them different? cuz i think i can still do 10√10 log10(10) and get the same result, (10 in 10√10 is not coefficient)
Well what do you get for x=33?
whats the base
Try 10
alr
Log10(33) is not equal to 10th sqrt(33)
Just because they share some intersections doesnt make them the same functions
so for root i get 1.41.... and logarithm i get 1.51...
wait but how is this explained?
do they only share one?
I don’t know
u mean the difference thing?
but how do i determine when to use each one, considering they are different?
This isn’t really number theory m8, ask in #precalculus or something
oh i thought its NT, alr lemme ask there
This is a question about what functions are, if you aren’t familiar with domains and codomains then I immediately assume you are in precalculus or algebra.
im in geometry hehe
sorry
@odd imp try setting $x=a+b\sqrt{2}$ and $y=c+d\sqrt{2}$, and then compute $x+y=(a+b\sqrt{2})+(c+d\sqrt{2})$, $xy=(a+b\sqrt{2})(c+d\sqrt{2})$ and $1/x=1/(a+b\sqrt{2}$.
Bannanachair Monarch
Should be (1+n)^p