#elementary-number-theory
1 messages · Page 7 of 1
,1s how do you tell gross income
another trick that can work gross income
another trick that can work mod gross income
another trick that can work mod p$5
wrong channel, that isn't number theory, try #❓how-to-get-help to make a question channel
Euclidean algorithms is correct in that example ? :
`
TEST 1 :
a = 898754
b = -15654
898754 = -15654 x -57 + 6476
-15654 = 6476 x -2 + -2702
6476 = -2702 x -2 + 1072
-2702 = 1072 x -2 + -558
1072 = -558 x -1 + 514
-558 = 514 x -1 + -44
514 = -44 x -11 + 30
-44 = 30 x -1 + -14
30 = -14 x -2 + 2
Test 2 :
a = -156588884
b = -898754
-898754 = -156588884 x 0 + -898754
-156588884 = -898754 x 174 + -205688
-898754 = -205688 x 4 + -76002
-205688 = -76002 x 2 + -53684
-76002 = -53684 x 1 + -22318
-53684 = -22318 x 2 + -9048
-22318 = -9048 x 2 + -4222
-9048 = -4222 x 2 + -604
-4222 = -604 x 6 + -598
-604 = -598 x 1 + -6
-598 = -6 x 99 + -4
-6 = -4 x 1 + -2
`
a mod by 2 numbers can be negative ?
-7 = -2*3 + -1
-7 = -2*3 -1 ^^
is there a way to find all the solutions x,y to ax+by=c with a,b,c pairwise relatively prime?
I was thinking it's as easy as just solving ax+by=1 and then multiply x,y by c, but that's only some of the solutions. For instance, 2x+3y=5 has 2 * 1 + 3 * 1 = 5 and obviously this x,y aren't divisible by 5
I mean the thing is that if you have two solutions (x,y) and (x',y'), then ax+by = ax'+by'. Taking (mod b) tells you that x = x' (mod b), so that forms a unique equivalence class; similarly, y = y' (mod a).
In total, once you have a single solution (x0, y0), the other solutions will take the form (x0+b*k, y0-a*k).
(and you can find a single solution using the method that you describe, for example)
oh good I knew I was making some silly mistake, I was using c(b,-a) instead of (b,-a), thanks!
I need help with this problem, I have tried some modular arithmetic but nothing works. I have no idea how to solve this: Solve over the integers:
Also, it doesn't really want to be factored, not even wolfram alpha factored it.
Honestly, I even tried ChatGPT but, well, nothing.
x = 0 y = 0
I know that, but how do you prove there are no other solutions?
Is number theory (as in IMO / competition style number theory) generally assumed knowledge before university?
Or is it taught during university courses?
no, not at all
yes. most unis have an "elementary number theory" course
@sleek spire Do you have any recommendations for getting up to scratch ASAP for number theory?
I am taking a course that seems to assume much of it as prerequisite knowledge
what course?
that doesn't require number theory
da
?
is set theory taught as part of discrete maths?
it's usually taught in a precourse iirc
you don't need a lot of set theory for algebra though. just the basics as in union & intersection
For group theory?
yeah
It seems to be built on set theory from what I observe
eh
I have to pause to look something up like every 2s for my current lecture
for group theory
e.g.?
mainly formal definitions
i.e. what specifically counts as a "projection" mapping
"Up to" statements
"up to isomorphism"
equivalence classes
closure
idempotence
and a few more other examples
that's not set theory
do you follow a textbook? perhaps you can try reading ahead
Do you recommend taking notes on the textbook too
ehh i bought my own textbooks so I treasure them very much
what I do is i take notes on the digital copy
oh I meant like
(this also lets me scratch out typos and whatnot)
what I do is have cheap notebook nearby
and also bits where it says that "the proof is trivial" I can fill in the gaps
not sure if your lecturer is expecting you to read ahead
(which imo is not great pedagogy but oh well)
x^2 = z
z^3 + zy + y^3 = 0; z >= 0
(z+y)(z^2 + zy + y^2) + zy = 0
(z+y)(z^2 - zy + y^2) = -zy
(z+y)((z + y)^2 - 3zy) = -zy
(z+y)^3 = zy(3(z+y) - 1)
Let z + y < 0 -> y < 0. Contradiction since y(3(z+y) -1) > 0
Thus, z + y > 0. For y >= 0 as well, we obviously obtain (0, 0)
Thus, we are left with z > abs(y), y < 0
Let z = abs(y) + 1 ->
z^3 + y^3 = (z)^3 - (z-1)^3 = -3z^2 + 3z - 1
This implies 3z^2 - 3z + 1 <= zabs(y)(After doing sign shenanigans). Since zabs(y) < z^2(y < z), this is false
Hence Proved
I made way too many arithmetic errors kekw
Interesting, I solved it also in the meantime. It factors with the formula a^3 + b^3 + c^3 -3abc = (a+b+c)(a^2+b^2+c^2-ab-bc-ca), after multiplying both sides with 27. After doing that we get (3x^2+3y-1)(9x^4+9y^2+1-9x^2 y+3y+3x^2)=-1, and we have two cases (-1, 1) and (1, -1) for the expressions in parenthases. Again, we only get x=y=0.
I must be missing something because I don't see how it factors to that? How did you get rid of x^2y?
Or rather, could you tell me what your a, b, c are?
Ah yeah that makes sense thanks
is this the right place to ask about this ?
2 math engines gives ne 2 different results when they try to simplifie and I am getting a different result
when solving congruence equations, e.g. x^3 + x = 0 (mod n), can we gurantee that the number of solutions will be at most 3 in this case (since the degree is 3)?
Not in general, only if n is prime.
(Because in that case Z/nZ is a field, and then we know nonzero polynomials can only have as many roots as their degree).
i see, thanks!
But for example x² == 1 (mod 8) has four solutions.
oh ye thats true
challenge: find an n when it has 4 or more solutions 😎
LOL
x² == 1 (mod n) has 4 or more solutions unless n is 1 or a prime or twice a prime.
makes sense
Oops, need to exclude powers of odd primes and two times powers of odd primes, too.
does anyone know why do we check -7 mod 8?
my attempt: 8 = 2^3, so by showing -7==1 mod 8, we know x=1 is a solution to the congruence when n=3.
for n>3, all i can say is that if x is a solution to the congruence mod 2^n, then it's also a solution mod 2^3. i was hoping the converse would be trivial/easy, but i dont think it is so im stuck :(
I would expect some kind of explanation of the line of thought to appear in the lines/paragraphs above the one you cropped from the middle of some longer text.
Since arguments that are expected to be understandable without any context rarely begin with Next, ....
yeah my bad
ill post the full question and answer; for context, we have just done hensels lemma
hmm 1 mod 8 shows up in (2/p) ...
I like how they don't really prove it's WLOG
Yeah i just assumed that since we just need to show the existence of solutions, its enough to find a particular case that works for an arbitrry n
You do not need bezout to prove that, you only need the definition of the gcd
Any common divisor of a and b also divides any integral linear combination of a and b
Hallo,
im working with elliptic curves over finite fields and have trouble proving that if a point has an order greater than 4*sqrt(p) that there will be a unique multiple of that between the hasse interval. Has anyone any hints?
this belongs in #advanced-number-theory
Oh, im sorry :( i didnt know where to draw the line
I want to show that, the "nearest integer to a is [a+1/2]" when I looked at the proof for this excercise, it says "it is sufficient to show that |[a+1/2]-a|< or = 1/2
for reference [a] denotes the greatest integer not exceeding a or the greatest integer function
what i want to know is how do I prove that the nearest integer would be at a distance of at most 1/2?
It makes intuitive sense for me since I worked out some examples but it's been a struggle trying to prove it.
and if anyone would also mind helping me with this as a bonus I noticed through some examples I went through that if we do |[a+n]-a| it will always be less than or equal to 1/2 if n< or =1/2 (didn't prove it but its obvious from examples I made)
a can be in [[a],[a]+1/2) or in [ [a]+1/2,[a]+1)
In the first case, closest integer is [a]
In second case, closest is [a]+1
Note that [a+1/2] gives the exact same result
@white lion
wdym by this?
Well if a is in the first range
a+1/2 is in the range [[a]+1/2, [a]+1)
So [a+1/2] is [a]
yeah
Similarly consider the second rangd
Oh alright, got it, so when in the first range the nearest integer is [a] = [a+1/2] and in the second range the nearest integer is [a] +1 = [a+1/2]
Thanks so much.
Hi, I've got a few problem assignments I would like some help with? If anyone could point me in the right direction that would be appreciated
This one is numbered 2 but I've made more progress in this one
I expect it's something simple like this, but although I feel I have the correct answer, I don't know how to get to the answer
I've tried looking up a formula for arbitrary multinomial expansion, but I'm not making any progress in that area, and I'm not sure that's the right direction to go
The other question is this one, which involves proving that each PPT (Primitive Pythagorean Triple) a, b, c can be defined by a unique s and t
pretty interesting problem. just testing a few numbers, the right side isn't even always an integer unless p is prime.
#help-19 message
oh right that's just FLT
wait what how
FLittleT, not FLastT.
oh
@gleaming mesa Hint: https://en.wikipedia.org/wiki/Wolstenholme's_theorem
The 1 + 1/2...1/p-1 = 0 mod p^2 to be exact
any suggestions for evaluating $(16!)^2\bmod{37}$?
nilpotent nix
Well you can rewrite that as
1 x 2 x 3 x 4 x ... 16x 21 x 22 x 23 x...36 mod 37
Compute (17 x 18 x 19 x 20) mod 37
Use Wilson's theorem and you are done after moving around some terms
@verbal cedar
23?
I thought the same thing, but I wasn't sure how you could be sure about 23, 29, etc. being representable
And the fact that a number like 27 would require 9 * 3, and 33 would require 11 * 3, making it impossible to represent both
so we do summation u(n)/n^2 where n goes from 1 to x, we split this sum as sum_ u(n)/n^2 where n goes from 1 to infinity minus the sum_u(n)/n^2 where n is more than x. we appoximate the second term by big O: O(1/x). why cant we simply write the whole sum from 1 to x as O(1/x) ???????
u(n) is mobius function
How to find prime factors of the form 4n+3 of the number 4(3.7.11)-1?
I manually did and found 71 = 4*17+3
Is there a way to find it out from the numbers given without manually calculating?
what is 3.7.11
3 * 7 * 11
Is your cover photo from Big Bang Theory intro?
inside job
I want to find x such that $21927^{18453} \cong x mod 6$
now 21927 => 21 and 21 mod 6 = 3 and 3^2 mod 6 = 3 => idempotency => so x = 3
SilberSeele
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
$213927^{18453} \cong x mod 6$
now 213927 => 24 and 24 mod 6 = 0? so x = 0?
SilberSeele
You wrote $2 ^{1234} = (2^{10})^{123} + 4$, but this is wrong. What is right is $2 ^{1234} = (2^{10})^{123}\times 2^4$.
Boytjie
what
If $p$ is a prime number and $a$ is a positive integer, show that $a^{(p-1)!+1}\equiv a$ (mod $p$).
sebbb
i think u can just use fermats
$a^{(p-1)!+1} \equiv (a^{p-1})^{(p-2)!} * a \equiv (1)^{(p-2)!} * a \equiv a \pmod{p}$
nomnom
beware of a=0
it's positive integers all good 
then beware of a=p
Is there an iff condition for Fibonacci
wdym
you're going to have to be way more specific
Ok so given a bunch of numbers identify which are Fibonacci numbers
Basically code this such that the complexity is as fast as u can
Well you can find the largest Fibonacci number less than or equal to n for any given n
How would I go about solving this question, I attempted the standard linear congruences method for the first question it would be 15050 congurent to x (mod 81) implies x is congurent to 15050 (mod 81)
but it didn't work
Can you a bit clearer on what you did? For the first question, would it not suffice to find the remainder of 15050 when divided by 81?
just the standard way you'd solve a lnear congurence with an unknwon value but yeah I guess this works too
what about for these huge numbers surely there must exist some sort of trick or method to solve these
You simplify everything as much as possible:
30409 becomes 46, 363 becomes 15, 6740 becomes 16\ etc. etc.
When it seems to get complex, simplify again
simplofy 30409 to 46 how would that work?
remainder by 87
please can someone check if my solution is right? If not what am I overlooking here?
Seems alright
alright
um...
is i'm given N = 8 and K = 7. is there an easy way to find the largest number between [1, K] that can divide N without a remainder?
i was thinking of using prime factorization possibly
I know you've done it, but just wanted to point out I don't think Wilson is particularly helpful because elements of (Z/pZ)^x have order p-1, not p
Even though Wilson was honestly what came to mind for me first too xd
can someone help/guide me with this please 😭?
Perhaps, if you explain a bit more about what you find difficult about it.
(There's a fair chance that you're overthinking it because of the overcomplicated problem statement -- if you can think of any way to understand the task that feels much too easy to be right, then that is actually it!)
okay um i just don’t know how to go about answering it. i think i understand base expansion to an extent but this question has just stumped me
do they want an example of a real integer (like a number)? that seems too easy and idk how to work out that number to begin with anyways
They just want the largest integer that can be written with two binary digits.
wouldn’t that be 99? i think i’ve misinterpreted it wrong 😭
It would be 99 if they asked for the largets integers that has no more than two digits in base ten. Here they're asking the same in base two.
okay i think i’m foggy on the basics of bases. i know that 2^0 =1, 2^1=2, and so on and i know how to convert between base 10 and another base such as 8
but it’s stuff like this question which has stumped me because i am missing some fundamental piece of knowledge
No. You're overthinking it.
Do you know, for example, how to write the integer five in base two?
yeah it would be 5/4 and then dividing the answer by 2^1 and repeat. i can’t explain it well but i know how to do it yes
What do you get the answer (to "five in base two") to be?
101
Right. And since that has three digit rather than the two it's allowed to, five is not one of the numbers you're asked to find the largest of.
Every number larger than 5 will be at least as long in base two, so they won't qualify either.
So the only candidates left will be 0, 1, 2, 3, and 4.
Which of those give at most two digits when you write them in base two?
And which numbers among those is the largest?
ohhh
i worked it out. it’s 3!! because it’s 11 written in base two
tysm you explained it so well. i can’t believe i didn’t get it
Eyup!
you’re very good at explaining. thanks again!! :))
i’m assuming the answer is just ‘3’? nothing else has to be added?
That's what I would write.
okay great, thanks 😊
Please avoid random gifspam outside #chill.
when you are using the Euclidian algorithm to find the gcd of two numbers, what do you do when the first division results in 0
are they automatically Relatively prime to eachother
one of them is a multiple of the other
Does this look alright for a proof that Fermat's last theorem is true if you can assume that it is true for primes and 4?
You don't need to repeat anything for all prime factors of the exponent.
If x^n+y^n=z^n has no nontrivial solutions, then it is clear that x^(kn)+y^(kn)=z^(kn) cannot have nontrivial solution either.
So it is enough to prove FLT for enough exponents that every number >=3 is a multiple of at least one of them.
And every natural number >=3 is divisible by either 4 or some odd prime.
Makes sense
hi
can someone help me get smarter at math LOL
can someone help me study for the state test
Try the relevant channel under pre-university or open a help channel (see #❓how-to-get-help)
Context: quadratic rings
can you remind me what a quadratic ring is
My question is in the proof of this
the proof of lemma 8.3?
I think they contain all algebraic integers of the quadratic field Q(sqrt(d))
But this was also something we proved
Yeah I will write it up gimme a sec
do you know gauß' lemma?
Also this was the definition of R, sorry I left it out
Don’t think so, at least not by that name
Alpha
My bad again, alpha can only take one of two values, written in green here
Here’s my attempt of the proof below
After the red underline, is everything still correct
I was confused because I was trying to show that Q equals one of the prime integers. Which I couldn’t figure out because the p_i may not be irreducible so we can’t conclude RHS is a reordering of the LHS.
Nope, we didn’t do anything on polynomial rings
Is there a formula for the number of factors of a non negative integer n?
DraK
Where p varies over the set of primes
and v_p(n) is the largest power of p dividing n
Well if n is 0, it would be infinite
This works for positive integers
@wild mesa
What If n=10, would It be (1+1)(1+1)=4?
Is it possible that a prime number is larger than the sum of the 2 preceding prime numbers?
Let p be a prime of the form $4k + 1$ such that $p = m^2 + n^2$, where m and n are integers and m is odd. Suppose q is an arbitrary prime factor of m. Find the Legendre symbol $(\dfrac{q}{p})$. Use this to find the Legendre symbol $(\dfrac{m}{p})$.
Glory
hi! was wondering how do i start for this problem?
Oh interesting - ig if you've not seen then this would be stronger than bertrands postulate
how do you prove that Every common divisor of $a$ and $b$ is a divisor of $gcd(a, b).$
normalAtmosphericPa=101,325
Well do you know the definition of gcd in terms of prime powers?
Or well that would usually be how gcd is defined
yeah
write down the definitions of those things
that should make it clear I hope
How do I find the general solution of a Diophantine equation ax+by = c where a and b are not relatively prime to each other
like 25 and 5
you can divide through any common factor
so like, if you wanna solve ax + by = c and if h is the hcf of a and b, then either
- h doesn't divide c - then there are no solutions, since h would divide the LHS but not the RHS
- h does divide c, so you can divide through by it and then you have (a/h) x + (b/h) y = c/h and a/h, b/h are coprime so you're gucci
In fact this is why we basically only care about the case where a,b are coprime
is coprime the same thing as relatively prime
yes.
oh ok
Sorry, I should've used the same language you used
(Though coprime seems more common overall anyway)
But I hope that's clear
oh yea thanks, but essentially I want a and b to be coprime so I can use ax + by = 1
Yup yeah
That's why you gotta divide through the hcf
And then bezout machine goes brrr
Ok makes sense thanks
Can someone verify my proof
if I didn't ,make a mistake I ended up proving gcd(2n+3, 3n+1) = 1 which implies it always divides 7
Hm well the gcd is not always (take n=2), so something must have gone awry
Also in the last line, you seem to be giving an equality between multiple statements - you should rewrite that
I sort of doubt you need the Euclidean algorithm (assuming that is what you are using)
I would take a fairly different approach and not use induction, actually.
@tight eagle
I also don't fully understand your working (what are rk etc)
I just skipped to the last step of the euclidean algorithm for gcd(2k+3, 3k+1)
Ah
@unkempt void how would you do this question, im kind of stuck
I just keep wrapping back around to the euclidian algorithm
Hm so like
Suppose a divides 2n +3 and 3n+1
You need to show a divides 7
Agreed?
Now the n is annoying here, of course
So try to get rid of it
If you see the trick it comes out in one line
Lmk if u get stuck but have a go
I guess I was overcomplicating it before huh
Yeah i think this is simplest but it makes sense why you'd try induction
thanks a lot once again :]
Np
This is often a nice thing to try btw like
if you have some a,b,c and a divides b and c
Often it can be useful to consider convenient linear combinations of b and c
Like here
So like you can also see that the GCD divides -7n I guess
Well that isn't very enlightening lol
But if the numbers worked out differently maybe it would be lol
ah okkkk
im just working through a long list of practice problems prepping for an exam
hopefully I wont have to come back here too often 😩
I'd do the euclidean algorithm,
gcd(2n+3, 3n+1)
subtract first from second
gcd(2n+3, n-2)
subtract second from first two times
gcd(7, n-2)
at this point you know the gcd can only ever be 1 or 7
and actually we can be exact, the gcd is 7 when n=2 mod 7, and 1 otherwise
can i get a hint on a) pls
If g is a primitive root then g^(p-1) is the only power of g from 1 to p-1 that is equal to 1
so that suffices for g^j = +1 (mod p)
you could use fermat's little theorem and the fact that x=0 mod ab implies x=0 mod b
actually I think I'm making a mistake there
different but is this correct
You could use contradiction
If it was congruent to something else
Then when you square that you get some number other than j=p-1
Sorry 2j
And g^2j would have to be congruent to 1 (mod p) because g^j congruent to -1 (mod p)
But that’s a contradiction
Because of the definition of a primitive root
(If 2j is something other than 0 mod p-1)
Im trying to use wilson's theorem to solve for an inverse
I saw somewhere I it implies (17-1)! is congruent to 1 (mod p)
but wouldnt it be congruent to (p-1) not 1?
nvm figured it out
but now I want to know is x = (15)!*(-5) a specific solution
would saying x = (15!)*(-5) + 17m for any integer m give me a general solution?
but 16=-1 mod 17. so it is its own inverse
idk i feel like wilson's is really not suited for this
so i did problem 1 fine. but im struggling with problem 2. i don't know if mod 63 has any primitive roots? wolfram says it doesn't but i'm not sure
didn't I find the correct solution though?
also my mistake I was not solving for the inverse, I was solving for the congruency 16x is congruent to 5 (mod 17)
yes, but why write the solution that way, with an ungodly huge number, when you could have multiplied by -1 and gotten x=-5 mod 17?
technically, it is correct... 15!(-5)=12=-5 mod 17. but... why
so you're saying I could have just used the fact that 16 is congruent to -1 (mod 17) and then multiplied both sides by (-5) to get x = -5
I just learned Wilson's Theorem and Fermat's little theorem so maybe the point of the textbook exercise is just the application of the theorem
did it actually tell you to use wilson's for that?
No
but it was the questions for the brief chapter introducing the 2 theorems
but yes I guess I got caught up in a unnecessarily complicated solution to a simple problem
this was on a hw in my class from a few weeks ago. if you want practice with wilson's. these weren't too bad
oooh, interesting thanks
np
oh wait am i supposed to split it up into x^3=1 mod 7 and mod 9 and use the primitive roots in those modulos?
do these look right
What is -g
oh my b
only given is that g is a primitive root for p
Sure
and p is an odd prime
Can someone help me with this
Well the first one doesn't show -g is a primitive root
it seems to just show that (-g)^4k =1
I tried using fermat's little theorem and Euler's but I keep getting stuck
which is the case for any element of (Z/pZ)^x
And i think the same is true for the next
wdym
Yes
But showing a^{p-1} = 1 mod p doesn't show that a is a primitive root mod p
since that holds for any element by flt in fact
ye
Well idk you basically haven't shown anything ;-;
i havent seen numbers in so long that some fell in my lap and idk what to do with them
Tbh how would I do this lol
my brain is just "htpy equivalence" this "fundamental group" that
@unkempt void can you give me a hand
I feel like my brain is melting from trying to solve this inverse
Hm so i guess there a couple of things to try with this hm so
you can use euler's theorem to like simplify 17^22 first
since 23 is prime^
Or you can find an inverse to 17 and play around w that ig but probs harder
huh 23 is irrelevant, this is mod 21
Uh 17^22 is not 289^21
scrumptious
wow mental truly exploded to write 17^22 = 289^21 
Nah dw
ye noice lemme think
Well
I think the +/- is not enough
to like that claim seems too weak
Np
this is making me realise I have forgotten elementary number theory lol
oh wait
wait but now im stuck in mod 11 but I want a solution in mod 21
So a hint is to consider writing -1 = g^a for some a and see what value a takes
Wait why mod 11
You should calculate mod 21
So you wanna calculate 289^11 mod 21
What does Euler's theorem tell you?
doesnt euler's set me to mod (m) where m = 11
It does tell you to do anything lol like
since I did 289^2^11
It says 289^φ(21) = 1 mod 21
in this case (since we are working mod 21)
You don't wanna just change the number - you wanna see what is says about 289 mod 21
Try to see what this tells us
Yeah dope
not sure how this helps 
Hm so in general for a cyclic group with generator g
of order n
when is g^k a generator
- (RSA) With the encryption pair (N,E) = (33,11) determine the decryptor D.
How do I solve this?
I figured it out and got D = -9
is that correct? Cause I verified my solution and it said D = 11 which is -9 +4m for m = 5
@tight eagle it's the same thing because D (and E) can be taken modulo phi(N), and in this case phi(33) = 20 and -9 = 11 (mod 20). usually you take the smallest positive value, here 11, as the representative of that residue class modulo 20
(you can also do slightly better and take D modulo lambda(N) where lambda is the carmichael function, in this case lambda(33) = 10 so D = -9 = 1 (mod 10) actually still works, which funnily enough shows that in this case the RSA parameters do absolutely no encryption, i.e. m^11 = m (mod 33) for any message m)
so my professor accidently gave us this question despite us not learning euler's criterion or quadratic residues yet lol. i'm still trying to understand it though, and i was able to do all the parts except c. could someone give me a hint for how euler's criterion could help me do this? reading the wikipedia page, i'm not exactly sure how to apply it or what it does/how it works
d|b and b|d doesn't imply d = b
because b is not necessarily a positive number?
What’s true in general?
Like x could be -y
If both d and b is positive then it would be equal tho
So yeah you get d=|b|
So I am right ?😅
About what exactly lol
I’m so confused rn😂
My proof is correct?
No your proof isn't correct for the reason I said
.
Np
It is part of a theorem that the d is the least element of set of positive integers ax+by
Also you seem to be using "there exists" to mean "for some", which is nonstandard
Ah ok
Right right
Thanks for the input
But lemme read now
Owo
Yeah that's good
I would say like
Well
I think if you just keep the original proof and add another line then that'd be better
Like you have b|d and d|b
Which implies d is +/- b
Since d is positive, we therefore have d =|b|
That is essentially what your second go at it does though
Alright perfect thanks a ton 👍
eulers criterion is used to determine when something is a quadratic residue right? how could i use that to show 2^2, 2^p, or 2^(2p) is not 1 mod 4p+1 (assuming it's prime)?
consider the implications of 2 not being a quadratic residue mod q (we can show that 2 is indeed not always a quadratic residue due to the form of q, for example for 29 = 4 x 7 + 1)
so if there's no solution to x^2=2 mod q, then we can't do
(x^2)^(2p)=1=2^(2p)
is that the basic idea?
no, that doesn't really work, just because a != b doesn't mean f(a) != f(b) in general... but since the question mentions Euler's criterion, have a look at what it says if 2 is not a quadratic residue
oh wait i think i see
2^(2p)=2^(q-1/2)=-1
sorry I'm distracted i need to look at it again or else I'm just spewing nonsense lol
no that's correct, so now what can you conclude about the order of 2 mod q
oh right so if it was a quadratic residue then it can't be a primitive root because then it has order dividing 2p so not 4p=q-1.
and if it's not a quadratic residue then it obviously can't have order 2p because then 2^2p=-1.
but I'm still not quite seeing how to conclude that 2 and p don't work either...
think about the ideas of Lagrange's theorem
yes, although the question asks you to show that the order is not 2p, so we don't need to consider the case where it is a quadratic residue - we only need to show that it is possible for it to be a nonresidue for at least some choices of q (for example using supplements to the law of quadratic reciprocity) and if it is, then the order can't be 2p
you can also be lazy and rigorously complete the questions using a bunch of counterexamples, but I doubt that's what the professor had in mind lol
oh if it was order 2 or p, then 2^2p would be 1 as well right?
we haven't even defined a quadratic residue or what quadratic reciprocity is, so i think the idea is supposed to be relatively simple.
and yeah i don't think he just wants counterexamples.
yep that's right
sorry could you explain why we don't need to consider if 2 is a quadratic residue? if it was, then it can't be a primitive root. so how do we know it isn't a quad residue?
sorry for all the questions, this is all new to me. i really appreciate your help 🙏
you're right, I worded that poorly; what you want to show is that 2 must be a primitive root mod q, so you need to show 2 is not a quadratic residue. you can do this quickly by using the supplement of the law of reciprocity, and observing that because q = 4p +1 where p is odd (and prime) then q != +/- 1 mod 8
that is, this argument only works because p is odd (the fact that it is also prime helps with figuring out the orders as well)
(I assume that your professor would have otherwise shown you the law of reciprocity before posting the assignment, so that you can use it)
haha nope, unfortunately. he's a great professor, but he makes mistakes when formulating hw questions. he came up with this himself but forgot we hadn't covered any quadratic residue stuff yet.
but i read some of the Wikipedia page for the law of reciprocity, so i see how the definition of q means it's not congruent to ±1 mod 8 so 2 is not a quad residue.
and because it's not a quad residue, 2^2p=-1 by Euler's criterion, so the order of 2 cannot be 2p, and by extension it can't be 2 or p.
is that a good summary?
Alrighty, I'll also put this here for help, how do I approach this?
Like my initial thought is to get 28 when i mult 4 and 7 and say it's 0, but don't know if that's right
yeah you can immediately observe that the middle term with the large exponents is a multiple of 28 so it disappears modulo 28, simplifies it a bit already. then the problem breaks down into two things:
- simplifying 33^146 mod 28
- solving 4x = C mod 28 for some small number C (think about the CRT)
thank you so much for all your help!!! i really really appreciate it ❤️
alright, think i might be seeing it cuz 33 is just 5mod28, 25 is 3 mod28 and 27 is just 1mod28,
Yeah
Thanks
❤️
@rough cradle are these all integers?
x y z are odd integers and a b are the ones without factors
common factors*
I know how to do this generally I just dont know how to represent a and b
I was taught to replace all the variables with ones I can work with
hmm, I don't see an obvious way of rewriting that
feel free to repost the question here, and see if anyone else has an insight
xa^2 + yab + zb^2 ̸= 0
all good
Ill just leave this for last I have a bunch of problems to work through
usual case of being taught something then get a question thats 10x harder than any example you can reference
so actually here's a thought
if you consider the eq xa^2 + yab + zb^2 = 0, you can divide through by b^2
and get xa^2/b^2 + ya/b + z = 0
then set t = a/b, to get xt^2 + yt + z = 0
ill let you play around to see if you can get anywhere with that
ok so I think I got it
is it true that if two numbers dont have a common factor they must either both be odd or one is even and the other is odd?
if they were both even, then 2 is a common factor
Hi, I have a question
I have tried considering the norm of r but the +1 gets in the way
Oops, context: trying to prove infinitely many irreducible elements in R (by contradiction), so the list above is assumed to be all of the irreducible elements in R.
I know that every element in R is either a unit of product of irreducible elements.
good day all, please how do i convert A454 from Hexa to it's BCD equivalent
what's BCD
Binary Coded decimal, ig
Let P(x)=ax^2+bx+c, with a,b,c integers. Then P has a rational root if and only if b^2-4ac is a perfect square.
Is there an analog of this for cubic polynomials?
mmh I guess the problem is that you can have one rational root and two non-rational roots
there's the cubic formula
we know that the nth root of an integer is either an integer or irrational
yes but I dont think the things that fall inside radicals need to be perfect powers or anything
but you have sums and nested radicals
this is much more complicated
Just looking at the discriminant when we move to the cubic case isn’t strong enough to deduce whether there exist rational roots. If the discriminant is a perfect square, then it tells you that either all three roots are rational or none of them are rational.
May i ask is there a way to express a number as the sum of four squares?
And how about expressing a prime as the sum of two squares? Or is it plain trial and error
What about 3?
There is a result by Lagrange which answers this question
Wdym
Can u elaborate more on this?
Look up "Lagrange's four-square theorem". I don't know the proof for the statement though.
Is 3 a prime? Can 3 be expressed as the sum of two squares?
yes 3 is a prime but it can't be expressed as the sum of two squares
i know that a prime can be expressed as a sum of two squares iff the number is not 3 mod 4 and the power of each prime factor that is in the form 4k+3 must be even
nvm i got it
thx!
I think Glory is asking not just whether four squares that add to a given numbler always exist, but also about an efficient way to find those four squares?
yeah i was referring to this question
Ok. I don't know how to do that in general. Maybe you can start by looking at the remainder mod 4 and see from there how many odd numbers you need.
I believe that there exist algorithms for this based on lattice basis reduction (like all good number-theoretic algorithms)
here are some other suggestions: https://mathoverflow.net/q/259152/473811
When is a_1^2 + ... + a_m^2 = 4 for integers a_i?
Is it either 1+1+1+1 or 2^2 ?
And nothing else
Sorry I meant positive integers
are you french
how do you show the order of any integer m \in Z_n has order n/gcd(m,n)
You can conclude <m>=<gcd(m,n)> where <x> is the cyclic group generated by m in Z_n
And then it's easy to see that <gcd(m,n)> has n/gcd(m,n) elements
@dense fern
For this use bezout's
gcd(m,n)^{n/gcd(m,n)} = 1?
ye im confused
Do you know what a cyclic subgroup is
i mean if its cyclic it'd be the identity after some multiples
Well ok you are using group theory terms here
^ is + in Z_n
And 1 is 0 in Z_n
If I understand that correctly,then yeah that's correct
but i thought i was dealing with multiplication
That's definitely not the order in the multiplicative group
hmm ic
Consider Z_10 and element 8, 8^(10/2) cannot be 1 mod 10
Because 1 is not divisible by 2
but yeah since gcd(m,n) = am+bn for some a,b \in Z this implies gcd(m,n) \in <m>.
The other inclusion should be obvious
ofc
hi i want to check something, not sure if it belongs here
for the power set of any monoid M that is a subset of N U {0}, is the identity element of the power set {0} and is any element A of the power set an atom of the power set if |A|=1
what is an atom?
an atom is an element of a monoid such that if two elements x & y of the monoid are combined by the operation *, and x*y=this element, then at least one of x & y is the identity element in the monoid
here the power set of the monoid is also a monoid
oh similar to a prime or irreducible element
NupurJ
here, p is prime
Well the same way you solve linear equations in R?
oh goodness me. i am sleep deprived it seems
If x_1 and y_1 are solutions ,you get that (ab'-a'b) x_1 = (b'-b)
Similarly you get a thing for y_1
If F_p weren't a field ig you can have multiple x_1 s satisfying this?
thank you!
Well actually this can have more than one solution if a=a' and b=b'
(ab'-a'b) x = (b'-b)
(a'b - ab')y = (a'-a)
If ab'-a'b is nonzero, you get (x,y) to be unique
If ab'-a'b = 0, you get b'=b and a'=a
And ax+by = 1 has p solutions(each solution is generated by varying x from 0 to p-1 and finding the corresponding y if b is nonzero)
does anyone know how to do a question like this? i just don’t understand how to work it out
One thing is that it suffices to check x and y between 0 and 5, since we're doing modular arithmetic
In fact, since you have x^4 and stuff, it suffices to check 0,1,2,3 (since 4 = -2 mod 6 and 5 = -1 mod 6)
That makes it a little check
Or you can use more technology like Fermat's little theorem
with modular arithmetic the highest value that it can take is one below the value right? why is that?
because modulo is about remainders here with division by 6. Intuitively if you would have “remainder” 6 it would in reality be remainder 0, since you can divide this number by 6. (the quotient q and the remainder r of a divided by n means
a=nq+r and 0<=r<n (nonnegative integers))
ohh right. thanks for explaining
How do I prove for prime $p$ that if $x=a ; \text{(mod $p$)}$ and $x= b ; \text{(mod $p-1$)}$ then $x^x=a^b;\text{(mod p)}$
Orthonormal
$x^x = (a^{((p-1)k+b)}) \mod p
= ((a^{p-1})^k * a^b) \mod p
= a^b \mod p$
DraK
due to FLT we have that a^{p - 1} = 1 (mod p) for any integer a and prime p, does this mean that all integers are primitive roots mod p?
a number for which the order of it mod p is p - 1
and what is the definition of order
yep
thank you
well least positive exponent yada yada
what
you said least number which is 1 mod p. it's the least positive exponent k so that a^k=1 mod p
That's false, it's not true for any integer a
a must not be a multiple of p
Orthonormal
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
You seem to have made two mistakes applying flt under I'm misunderstanding
You went from 3^(3^2022)) to 3^2022
So how do you solve systems of congruences where the moduli are not coprime.
So Take the system
$x = a \mod m, x= b \mod n$
Then you can find n',m' such that nn' = gcd(m,n) and mm' = gcd(m,n). My gut instinct is to consider the number
$\frac{a}{gcd(m,n)} mm' + \frac{b}{gcd(m,n)} nn'$ but this feels like it will not work if gcd(m,n) doesn't divide a or b
DraK
Well also how do you recognise if the system has a solution at all generally
Well, you're out of luck unless a == b (mod gcd(m,n)).
What does the inverted T mean in this context?
Otherwise let gcd(m,n)=g, a = Ag+k, b = Bg+k. Then solve
X == A (mod m/g) X == B (mod n/g)
and set x = Xg+k
Often means coprime
Are they using \ to means divides lol
Oh, it's Iverson brackets, then.
Yes lol
Oh that would make sense thanks!
Np
Ok that's clever
The typography looks like Concrete Mathematics, too.
Actually, in this context would that mean k divisors of D that are coprime with the divisors of m ?
Well it's the count of numbers coprime to m/d
Ok thank you 🙂
I want to prove/disprove this conjecture:
Let x_0=a/b for coprime posints a,b, with floor(x_0)>=2.
Define x_(n+1)=x_n * floor(x_n) for all integers n>=0
Then, for some k>=1, x_k is an integer
I worked out some small cases and suspect it's true
I've tried proving that for all primes P_i, we eventually have floor(x_k) is congruent to 0 mod P_i
Since if I had that then I could repeatedly apply this until we get all the primes in the prime factorization of b, which would finish it
Not sure how to make progress with this though
where did this -5 come from? and why are we allowed to reduce (8^12)^8 to (1)^8? is it because that's the remainder you get when you divide 8^12 by 13?
Yes, FLT gives you 8^(13-1) congruent to 1 since 13 is prime
Also 8^12 congruent to 1 mod 13 implies
(8^12)^8 congruent to 1^8 mod 13
Also 8 is congruent to -5 mod 13
<@&286206848099549185>
I have a feeling you will need analytic NT for this
Could anyone give me a sketch of how to prove a quadratic form si universal if it represents zero?
I am assuming the quadratic form is non-degenerate, and have reduced it to the diagonal case, i.e. of the form a_1x_1^2+...+a_nx_n^2
Would #advanced-number-theory be a better channel?
I think so
Which natural numbers can be represented as x = lcm(a,b,c) Where 0<a<b<c<x ?
Obviously numbers with more than three divisors and more than one prime factor. 
I suspect that anything which is composite and not the square of a prime will do
I think even not a power of a prime, ex. 27.
ah that's right
If x and y are integers, 6 divides x, and 20 divides y, then you'll always get a solution
So infinite sols
hello
i am need of number theory help
im currently trying to publish and am stuck
as per the guidelines of 1.1 of https://www.ams.org/journals/mcom/2003-72-241/S0025-5718-02-01418-7/S0025-5718-02-01418-7.pdf if i were to dynamically program the function C() to maximize asymptotic prime density over a distributed architecture i could theoretically find integers larger than the one presented in this paper and smash these polynomials through factorization algos
i don't think this is too advanced just a touch of programming
if you're working on something to publish and are serious about it
get someone at your school to help you
and gauge what is worth publishing and such
yeah im no longer in school its kinda fucked because it only all connected the other night
are you able to publish without being in uni?
why shouldn't you
i've made too many failed attempts at proving this properly...
show that every nonzero integer n may be uniquely represented in the form sum c_j 3^j with j=0 to s where c_s ≠ 0 and each c_j is equal to -1, 0 or 1
i understand intuitively what to do, particularily that if any c_i = -1 we have that 3^{i+1} - 3^i = (3-1)3^i = 2*3^i so we just get a base-3 representation of n, but i'm not sure how to actually do this formally
if only one c_i could be -1 it is easy, but the problem is that i'm not sure how to show that this idea still works for any set of c_i's
i haven't touched this for quite some months since i spent the entire last summer break and much of christmas break agonizing over being so close to a solution but unable to write it down lol, but it's been lurking in the back of my mind

i know also that i can take the base-3 representation of n, sum b_j 3^j from j=0 to t, and then set d_j = b_j - 1 to get n = (sum d_j 3_j from j=0 to t) + (3^{t+1} - 1)/2, but i'm not sure if that'll lead anywhere, due to the (3^{t+1} - 1)/2 term
if only there were no 1/2 factor

There are two parts that you need to show: existence and uniqueness. Existence can be pretty easily with induction on n. The tricky part is uniqueness. To show this, assume you have two representations of n. Then subtract one from the other and show that the coefficients of these two representations are equal
uniqueness i'll deal with when i come to it, i think it's precisely the induction part i don't know how to structure
Ah
i'm comfortable with induction over all n, but weirdly i can never seem to wrap my head around induction on finite n...
i know that makes no sense, i don't make much sense generally 
So suppose that there is a representation for $n$ - say, [n = c_0 \cdot 3^0 + c_1 \cdot 3 + \dots + c_s \cdot 3^s.] Then we have that [n + 1 = (c_0 + 1) \cdot 3^0 + c_1 \cdot 3 + \dots + c_s \cdot 3^s.]
This is all fine unless c_0 is already 1
OH
If $c_0 = 1$, then [n + 1 = -c_0 \cdot 3^0 + (c_1 + 1) \cdot 3 + \dots + c_s \cdot 3^s]
it did not occur to silly me we should consider n+1, i was just thinking of starting with some repr with digits in {0,1,2} and reducing it to a different repr with some of the digits now in {-1,0,1} and then doing induction on that new repr but with the same n

thank you very much open, i think i've got it


Hello, does anyone know how to prove the following identity for the Möbius function?
$\sum_{i \leq n} \mu (i) \floor{\frac{n}{i}} = 1$
Miyo
Well yes, but the same principle applies
I'd guess write the floor as another sum (possibly over divisors), switch the order of summation so it looks more like a dirichlet convolution or something like that
you've made some mistake, you can't have composite numbers in the bottom of a legendre symbol (although there are generalizations that do, walk before you can run)
show your steps
hmm hard to tell if you're doing it right, if you'd doing reduction mod 263 you can just cut out more and do that in a single step
like going from (3000/263) = (107/263) is fine
so you determined 107 is a prime = 3 mod 4 and got this, this is good:
(3000/263) = (263/107) = - (156/107) = -(49/107)
although there's an important rule you should know of
(ab/p) = (a/p) (b/p)
(this is how I would have started solving it from the start, but let's just go with your way since it's almost done)
so you can write (49/107)=(7^2/107) = 1 (it's literally a square so it's +1, a quadratic residue)
that make sense?
so (3000/263) = -1
How I did it was starting from the completely multiplicative property by factoring in the beginning:
(3000/263) = (2/263)(3/263)(5/263) = (+1) (-(263/3)) (263/5) = -(2/3)(3/5) = -(-1)(-1) = -1
in the first = sign I implicitly threw away (2^3/263) = (2/263) (2^2/263) = (2/263) since (2^2/263) = 1 (a square is +1)
doesn't matter if it's +1 or -1 since it's squared
but more importantly (a^2/p)=1 because a^2 is a quadratic residue
there's no reason to keep going after that point
Thanks, in the end I was able to do it by induction, pretty neat
Hopefully this is the right channel, can someone explain generating functions to me? For a sequence a_n is the generating function just "another way" to express the sequence?
I just dont understand how for the sequence 1, 1, 1, 1, ..., the generating function is this:
Wouldnt that generate the aforementioned sequence for x=1?
Not quite
Ok so imagine the series {a_i} as the infinite tuple (a_1,a_2,a_3...a_k,...)
Now a generating function is kind of about mapping this tuple to a formal power series
@jolly robin
So (1,1,1...) gets mapped to the element (1)1+(1)x+(1)x^2...
If you are talking about ordinary generating functions
ohhh
...but why though
Because formal series have more properties than regular tuples
For example you can take infinite sums like this
So an use case for generating functions is solving homogeneous linear recurrences with constant coefficients
Allright so for a_n=1/n you would have 1/1 * x+1/2 * x^2 and so on?
Yes that's the ordinary generating function
Well apparently -log(1-x) is also the generating function for 1/n
Yea
but how do you get that
as in
-log(1-x)=1/n for any x?
no thats not the right way to put it
so it would be 1/1 * -log(1-1) + 1/2 * -log(1-2)?
thats what i dont understand really
how does -log(1-x) give us any term out of 1/n
so i got that f'(n)=1/n. is that why?
Well look up the power series of -ln(1-x)
It can be derived by considering $\frac{1}{1-x}= \sum_{i=0}^{\infty} x^i$ and integrating on both sides
DraK
how could i integrate the RHS?
is that wrong though?
oh, yeah, that was a stupid question lmao
Well use CRT
Does the system x^2=47 mod 11, x^2=47 mod 19 have solutions
x=5 mod 11, x=3 mod 19 should solve it
Now reconstruct the solution mod 209
In general decompose into a system and check if the number is a quadratic residue for each modulus
oh so we can just break up (47 / 209) into (47 / 11) and (47 / 19)?
Well both should be 1 individually
i mean like
Yes
Because CRT
Now your question would be "what if you have prime powers"
And for that,this works
https://mathoverflow.net/questions/223430/relationship-between-quadratic-residues-modulo-a-prime-and-quadratic-residues-mo
So 47 is a quadratic residue for 49 iff it's a quadratic residue for 7
It's valid only if the splits are coprime
on a different note, any pointers?
For a) you can consider only 1!+2!+3!+4! mod 5
can I think of $\bZ_p$ as $\varprojlim \bZ/p^i\bZ$ or is that a bad intuition
yeah that's what I'm saying
but there's this p adic analytic way of defining them
but yeah they're isomorphic as rings and homeomorphic as spaces
Ok,so consider n>5
Then the sum is 9(17+80k). If this were to be a perfect square, 17 has to be a quadratic residue of 80. But this forces 17 to be a quadratic residue of 5,i.e., 2 to be a quadratic residue of 5,which is impossible by observation.
<@&268886789983436800>
we allow requests for tutoring
just not unsolicited ads
we discourage them, though; easy to get scammed and we claim no responsibility or ability to reclaim funds
hold up you can do @livid birch 's problem for part b directly from part a, since you know for n>=5 it's 3 mod 5 which isn't a QR. then just write down the few other cases for n<5 to check
lmao, that was obvious
Well ig my answer kinda uses that in a sense
I basically did (9^(-1) 3) is not a quadratic residue of 5
Which is iff 3 is not a quadratic residue of 5
yeah you weren't wrong I don't think just like went out further than you had to
since -1 is a QR in Z/5Z both 2 and 3 are NRs
cause 2=-3 yea
LeftySam
i just realized this later but is b) asking for a square mod 5 or square in general?
hi mero 
square in general
guys pls help me in help-2
@leaden swan Zura?
Zura ja nai katsura da(Sorry for the ping)
You can delete latex stuff for a short period after posting but not long thereafter
hey 😛

yeah, it doesn't matter since proving something isn't a square mod n means whatever integer it came from couldn't have been a square either
and that's why a) proves the n \geq 5 case right?
yeah exactly
def overlooking something simple but any hints on a?
i know obv that x is a square mod p if x^(p-1/2) = 1 mod p
Lol p sure I did a q almost identical to this
Well the easiest way to me is just to use standard facts on (2/q), but idk if that's too much firepower
that is interesting tbh
ye but its not obvious why that should be true
Well
it is equivalent to p being a nonsquare btw
yh i assume you're meant to use a different method and then deduce (using euler's criterion) that 2^p \equiv 1 mod q

