#elementary-number-theory
1 messages Ā· Page 68 of 1
too bad you don't commute with 2d girls
suck2015:
Looks good to me
But you can simplify your answer
What is the multiplicative inverse of p-1?
does anyone want to be my guinea pig for a lecture series I'm making on algebraic number theory
you just have to sit back and pretend to be a student free of charge ;) and enjoy
yes
I do not have enough mathematical maturity for algebraic number theory but yes
Sure haha. I don't know much ant so I could use some learn
It's a very gentle intro and I only have the intro lecture so far which is even more gentle so I wouldn't be worried
Kaynex I imagine the first two lectures would be stuff you already know but after that it gets hot š³
but srs dm me if either of you are interested as to when you're free :)
how much algebra is needed for pre req
none really lol if I get deep enough into the series I'll introduce group theory, literally no algebra prereqs
a little mathematical maturity and some basic knowledge of modular arithmetic and divisibility is all really
hm i mean i'm interested, what would like the first lecture cover?
so
Chinese Remainder Theorem only works for finitely large collections of numbers, right?
I assume I canāt say āTake X to be the number which is 1 modulo every prime, except 3, itās 2 modulo 3ā, for example
because no such number exists?
So
If I imagine an infinite-dimensional space
where the āfirstā dimension can have points on either 0 or 1, the second dimension on 0,1, or 2, the third dimension on 0,1,2,3, or 4, and so on- the nāth dimension has the values from 0 to the nāth prime - 1
and I think of these coordinates as representing modularities
then the coordinates, for example, (0,2,3,1,8,8,8...) where itās just 8s forever, would represent the number 8
If I had the coordinates (a,b,c...z,n,n,n...) repeating on ānā forever
and I knew that at least one of a - z was 0
oh okay never mind I solved my problem thank you
I tried something recently where I simply had each line represent a prime number and the coordinates represented the products
it turned out not useful, because any number can be found on any given line from the origin, although Iām sure the infinite-dimensional shape traced out by the coordinates representing ā6ā would be interesting to look at if we could process it
which construction?
haha I took linear algebra last year and now I canāt help but try to convert everything into vector spaces
usually my problem comes from forgetting scalars donāt have to be integers
ik
then I get rid of vector
and just have a space
I donāt know what that is but Iām super excited to learn when I look into abstract algebra
Iāve found that just trying to work around with different random unsolved problems in number theory gives me a lot of insight into what makes it fun and lets me do creative stuff. My goal isnāt to actually solve a problem, just to throw various ideas which Iām sure were tested at the wall and find out exactly why they donāt work
couple months ago I got myself confused because I thought an idea did work, and everyone thought I was a crank trying to share a proof so it took me a long time to be able to find my mistake
to be clear my confusion was that I knew it was too obvious to work and there must be some mistake but I couldnāt find it
honestly the more I learn about number theory, the more fun it seems
The reason Iām doing this is that itās what makes sense at the moment
Iām going to college soon, planning on math major, and Iād like to focus on branches that interest me
but itās also easier for me to learn them in the actual class
so for now Iām working on testing what I can of various branches, seeing what I like and what I donāt, and coming in here if I can tell Iāve confused myself into thinking something thatās wrong
and the idea I tried to bring up earlier this conversation- I made a mental mistake and was confusing infinitely many dimensions with infinitely long dimensions, and while I believe my original problem would have been correct with a restricted number of infinitely long dimensions, it was the count that mattered and I didnāt realise that until I went to explain my confusion
Thatās what I plan on
Iām mostly focusing on getting a better grasp on basic set theory, proofs, and LaTeX (so I can properly ask questions) right now, and when I feel comfortable there Iāll probably move on to abstract algebra
and also a bit of real analysis Iām trying to work through on the side as well rn
The thing with elementary number theory is, whenever I learn a new concept, my natural response to try and tighten my intuition is to see how it applies to numbers and the natural number system
and this leads me to getting questions about numbers I wouldnāt have had otherwise
like when I learned about vector spaces, I immediately tried representing numbers with their coordinates representing their prime factorisation, and the results of that experiment gave me good insight as to how vector spaces were really helpful and also where they can be limited
that sort of thing has proven excellent for helping me understand what Iām learning, but it keeps coming at the cost of some questions about number theory which Iām not always able to answer myself (I wish I was)
This subject is, I suppose, the perfect storm of interesting questions and applications I can fully imagine with my current knowledge, and absolutely no way to understand or use them or answer my questions about them without years more study
can I ask a silly question?
How do I NOT do number theory
No, like in the sense that thinking about other things always leads to thinking about number theory
more specifically, it leads me to questions in number theory I canāt answer and wind up getting hyper focused on
It winds up being truly interesting often
and maybe not even number theory in particular
Like, the other day I was playing around with patterns in primes and wound up in #topology asking about lines on the surface of a torus
I have exactly enough knowledge to ask interesting questions (to me) and make interesting connections without being able to understand anything about the answers or results, and that winds up being difficult for me to accept and leads to my progress stalling and sometimes leaves me more confused than when I started
Do you have any sort of short term way to avoid the lure?
wax while I row past the sirens?
This might come across as... I dunno, something not good
I genuinely want to know how to avoid getting sidetracked like this
Yeah, even my tiny tiny bit of set notation proved insanely helpful
Would you recommend stopping real analysis for now to learn algebra?
for notation & stuff?
I meant as in
do abstract algebra, and then return to analysis
not just stop analysis all together
@sacred junco does that change your opinion?
cause like
remember the question I was asking in #topology?
I couldnāt understand a thing you guys were saying
because I didnāt have algebra
see, if I do algebra, then when I have a question, I can both ask and answer it
ask and understand answers I mean
I canāt do that now
I donāt think itāll get me to number theory faster
I think itāll be what I need to understand things when I get confused and look online for guidance and stuff like that
no I could tell
like lifts were tooological
but Z^2 / R^2 Iām pretty sure is algebra right?
thatās what Iām trying to do is my point
but the basic topics are algebra and analysis
well for that question sure
but overall
oh
really?
nice
I like topology- I donāt understand a bit of it, but I like the concepts as I understand them, so Iām looking forwards to that
can I ask
do you have a good source online for where I can learn those things?
books are expensive haha
I will be yeag
Iām trying to do what I can in the meantime though
well I hope I will be anyway :P
neither
Iām on a gap year starting this fall
yeah,
I had decided before Covid hit, and now I have a really good reason lol
I want to keep my math skills fresh over break though
yeah I took a semester last year
started there, ended with eigenvectors and stuff
why?
You mean before analysis & all those?
I have more experience in self study then Iād like
had to learn for like three years on Khan Academy alone
see actually, linear algebra is a great example of why I want algebraic
I could understand the computations, but not conceptualise what I was actually doing
well but
see, I did conceptualise it eventually
by coming up with different ideas for vector spaces in the context of numbers and seeing the results
and that led to a lot of confusion, though it was helpful in the end
but with algebra, I could express my confusion, and it would have been a lot easier
understand what?
abstract algebra sorry
iām
basic set theory, rings, fields, stuff like that
I thought- is that wrong?
right
and thatās what I need
expressing confusions
well like
huh this is neat
really simple, but I just noticed that the reverse distributive property holds for numbers that sum to 1
e.g. if a+b+c = 1, then a+(b*c) = (a+b) * (a+c)
hahaha, wow, that's cute
with the exception of b or c being 0
edit: I have no idea why I thought it had that exception, it does not
Lol
I love things like this
tiny useless tidbits that could one day be relevant to happen to know years down the line
too bad most of us don't have a good enough to store them perfectly for that long
funny I figured this out earlier this year too haha @jovial hemlock
here's a kind of related question you might enjoy, when is the cross product associative for 3 vectors and the result nonzero?
do whatever you have to to get an answer
Oh well im dumb anyways you cant cross 3 vectors in 2D
Lemme try work it out
Oh wait
You said associative
Ive been toiling with the problem in my head for commutative
haha š
Alright sounds easier
Alright i think i got it
If the product is a x b x c, then it is associative and non zero if a = c (and the individual cross products arent 0 ofc)
@torn escarp
I didnt actually prove it though but from looking at the equations it seems to be the case
looks like the right track, I don't think this is the most general answer but I don't have the solution here myself I'll have to work it out again to check
but yeah, I guess give more of your reasoning/argument
Haha it's incredibly weak i should probably prove it
I just worked through the algebra of the two cases, and when comparing the final vectors, a sort of replaced the role c had in the first equation and vice versa
There's probably a much simpler way to do it by thinking about it visually
However it is not too hard visually to see that my case does work
I dont know if it's the only case
Additionally, the result of the cross product will be b when a and b are perfectly perpendicular and of equal norms
here's what I have in mind, put c=ka for a scalar k and then use the property axb =-bxa to flip stuff around a bit if necessary and move the k around
(axb)xc = (axb)xka = (kaxb)xa = (cxb)xa = -ax(cxb) = -ax(-bxc)=ax(bxc)
I moved the scalar k around
Oh yeah ofc
basically to flip flop a and c
but I don't feel satisfied that this is the most general solution
So simple and then there's me with my tedious cross product algebra XD
š
Yeah there might be a more general solution
I guess here a,b are arbitrary vectors and then c is always a scalar multiple of a, so only slightly more general than your answer but
Well it's a lot more powerful
I guess the answer I'd like would be like a set of vectors that all mutually are associative maybe
Mine was only the special case k = 1
yeah still you made a huge dent in the problem by figuring that out
you would have got the scalar multiple part eventually I think
that's a tinier leap to make
Is there some cross product identity for a x (b +c)
Im trying to prove this must be the general case
oh good idea, yeah it distributes
Thanks
Proved it i think
So if c is not ka
Oh wait haha i already see a flaw
Okay well ive only proved that it 's not true for c = any other vectors spanned by a and b
Because then we have (axb)x(ka + lb) = (axb)xka + (axb)xlb
Additionally we have ax(bx(ka+lb)) = ax(bxka + bxlb) = ax(bxka) + ax(bxlb) we know from your earlier proof that this is (axb)xka + ax(bxlb)
So if we assume associativity then (axb)xka + (axb)xlb = (axb)xka + ax(bxlb) => (axb)xlb = ax(bxlb)
But bxlb is not a vector so this cant be true
Is that a valid proof?
@torn escarp
Also this doesnt really belong in this chat does it?
sec need to focus on it but
oh well, I guess not but too late at this point
it was related to the other problem lol
this channel is usually not that busy anyways
Does the proof look valid?
hmm I'm not sure
well ok since earlier I said it had to be non zero and you showed it ended up giving (axb)xlb = 0
then it doesn't work because of that
I guess I'm not sure which thing it's proving, I'm just distracted right now
I think the idea is good
like representing a vector in terms of other vectors like that
I'm too preoccupied to really check it but seems like it could work
Haha thanks dw about it
I found a more general result, I think
a x (b x c) = (a x b) x c iff b x (a x c) = 0
Ooh nice
This can happen either if a is a multiple of c, or if b is a multiple of their cross product
So that takes into account all multiples of a for c, plus additionally axc being a multiple of b
but I do want to test an example out quickly just to feel more confident
Wait
I have an example where we get a 0 cross product
Let a = (1,0,0), c = (0,1,0) and b = (0,0,1)
Then ax(bxc) is 0 so it doesnt work
wdym that doesnāt work
The original question was asking about associativity and non zero cross product
bx(axc) is 0 sure, but so is the actual product we're interested in
technically I didnāt make any limitations to check that the result was non-zero, that would be quite difficult
but it does find, for example, the following group that does work
a = (2,3,4), b = (-6,12,-6), c = (5,6,7)
To find only non-zero groups, youād have to add on the shoe-horned restrictions that a is not a multiple of b x c and b is not a multiple of c, but honestly I think the more general solution here is cooler
@torn escarp is this what you were thinking of?
Yeah it's still a cool solution. Howd you come across it?
Simply doing it component-wise
doing a x (b x c) manually based off of their components, doing (a x b) x c based off of their components
Do you have a proof, would be nice to get one though im pretty convinced
sure
itās a little lackluster because I didnāt write down anything in words though
on the first page I expand (a x b) x c, on the second page I expand a x (b x c), then on the second page I set them equal and do some manipulations on the equation for the x-component (y and z are the same manipulations but not written down) and plug my equations back into vector form, and on the third page I show that the result is an expansion of b x (a x c) = 0
Nice
I didnt have the resilience to go through the algebra and go further than just finding the expressions for the two associate cross products
Nicely done
this isnāt a formalized proof, I didnāt write it to be one when doing it
Iām glad that I recognized the bottom equations on page 2 as being equal to b x (a x c) = 0 so quickly
Yeah good job
this is honestly the only time Iāve ever had fun with cross products lol
Can you do the same with c x (b x a)
Wait nvm i misread
Thought for a moment you might be able to
Plus if c x (b x a) = 0 then (a x -b) x -c = 0 so (axb)xc = 0
if you have c x -(a x b) does that equal -(c x (a x b))?
because if so c x (b x a) does equal (a x b) x c
haha
Shouldnt be able to cancel out my negatives i dont think
Wait actually
Yes sorry
What you said is true as well
c x -(a x b) = -(c x ( a x b))
and therefore (a x b) x c = c x (b x a)
Yes
thatās interesting, cross products have a weird 3-vector commutativity
Yeah
now hereās a challenge for you. You have 10 seconds.
Oh no
If * is for dot product, when does (a*b) * c = a * (b * c)?
why
Because any two vectors dotted is a real
haha
Cant dot a real and a vector
yep
What if your vector space is R?
toldja you could do it :)
Fair @proven dagger
But we're referring to common high school geometry vector spaces
6 =/= [6]
@jovial hemlock it is technically
And at that point your metric is just regular multiplication
I mean sure you could say it is, but I donāt see why it would be a vector instead of just a scalar
No but if your vector space is R, then scalars are vectors
that doesnāt... that doesnāt make sense to me
hmm
I mean I understand why you could say that if you wanted to
It has to do with the actual definition of a vector space
but I donāt see why youād want to
A vector isnt especially an arrow
It doesnt really matter for our purposes they were being pedantic
I know, but I thought a scalar doesnāt exist in a vector space
I thought a scalar was an operation you do on a vector
and it seems strange for operations to themselves be vectors like that
Yes but when your vector space is R, the pool of scalars can still be R
Iād think that even in R, 6 =/= [6]
So i believe scaling vectors is the same as applying the metric
It comes out to the same result yeah
I doubt you ever use that vector space
This conversation has truly shocked me
I did not know cross products could be fun
Um, is there a "standard" proof for this?
For any even 2k > 2 and any positive integer n, (2k)^n - 1 is never a prime except when n = 1 and 2k - 1 is prime?
I have a proof. Just wondering if there is a "nicer" "accepted" one?
Use the fact that $x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+\cdots+xy^{n-2}+y^{n-1})$ to factor $(2k)^n-1$ and notice that if $n>1$ then both factors are not $1$, and the case of $n=1$ and $2k-1$ is not prime is easy
@sterile pumice
Whoever:
I wouldn't say this is "the standard proof", but it is fairly obvious that you should do something like this
Wow. Thank you.
if u do the zeta function as the input as each prime
$p\in \mathbb{P} \sum_{n=1}^{\infty} \frac{1}{n^{p_n}} = \alpha $
consciousness is quantum:
i did a program and it looks like it may converge? or am i jus wasting time
It does converge
You can do an easy comparison test with 1/n^2
Since all primes are greater than or equal to 2
@median gorge
epic is this a pointless number then?
@fervent crest is there something i can read about this sum?
I don't know anything about this sum 
LoliShrug
was hoping to get some help with this, solving the pell equation is no problem, but i'm stuck when its like this
divide both sides by 4
then you can use the continued fraction of sqrt(21)
[4; 1, 1, 2, 1, 1, 8]
in fact you can even just use 5^2 - 21*1^2
CF gives you 55^2 - 21*12^2 = 1
23^2 - 21*5^2 = 4 came before that
Let $\phi=\frac{1+\sqrt{5}}{2}$, how do I prove that there is no unit $u\in\bZ[\phi]$ such that $1<u<\phi$
critter:
One way to prove that is by calculating the fundamental unit of $\bZ[\phi]$, which is in fact $\phi$. By Dirichlet's Unit Theorem we know that the $\bZ[\phi]^*$ is generated by $\pm \phi^{k}$, therefore such an $u$ can't exist.
Or more elementary: Assume there exists a unit $1<u<\phi$. Then $u=\frac{x+y\sqrt{5}}{2}$ for some $x,y \in \bZ$ and
$$\pm 1 =N(u)= \frac{x+y\sqrt{5}}{2}\frac{x-y\sqrt{5}}{2}$$
Since $1<u$ you can write
$$-u < -1 \le N(u) \le 1 < u$$
Divide by $u\neq 0$ , then $-1 < \frac{x-y\sqrt{5}}{2} < 1$.
Now add that last inquality to $1 < u <\phi$. So $0 < x < 1+\phi$. Since $x$ is an integer we have $x=1$ or $x=2$.
If $x=1$, then $1^2-5y^2=\pm 4$ has solutions $y=\pm 1$. If $x=2$, then $4-5y^2=\pm 4$ has the solution $y=0$. But all these units don't satsify $1<u<\phi$.
Ceana:
It basically says that the unit group of a ring of integers is isomorphic to the product of a finite group and some free group of rank n=r+s-1 for certain r and s.
I see
this was assigned in the unit about diophantine equations, it seems unrelated so i'm struggling
how to go about it :/
WLOG, choose $q \leq p$.
There are $p^2q^3$ integers divisible by $p$, and for every $p$ integers there are $[ p/q ]$ integers divisible by $q$.
Hence the number of integers divisible by $p$ and $q$ is
$$p^2 q^3 (1 + [p/q] )$$
So the number of integers not divisible by them is
$$(pq)^3 - p^2q^3 ( 1 + [p/q] )$$
$$= p^2q^3 ( p - 1 - [p/q] )$$
And by symmetry (given that p and q are coprime), the avg. is $\frac{(pq)^3}{2}$.
Daniel Cann:
This does not seem right, could someone let me know what they think?
Because I have made a use of [...] in order to obtain the integer part of p/q
But there must be a way to do it without that
Although the formula appears to be giving a correct answer
There is no way that's right...
I think it's because my answer is not symmetric with respect to p and q
There are p^2^3 integers divisible by p? I'm assuming the context is not the whole of Z?
What are you trying to prove?
Lol, thanks. Didn't see the question
Im not sure if q,p are primes or arbitrary integers tho
If they were primes, they wouldn't specify they were co prime
Assuming p and q coprime the answer should be p^2q^2(p-1)(q-1)
How do we show that there always exists an integer $k \in \mathbb{Z}/m\mathbb{Z}$ for which $2^k \equiv k \pmod m$?
NinthLyfe:
Whatās k for m=3?
Explain why not
How does that make it not well defined
not really
ok i just read it
that doesn't affect the problem does it? I'll just reframe it like this, then:
How do we show that there always exists an integer $0 \leq k < m$ for which $2^k \equiv k \pmod m$?
NinthLyfe:
The case of m=1 is trivial. Suppose m>1 and that the claim holds for all n<m. Then there exist (arbitrarily large) r such that 2^r=r mod totient(m) (as totient(m)<m). Now setting k=2^r, we get that 2^(2^r)=2^r mod m holds for all sufficiently large r satisfying the above condition because 2^r and 2^2^r eventually vanish mod 2^v_2(m) and because 2^(2^r-r)=1 mod p^v_p(m) for any odd prime p dividing m by Eulerās Theorem.
This shows that there always exists such a k
But the bounds it gives are pretty bad
can anyone explain why any prime number "p" that satisfies ** p(mod4)=1** can we written as the sum of two perfect squares?
Do you know about the gaussian integers?
i know the definition
There is an excellent mathologer video with the best proof of this claim I have ever seen
Today's video is about a new really wonderfully simple and visual proof of Fermat's famous two square theorem: An odd prime can be written as the sum of two integer squares iff it is of the form 4k+1. This proof is a visual incarnation of Zagier's (in)famous one-sentence proof...
There you go
How would you show that Y = {1/x : x ā X} is bounded above? If X is bounded below, X ā ā and also inf X > 0.
I let inf X = α -> 0 < α
Y is bounded above because Y = 1/α
Then letting sup Y = β,
β = 1/α
is that n theory o.o
Is there a channel for Set Theory?
this looks like it could be in a lot of channels
gotta ask a mod tbh
maybe #proofs-and-logic
Maybe #advanced-analysis ?
could be
@vernal widget ty
np
@vernal widget It says I don't have permission to type in there
Ah, ty very much @vernal widget š
np
Given arbitrary natural numbers $a$ and $b$, where $b > a$, how can I find the smallest naturally number $n >1$ such that $a^n \equiv a \mod b$?
Notchmath:
look up the carmichael function
that and the euler totient function
those would be some things to look at to get started
Well if gcd(a,b)=1 then such number exists
if b is a power of a, for example, it doesn't
the carmichael function seems to almost be what I want
no it doesn't never mind
hm
see I was looking at- if in base 10 you pick a single digit number, say 7, and look at the last digit as you exponentiate it, you get 7, 9, 3, 1, repeating. And I'm curious as to the length of those cycles for the more general case
yeah
I'm not sure if there any cases where the cycle does not include its first member if b is not a power of a- if a is 3 and b is 9, you get 3, 0, 0, 0, 0, all the way 0s
lambda(10)=4
well certainly that's the maximum
all others are divisors of 4
have you learned lagrange's theorem?
I say all others but we are in the context of numbers relatively prime to 10, just to be clear
no
For now we assume $\gcd(a,b)=1$.
You can rephrase your problem to finding the smallest positive integer $n$ such that $a^n\equiv1\pmod{b}$. This number is called the order of $a$ modulo $b$ and let's denote this as $\operatorname{ord}_b(a)$.
Some elementary observation about the order of a number is that if $a^n\equiv1\pmod{b}$ if and only if $\operatorname{ord}(b)\mid n$. Therefore by Euler's theorem we have $\operatorname{ord}_b(a)\mid\varphi(b)$. Therefore to find the order of a specific $a$, you just need to look at all the divisors of $\varphi(b)$, and one of them is the order of $a$.
Then there is another lemma that can help you: let $a$ be an integer, and if $a^n\equiv1\pmod{b}$ but $a^{n/p}\not\equiv1\pmod{b}$ for any prime divisor $p$ of $n$, then $n=\operatorname{ord}_b(a)$.
Therefore here's what you can do to find the order of $a$ modulo $b$: Start with $n=\varphi(b)$. Find all primes $p$ dividing $n$, and raise $a$ to the power $n/p$ modulo $b$. If this number is $1$ for every prime then you're done. If $a^{n/p}$ is not $1$ for some $p$, then replace $n$ with $n/p$ and repeat your process.
yeah no I was clear
otherwise you just have to divide out the gcd
Oops accidentally wrote too much
The assumption gcd(a,b)=1 is to guarantee that the order exists
And it also allows you to cancel a in the equation a^n = a (mod b)
you mean if this number is not 1 for every prime?
Yeah
Whoever:
I THINK the number exists iff a^2 is not a divisor of b, but I'm not sure of that in any way
so is the takeaway that there's no pattern to these, but simply an algorithm? That surprises me, I would've expected there to be something of some kind
I don't think there's a nice pattern to this
I mean you can use Chinese remainder theorem and some other stuff to make the structure of integers modulo n to look much nicer
And then the pattern is pretty nice and calculating the order is fairly easy
That involves some basic group theory
have you heard of the discrete logarithm problem @jovial hemlock
finding exponents is pretty much taking logs
"pretty much" you say
log(b^n) = n log(b)
divide out the log(b)
you're trying to do a discrete logarithm, a problem that is known to be hard
how do we know it's hard? cause lots of people have tried over a long time lol
huh
what do you mean ask a question lol
I'm not psychic
I didn't have a question, I was absorbing what you said
like "huh, that's interesting"
idk what huh means, thought you were confused
sorry
hah it's fine
what do you mean by divide out the log(b)?
you asked "pretty much"
look if I give you a number and you want to know what power it is of something
what do you do?
I thought that was the definition of a log sort of
and "definition" is obviously inexact here
I think I was just being too careless
if you want to know what power of 10 some number, say x, is
you look at log_10(x)
that's the exponent on it, that's all
Oh, maybe you misunderstood my pretty much
I was just suggesting that if you don't log with the same base you get a constant multiplier
it wasn't "In what way is a log used to find exponents", it was "what makes the problem of finding a log different in any way from finding an exponent"
it isn't different
it's just giving what you're doing a name
in terms of how other people already talk about it
you are just kinda coming to it on your own way that's all
just read the first two or three lines of this
In the mathematics of the real numbers, the logarithm logb a is a number x such that bx = a, for given numbers a and b. Analogously, in any group G, powers bk can be defined for all integers k, and the discrete logarithm logb a is an integer k such that bk = a. In number theor...
more accurately, it seems like there is no such number if there is a prime p such that p divides a and p^2 divides b
I think this is a sufficient condition for the number to exist: if p divides a and b, then a has more factors of p than b does
If this holds for all prime then there should exist a number n such that a^n = a (mod b)
just playing around with data, it seems that if numbers a and b produce n according to the above conditions, then numbers A and b produce n, where A is the modular inverse of a with respect to b
not proven or anything, just something I noticed in a few test examples
I'd look at the rad(n) (the squarefree radical) as a way of describing stuff
if rad(a)=rad(b) for instance, then some power k of a, a^k=0 mod b
@raven flint Since 3|17a and gcd(3,17)=1, by the fundamental lemma 3|a. Therefore 3|2a. Now since 3|2a and 3|(2a - 7b), 3 divides their difference 2a - (2a - 7b) = 7b. Since 3|7b and gcd(3,7)=1, applying the fundamental lemma yet again yields 3|b
Thanks a lot!! š
hey
for which irrational numbers is the product of two irrational numbers an irrational number??
how can I know which have that property???
I'm tring to know when is the this product irrational for n in the natural numbers
either
$ \sqrt{n^2 + \frac{2n}{3} + \frac{2}{3}} \in I \lor \sqrt{3n^2 + 2n + 2} \in I $
jamperezmondragon:
but how do I prove that???
huuuhh I'm so stupid
shouldn't have factoraized that
just assumed it wasn't the case
for which irrational numbers is the product of two irrational numbers an irrational number??
this is unsolved
really????
yes
but for radical irrational numbers it's simpler isn't it?? there are just two cases
Iām pretty sure we still donāt know whether Ļe is rational or irrational
wooow
lol, that's the example I thought of when thinking it was unsolved
I didn't know that
Not even multiplication but similarly for addition: we donāt know whether Ļ+e is rational or irrational
could u share a case for which the sum of two irrationals is a rational number??
pi + -pi
Damnit sniped
yea?
0/1 how stupid am I
Isnāt that what you wanted?
yes
Not even multiplication but similarly for addition: we donāt know whether Ļ+e is rational or irrational
@fervent crest well how could anyone approach that problem??
If you wanted it not to be zero (1+Ļ) - Ļ
Well I'm not sure how to approach it either, otherwise it would be solved already, but I do know that you can easily show that at least one of Ļe and Ļ+e is transcendental
If you assume Ļ and e are both transcendental
Theorem: Every rational number is the sum of two irrational numbers. The proof is left as an exercise for the reader.
jajajajajajajaj
So for a polynomial, if the coefficients are algebraic then the roots are also algebraic
@fervent crest a trasendental number is such that it can't be expresed algebraicly
Therefore if the roots are transcendental then at least one of the coefficients is transcendental
A transcendental number is a real number that is not the root of some polynomial with integer coefficients
okey
Therefore if the roots are transcendental then at least one of the coefficients is transcendental
Based on this, we have that (x-Ļ)(x-e)=x^2-(Ļ+e)x+Ļe is a polynomial with transcendental roots, so one of its coefficient must be transcendental
Well actually I'm assuming a lot of nontrivial facts
either pi + e or pi times e
Yeah
Well from this you can at least conclude that at least one of them is irrational
Because polynomials with rational coefficients have algebraic roots
and u can do the same with any irrational number isn't it ?
Any two transcendental numbers
Because it is perfectly reasonable for a polynomial with integer coefficients to have irrational roots
u said that u assumed nontrival facts, are they proven???
Well from this you can at least conclude that at least one of them is irrational
@fervent crest is this a theorem???
What is a theorem
I mean if you say a theorem is a fact that can be proven then it is a theorem
yea
a theorem is a fact that can be proven deductivly from the axioms you choosed isn't it?
well thanks anyways
Very interesting discussion @fervent crest @raven stag Iām new to number theory and find it appealing
Glad you find interesting
Yes
because all rational numbers can be expresed as the root of a polynomial with integer coeficients
Exactly
ax + b
a/b is a root of bx-a
yes
ok
but is Q union I = R?
are trasendental numbers defined soley as roots of polynomials with noninteger coeficients??
What
A real number is algebraic if itās the root of some integer coefficient polynomial
A real number is transcendental of itās not algebraic
Roots of polynomials not having integer coefficients still might have algebraic roots
Like x-sqrt(2)
Every real number r is the root of some polynomial, specifically x-r
@raven stag
ahhhhhh duh
ok
I misunderstood the concept of algebraic numbers
but is Q union I = R?
is this true?
Whatās I?
Do you mean irrational numbers?
Well thatās by definition true
Since irrational numbers are just numbers that are not rational, so I = R\Q, so Q union I = R
@storm sinew
Start actually multiplying 3s together:
3¹ = 3 (mod 4)
3² = 1 (mod 4)
And look at that, we already got 1. That means:
3² à 3² à 3² à ... = 1 à 1 à 1 à ... (mod 4)
3^122 = 1 (mod 4)
3^123 = 3 (mod 4)
oh wow, yeah that makes sense, tysm
Think about what is (n+1)! and what is (n+1)*n!
what???
(n+1)! is the product of numbers from 1 to n+1. n! is the product of numbers from 1 to n, and when multiplied with (n+1), (n+1)*n! is the product of numbers from 1 to n+1, so (n+1)=(n+1)*n!
a typo
no
I mean the image
? what about the image
That's what ! is haha
Ok so $(n+1)!=1\cdot2\cdots n(n+1)$. Then $n!=1\cdot2\cdots n$, so $(n+1)\cdot n!=1\cdot2\cdots n(n+1)=(n+1)!$
Whoever:
thats not my issue @raven stag š¤Ø
aye but it's easier to work with
3! = 3(2)!
(n + 1)! = (n + 1)n!
It's the only thing worth saying about the factorial haha
Okay fine you can say other cool things about the factorial
@runic vector where did u find that equation??
But that's the definition. Everything comes from that
The only cool thing about factorial is stirling's formula
says the uncool person weeb
legendre's formula is a cutie
is it right to say that fermats little theorem is a special case of eulers theorem?
and how do i know if i should use FLT or eulers theorem when trying to find the remainder of a large number?
do i use FLT when dividing with a prime? or am i missing something
is it right to say that fermats little theorem is a special case of eulers theorem?
Yes
You are using Euler's theorem in any case
soo dividing by a prime, finding a remainder would give me the same answer using FLT and eulers theorem?
oh wow nvm, im stupid
the totient of a prime would just be p-1
which is fermats little theorem
got it now :)
the totient of a prime would just be p-1
^
which euler's theorem r u guys talking bout? where can I learn more? @sacred junco @storm sinew
@raven stag https://en.m.wikipedia.org/wiki/Euler's_theorem?wprov=sfti1
You can also learn this in any introductory number theory book, the most beginner friendly one I know is āA Friendly Introduction to Number Theory.ā Itās pretty easy to read but still has a lot of content
In number theory, Euler's theorem (also known as the FermatāEuler theorem or Euler's totient theorem) states that if n and a are coprime positive integers, then
a
Ļ
(
n
)
...
the proof is pretty nice too
thanks!!!!
could anyone show me how you would solve 5^12 mod 11*13 using eulers totient theorem?
i got to 5^120 congurent 1 mod 11*13, but now im stuck
do u guys have any general advice on getting better at mental arithmetic?? besides of identities and factorization
i got to 5^120 congurent 1 mod 1113, but now im stuck
@storm sinew 5^12 is congruent to 5^12n mod k
a is congruent to a^n mod k
Not really
then the remainder would be 1 aswell?
answer should be 14 according to my book
but idk how to get to that answer
oh wow, totally forgot that was a way of doing it
tysm!!!
okay so
i got 25mod11=3, and 5^12mod13=1 when doing it separately
but
i dont see how this is going to get me to the answer, which should be 14
@storm sinew @empty yew that is not true, for example x = 0 (mod 4) and x = 0 (mod 6) does not imply x = 0 (mod 4*6)
The statement that if x = k mod a and x = k mod b, then x = k mod ab is not true
But it is true if you assume gcd(a,b)=1
i mean, in my question, gcd(a, b) is 1
but i dont see what to do next
Chinese remainder theorem states that if $x\equiv x_1\pmod{n_1}$ and $x\equiv x_2\pmod{n_2}$ and $\gcd(n_1,n_2)=1$, then $x$ has a unique solution modulo $n_1n_2$
Whoever:
And here's how to find it
So right now we have two congruences: x=3 (mod 11) and x=1 (mod 13)
So by the first congruence, we have x=3+11n for some integer n
Right?
so, basically find an x that fits in both equations
Yes
i've worked with the crt before, so i think i'll be able to find it out now :)
Alright
i just didnt see what to do next
You just let x=5^12, and you observe that x=3 (mod 11) and x=1 (mod 13)
and then chinese remainder theorem gives you a solution modulo 11*13
yeah, totally see it now, thankyou :)
You're welcome
oh hecc, true. sorry about that. i said it in passing without thinking about it too much, sorry
@sacred junco how is this not true??
a is congruent to a^n mod k
2!=2^3 mod 5
What is a,n,k
Idk
$ a \equiv n \textrm{mod}\b \implies a^k \equiv n^k \textrm{mod}\ b$
jamperezmondragon:
Compile Error! Click the
reaction for details. (You may edit your message)
\pmod{b}
Are you trying to say that $a\equiv b\pmod{n}\implies a^k\equiv b^k\pmod{n}$?
Whoever:
That is true
Then a = 1 (mod n) too
Well that's different than this
a is congruent to a^n mod k
a is not arbitrary
yeah but $ (a^{b})^{c} = a^{b\times c}$
Ok here is what happened: the statement I wrote above actually had an implicit statement in the beginning.
If $a,b$ are integers such that $a\equiv b\pmod{n}$, then $a^k\equiv b^k\pmod{n}$ for all positive integers $k$.
If you substitute in $b=1$ then the statement will become:
If $a$ is an integer such that $a\equiv1\pmod{n}$, then $a^k\equiv1\pmod{n}$
no not that
Nonono
Whoever:
jamperezmondragon:
I meant that
yes so $5^{120} \equiv 1\ mod{(11\times13)} \newline \newline \implies 5^{12} \equiv 5^{12\times10}\ mod{(11\times13)}$
jamperezmondragon:
I'm not sure why that implies
do u guys have any general advice on getting better at mental arithmetic?? besides of identities and factorization
@raven stag .
Oh mental arithmetic
Well I always have pencil and paper next to me
My mental arithmetic sucks
So....
@fervent crest $\newline (5^{12})^{10} = 5^{12\times10} = 5^{120} \newline$ and then the theorem u stated
jamperezmondragon:
\equiv for modulos
yes
Ok so (5^12)^10 = 5^120
And you raised both sides to what poower?
And you raised both sides to what poower?
@fervent crest Im doing it in reverse, I think that's what I did not say
Send this in #bots
@fervent crest ohh ok
thanks
oh how so?
$(-1)^2\equiv 1^2 \pmod{p}$, but is $-1\equiv1\pmod{p}$?
Whoever:
It applies to all Z
does it applies to Q at least??
The definition $a\equiv b\pmod{n}$ means $n$ divides $a-b$ does not require $a,b$ to be positive
Whoever:
Well
ohhh wait
Modular arithmetic can be extended to arbitrary rings, which are basically number systems where you can do addition and multiplication
but they don't need to be closed
wdym
rings don't need to be closed under either addition or multiplication to be rings right?
but they can be
ahhh ok
The definition is that they have two operations, or functions RxR -> R
how do u even define division there??
Why do you need division
ohhh shit right
there are just partitions of ur ring isn't it? so ok
wow
that's mind blowing
Well the equivalence classes do partition the ring
You can do it in any ring, but only "nice" rings will have properties that you like
Like for "nice" rings, you sometimes will have that all nonzero elements are invertible, you can extend euler's theorem and etc
oh
so
at some point
some sets that have especific characteristics can be subject of number theory
like the integers and stuff
but instead of numbers just the elements of the set
oh wow
that's rather amazing
Well numbers are elements of a set
In particular the set of integers
But yeah that's common in like all fields of math
yea of course
Where you try to extend the result
oh shit
You notice that some properties of integers only depend on specific features of the integers
ok and u search sets with those features?
Yes
omg
For example
You can notice that the fact that integers have unique factorization theorem can be proved using only a "division algorithm"
So we name rings that have a division algorithm to be "euclidean domains"
and euclidean domains will also have unique factorization
Well of course
so can we apply the ideas that build up criptography to all euclidean domains??
Cryptography?
but with infinite sets of infinite prime numbers?
well I mean that based in prime numbers
euclidean domains have infinite prime numbers I suppose
Not necessarily
why?
but can't the elements of a field be the primes of another set that has that field as a subset?
ok I'm just having a mental fap
I will research this
is it in the artin's algebra book that we where talking bout before? @fervent crest
the euclidean domains and stuff
It probably is? I don't know
I haven't reached that part yet
But it is in
"A Classical Introduction to Modern Number Theory" by Ireland, Rosen
It's in like the first chapter
ok I'm just having a mental fap
lmao ok
Not gonna judge
I don't mean literaly
like it's just that I'm thinking of stuff that I cannot yet understand but still I'm wondering
Oh actually I think any euclidean domain with one primes has infinitely many primes
You can just extend euclid's proof
Yeah
1
p-adic integers
how can i solve 3^12 mod 35?
Exactly the same as the last problem
35=5*7, so find 3^12 modulo 5 and 7, and combine them with crt
oh okay, wasnt sure if i had to find the totient of 35 before, and then split it
but that wont get me anywhere
Another way:
3^12=531441 = 15184*35+1
Is there any chance I can reduce the following to something nice
$n!\cdot\sum_{k=1}^m\frac{1}{(n-k)!}$
Nikolaj-K:
If you bring in n!, it looks similar to a binomial coefficient
In mathematics, Stirling numbers arise in a variety of analytic and combinatorial problems. They are named after James Stirling, who introduced them in the 18th century. Two different sets of numbers bear this name: the Stirling numbers of the first kind and the Stirling numb...
These might help
@sacred junco nah but theres no k! In the denom
well u have sum of k! times nCk
^
sum of nPk
that makes it the coefficient on the exponential generating function you get for coefficient 1 and k! which correspond to e^x and 1/(1-x) respectively so
well, no I'm assuming the upper bound is n not m
if m>=n then it's fine since the higher binomial terms are 0 and cancel out
even then the sum should start at 0 lol
well ok just to finish my original thought since it might be adjustable afterwards, the nth derivative of e^x/(1-x) evaluated at x=0 is the nth term if the sum goes from k=0 to k=m>=n
for $b \geq 2$ and $n$ positive integers, let $F_b(n)$ be the sum of the digits of ($n$ written in base $b$). is there any formula for $\sum \limits_{n=0}^m F_b(n)$ for $m \geq 1$?
Auvera:
i see there are OEIS entries for F_b for small b
but i thought maybe the sum of the F_b(n) is easy to compute for certain m, like maybe m=b^k-1
like aren't the digits of numbers in [0,b^k) uniformly distributed? for example for b=10 and k=2, all numbers have two digits, and there are 10 numbers with first digit being i for each i in {0,1,...,9}. same with the second digit
so in that example we have $\sum \limits_{n=0}^{99} F_{10}(n) = 10 \sum \limits_{i=0}^{9} i + 10 \sum \limits_{i=0}^{9} i = 20 \cdot 55 = 1100$ i think
Auvera:
seems like that easily extends to general b and k
probably sounds like a silly problem but this came up while trying to prove average case complexity of an algorithm i'm working on
How to find the maximum value of $\dfrac {n(99)(98)(97) ... (101 - n)}{100^n}$ for integers n
Barry:
you can take the log of it to separate it out into a sum, then approximate it with an integral so that you have something differentiable to find the max with calculus
you could also try stirling's approximation
probably the max value of that is near the integer value where it is at its max
maybe i'm missing something but seems you can just find the N where the sequence is decreasing for all n larger than N. then check the finitely many n smaller than N for the largest value
Why do you have so many terms in the middle tho 
relatedly, what is the product in the numerator supposed to be
Oh I think I see what he meant
$\frac{n}{100^n}\prod_{i=1}^{n-1}(100-i)$
Whoever:
I think
~~what if n negative
~~
how can i solve this?
Well anything above 3! Is just 0.....
oh wow youre right š
how should i start on this problem?
find the remainder when 6^n is divided by 98 for a few values until u spot a cycle
same with 8
then add
would be my idea
oh ill try that, i tried a much different approach, by splitting them up and using chinese remainder theorem and eulers theorem
but ill try your approach, sounds much easier
yh
my cycle for 6^n looks like
||(6,36,20,22,34,8,48,92,62,78,76,64,90,50,6)||
and for 8^n ||(8,64,22,78,36,92,50,8)||
notice 6 =7-1, and 8=7+1
hm very smart
and also 98 =7^2 times 2
therefore everything cancels excpet 2 times 98C0
so remainder is 2
Hi, does anyone know how to code the Chinese Remainder Theorem out in Python?
The main problem would be finding the multiplicative inverse
Once you have that it's fairly easy to explicitly write out a solution
THanks, I'll try to figure it out
so, i basically figured out that n=12, but i dont see how i can find out what the 7th smallest possible value of n is..?
Remember by chinese remainder theorem
This solution is unique modulo 5*9*11
That means that there is only 1 solution in every interval of 5*9*11 numbers
could you please show me an example? :)
no i just didnt understand what you meant by every interval of 5 * 9 * 11 numbers
i mean
Oh
i dont see how i could find the 7th smallest possible value
So you said the solution is n=12, I'll assume that's correct
So the solution set is actually n = 12 (mod 5*9*11), so any number congruent to 12 modulo 5*9*11 is a solution
Yes so the answer is 5*9*11*7+12
Assuming 12 was a solution of that system of congruence
@storm sinew
12 was a solution, but 5 * 9 * 11 * 7 + 12 wasn't correct :|
actually had to multiply by 6 instead of 7
but i see why
Oh yeah oops
why wouldnt eulers theorem work here??
i usually put mod 10, and then use the totient of 10 which is 4
so 54^4=1 mod 10
but that doesnt seem to be the case here?
oh wait 54 aint coprime with 10
my bad
lol