this is weird cuz at some point you have to use the fact that p=3 mod 4, ie, q=-1 mod 8
arent there a few choices mod 8?
,av croqueta
interior crocodile alligator
but like this is circular reasoning
from what I remember, proving that 2 is square mod p iff p=+-1 mod 8 would not make it easier if p=2q+1, with q=3 mod 4
(I interchanged the names of p and q)
Ok so couldnt help because busy with other stuff
But I feel extremely tempted to say that for primes p it is impossible that 2p+1 divides 2^p+1
At least for p =3 mod 4 or something
P=5 counterexample btw but p=1 mod 4
how does this make sense
i already proved this
dont b and c contradict each other
why do b and c contradict each other?
S can be 0...?
disclaimer: I didn't follow the previous questions
...
Hi, I have an question about Gaussian integers, specifically to prove that Gaussian integers that satisfy a particular equation are coprime. Would it be better suited here or in #advanced-number-theory ?
#advanced-number-theory i think
Thanks, reposted there, and please tag me if you can help me!
how does one "say" this in words? like how do you say (a/p)
Legendre symbol?
so "Legendre symbol a b over p equals Legendre symbol a over p times Legendre symbol b over p"?
You dont need to say "legendre symbol" if we know you are speaking in the context of number theory
collatz 
its true
But the proof would take too long to write out...
but we can approximate a proof by cases
guys i think i proved collatz 🤓
OH SHIT
collatz
collatz
which one is probability?
Any two numbers can be co-primes when the highest common factor is only 1 right?


