#elementary-number-theory
1 messages · Page 61 of 1

its the other way around, we should have that f divides g
is g = x - alpha? since an algebraic integer is an integer
let me look at the lemma proved in class
rational algebraic integers are integers
oh, i needed gcd?
what
what the hell
claim: suppose gcd(m, k) = 1, m != k, then m/k is not algebraic integer
is the thing i supposedly proved in class
wtf
all rational numbers m/k can be written so that gcd(m,k) = 1

so like 2/3 would not be alg. int
rational algebraic integers are integers
so was i missing complex alg. ints?
yes
like I said, all rational algebraic integers are integers
yup yup good
so f divides g
let me see if i can convince myself that
can i conclude that f is irreducible?
i want to apply this lemma
you can prove this yes
hmm alright
okay, idk how to show that f is irreducible
i know that it is monic and least degree
well what does it mean for a polynomial to be irreducible
umm

wops
it means it cannot be factored
but i don't know how to formalize that
this is disappointing
okay
so f being irred. means if i write f = gh, then either g or h must be constant
ily zoph
hmm alright
well i know that i must also assume a being root of f right
if not, then x^2 - 4 = (x - 2)(x + 1) would be a counter example
uh, f is defined so that f(a) =0 so yes?
oh yeah right.
well ok
let $f = gh$, then plugging in $\alpha$ we know $f(\alpha)=g(\alpha)h(\alpha)=0$, this means $g(\alpha)=0$ or $h(\alpha)=0$, but since $\deg f = \deg g + \deg h$, and $g,h$ clearly can't be constant functions, contradiction since either $g$ or $h$ have lower degree than $f$ and $\alpha$ is a root of them
yes
Publius:
ok good.
alright
so by proposition (that i will read later), we have f | g
let me see what i can do from there
thanks
i cannot crack this nut open my dude
so i pick p that divides k and find a coefficient that p does not divide, this will show kf is primitive
i just don't know how to find it
don't mind the pink
i did not expect to get bullied this hard by nt when i left algebra

@light flicker papi i need your assistance 
choose k to be the smallest possible like you did
yeah so kf is primitive
do the same thing for l
well i don't know how to prove that kf is primitive
if there's some number that divides all the coefficients
then you could've chosen k to be smaller
which contradicts the fact that k is the lcm
wow huh...
let me think about that
i'm being mega dumb again
ok i see
that makes sense
same for lh
and since g = fh, lkg = lkfg
but since RHS is a product of primitive poly. it means lkg must also be primitive, but multiply by any constant other than 1 will ruin its primitivity
so k = l = 1
but kf = f only has integer coefficient, 
something like that?

a really dumb question probably but if m is an integer and m=sqrt(n) . sqrt(2*n+1) n should be a perfect square , but how can this be proven? ( i assume by contradiction?)
4 has the property that if one adds it to double its square, it yields a perfect square. In other words for natural numbers m,n:
n^2+n^2 +n=m^2
There are four such n<10^6
.If 4 is the smallest nn, what is the second smallest n?
@torn escarp @sacred junco
Okay so you know that n*(2*n+1) is a perfect square
yep!
Now note that gcd(n,2n+1) = gcd(n,n+1) = 1
gcd is ?
So both numbers are relatively prime hence either of them is a perfect square
sorry
Greatest common divisor
If you have a product ab = x^2 and gcd(a,b) = 1 then yes
aha i see
how do we prove that though ? @sacred junco ( sorry for the tag let me know if it annoys you)
No worries, use the fact that the prime factorization is unique
Yep
aye thanks : )
In this Diophantine problem I understand everything except for where 9t and -7t come from. How were they found?
reduce down the original equation, what do you get
x = 1/7 (5 - 9 y)
9 and 7
Okay, so whats the next step after reducing the original equation?
How does this help me get to the fact that x = 20 + 9t and y = -15 -7t
Solving for y i get y = 1/9 (5 - 7 x)
so given one solution for x and y
such that x = 1/7(5 - 9y)
you know that the right hand side is an integer
how much would you have to increase y by, so that it remains an integer
I'd want (5-9y) to be equal to a multiple of 7 right?
yeah
so you know that 5-9y is a multiple of 7
but how much would you need to change y by, so that its still a multiple of 7
sure
but now, what would you need to increase/decrease y by, so that its still a multiple of 7
I feel like I'm not sure what you're asking me
when y = 6, 5 - 9y is divisible by 7
increasing y by 1 doesn't work, because that would make y = 7 and 5-9y is -58, which is not divisible by 7
so how much would you need to increase y by
by 7
and that's why its 7t
So my last step in solving these types of problems could be to take (x coefficient/gcd) to get scale for y and vice versa?
Think I get it now. Thanks for the help I really appreciate it
so i'm thinking about 7)
how do i show that all alg int in Q[\sqrt D] has the form a + b\sqrt D?
isn't that like trivial
oh nvm, a and b integer
okay
let me do a quick ms paint to show my attempt ig
nvm i can tex my hand is too cold to write with mouse
so by question 5, i assume $r+s\sqrt D$ is algebraic integer if and only if $2r,r^2-Ds^2\in\mathbb Z$
Publius:
yes (x - r)^2 - Ds^2 has a root r + s sqrt(D) so if x is alg int r, s in Z
i deduced that $r=\frac2k$ for some $k\in\mathbb Z$, this means,\
$\frac{k^2}{4}-Ds^2\in\mathbb Z$\
$\implies k^2-4Ds^2\in\mathbb Z$\
$\implies Ds^2=\frac{l}{4}$ for some $l\in\mathbb Z$
Publius:
so like, if $D\equiv2,3(4)\implies$ all alg. int. have the form $a+b\sqrt D$ is the same as $D\equiv2,3(4)\implies a=\frac{k}{2}$ and $Db^2=\frac{l}{4}$
ugh..
Publius:
and i want to show this implication
am i on the right track..?
i don't know
what am i suppose to show exactly
is this right?
actually it should be like this but i still have no clue
help me @light flicker papa
hint pls
<@&286206848099549185>
got it, I think
Let $p$ (a prime) divide $2^{2^{n}} + 1$. I.e. $2^{2^{n}} \equiv -1 \pmod{p} \implies 2^{2^{n+1}} \equiv 1 \pmod{p}$. Notice that $2^{n+1}\mid p-1 \implies p \equiv 1 \pmod{2^{n+1}}$. It follows that $r \equiv 1 \pmod{2^{n+1}}$.
PolyBeanDip:
For n>1, you can prove that r=1 mod 2^(n+2) actually
the euler product is cool
defining Zeta(s) = sum of 1/n^s is only for the positive integers, correct?
or is it also used for negatives, like -1
Ive heard of this being used to get 1+2+3+4.... = -1/12, but it doesnt seem right
that sum only converges for Re(n) > 1
also please never mention that sum of integers = -1/12
yeah
will cause mathematicians to want to kms
$\zeta(s) = \frac{1}{\Gamma(s)}\int^\infty_0 \frac{x^{s-1}}{e^x-1}dx$
PorosInMyAshe:
zeta can be defined like this
we havent even looked at the gamma func, just learned the basics today
Now, you can define zeta(s) for negative numbers, but you can't use the same definition to do so.
See the reflection formula
yes thats what i meant
I think the definition I posted works for all s
I saw on wiki it using B, but idk what that is...
Oh shoot really? Even complex?
Let me make sure
That makes sense since 1/Γ is holomorphic
yeah the integral is a common defination for zeta
this defination still needs re(s)>1
for integral to converge
yeah u need func eqn for re(s)<0
it would be false to say that zeta(-1) = sum of 1/(n^-1)
yeah
zeta for Re(s)<1 is defined different
the easier one is between 0<Re(s)<1
so the sum $\sum_{\bN} \frac{(-1)^n}{n^s} = (1-2^{1-s}) \zeta(s)$
JohnDoeSmith:
for Re(s)>1
now we can analytically continue this for Re(s) between 0 and 1
and the sum converges
the Re(s)<0 is a bit ugly
are you allowed to "pull out" the product? i havent taken analysis yet so im not sure
both products converge so maybe?
$\frac{\prod_p\frac{p^2}{p^2-1}}{\prod_p\frac{p^{2s}}{p^{2s}-1}}=\prod_p\frac{\frac{p^2}{p^2-1}}{\frac{p^{2s}}{p^{2s}-1}}$
Whoever:
products are basically exponentiated sums
as long as the sum thing converges ur fine
ok great, thanks
so if u want
i realized i started writing a 2 at some point instead of an s. my handwriting is top tier
you can definitely do the same thing with infinite sums, with the same indices and if both converge, correct
okay, idk how to continue
i also have a feeling that it's completely wrong
please help 
ok yeh my past paragraph is total shit, u and v can also be both odd
4 divides v^2-4Du^2. Since 4 divides 4Du^2 this means 4 divides v^2 so v is even. You need'nt go through other cases.
also i see you cancelling 4's in mod 4
not allowed to do that since 4 is 0 mod 4 so its like dividin by 0
you can only cancel when the thing you want to cancel is coprime to the modulus
Oh I see
That was completely bullshit that I wrote
Multiple of 4 reduced mod 4 is 0


Not sure if this is the correct place but any help with the second part would be great
the left hand side is an increasing function of x
so just check that the inequality is true when x = y - 1
Then I just get x^2 + x > 0
I mean okay, yeah, the point is that that inequality is always true
I’m trying to make the inequality of 0 < x <= y - 1 into what’s needed
since x^2 + x > 0 is always true
you can work backwards from this statement, to the statement that you want to prove
Right I see, I get that bit but is there a way to rearrange to condition to get the x^3 + x^2 < y^3 - y^2
Right. Thanks
what im getting is that (N_0*phi) = 1
and that summation equals to whatever n is
so it would be (1)(15) = 15 in the end and thats how you get the answer?
@light flicker should i remove the question in #help-9
sorry i should have added this for clarification
Sure, it's clarified in your picture
so any n for this function would come out to 1 cause n^0 = 1
thats what i meant when i said (N_0*phi) = 1
i just want to know if im going about this correctly
do you know what dirichlet multiplication means
not really
Then why do you think you're doing this correctly
Why are you even trying to do a problem where you don't understand the main point of the problem
cuz i need to understand it for my number theory class
Sure, but why are you even doing this problem
without trying to figure out what the question is even asking
i am trying to figure it out thats why im here
Sure, so go look in your notes and figure out what it means
Don't just randomly guess and try to do the problem without knowing what it means?
i got 15 @light flicker
I mean
I feel like you were confused because you didn't know what dirichlet multiplication was
i'm stuck on proving the second part of the question
so i know i assume n odd and v even
my wording is also garbage
could i write that and use the same technique..?
@light flicker help me zoph papa

well.
but this is overall the right idea
i guess i should fix the part where i used D is square free and patch it up somehow
well hmm
since 7 is a continuation of 6, and in 6 D is square free

yeah just assume that D is square free
noice
okay, but i still have no idea how to do the second part
i tried the same trick but then 2a-b being an integer can mean a lot of things about a and b
so the coefficient of the monic poly in Z[x] that sends the thing i wrote in ms paint being integers doesn't really help me
Slate:
im wondering if im wrong, ill supply my proof and reasoning if its outright incorrect
what about the normal integers as a subset of Z[i]?
just want to make sure, a mod n = b mod n implies a = b, right?
I don't mean $ a \equiv b mod n$
ntky:
like 4 mod 2 = 0 = 6 mod 2 ?
it means their remainders, r_1 and r_2, when didvided by n are equal
isn't that congruence modulo n?
yes?
What have you tried
shouldn't that be a minus
Yes, my bad
I mean, I'm trying to reach a contradiction. But I can't get any further
I recommend letting a=da’ and b=db’ where d=gcd(a,b).
oh i get it
is someone still working on the a^n - b^n question?
whats the question?
oh
What's the least representation that is composite in Every base (1s and 0s only as we need base 2). Note: "14" is composite base 10 but "14" is not composite base 13. Funsies.
yes but 14 base 13 = 1x13 + 4 = 17.
is someone still working on the a^n - b^n question?
@upbeat wren I am, but I couldn't get any further. With the aid of the gcd, I was able to deduce that we can assume (a,b)=1, but I can't get any further
how long do you reckon the proof of this should be? mines over 2 pages.....i feel i definitely can and should shorten it, and we assume convergence lol
do you know what a dirichlet series or convolution is?
nope
well that's a shame
What's lambda?
liouville function
the left side represents the convolution of a mobius function with a square indicator function
so you can kinda guess, since both have very particular behaviors to do with squares
i literally have no idea what that is lol
yeah that's why it's a shame lol
I used this, which i proved earlier, and showed that the RHS here is equal to the Sum in the above image
I used a bunch of like, actual writing/english, so it could probably be shortened via symbols and etc, but in general do you think that length is extreme?
idk I'd have to see what you wrote, but I am not imagining more than a single page
you said yourself that you're assuming convergence so I don't know what steps you're really taking
i mean that, like our prof said that since this is a basic num theory course, we wont dive into the analysis based section of the proof proving that it coverges
and after I try to clean it up, ill share what i did in a bit
I would just recreate the dirichlet convolution but not call it that personally
@forest mica assuming gcd(a,b)=1, prove that gcd(a^n-b^n,a^n)=1 and then conclude that (a^n-b^n)|2.
$$\frac{1}{\zeta(s)} = \sum_{n\ge 1} \frac{\mu(n)}{n^s}$$
$$\zeta(2s) = \sum_{m \ge 1} \frac{1_{sq(m)}}{m^s}$$
Merosity:
multiply these together, interchange summation signs and substitute to make it in terms of one variable @sleek cove
that's how I'd go about it
hmm, idk what mu and 1_sq are lol
Merosity:
just derive it in a step here, look:
$\zeta(2s) = \sum_{m \ge 1} \frac{1}{m^{2s}} = \sum_{m \ge 1} \frac{1}{(m^2)^s}$
Merosity:
this is only summing over perfect squares
ah, yes
Just use multiplicativity of lambda (which is easy to see)
@forest mica assuming gcd(a,b)=1, prove that gcd(a^n-b^n,a^n)=1 and then conclude that (a^n-b^n)|2.
@supple furnace How do you imply from the 2nd equation the 3rd one?
If (r,s)=1, then r|st implies r|t
By Bezout’s Lemma, if (r,s)=1, then there is a solution to rx+sy=1, so t=rxt+sty=r(xt+(st/r)y), so r|t.
Yep
Thank you!!
Np
@supple furnace I can't think very clearly, and it may be very stupid, but a^n - b^n = 1 has clearly no solutions for n>1, but how can I prove that formally?
a^n-b^n>=(a^(n-1)+...+b^(n-1)), which will have at least two terms >1, so a^n-b^n>2 for a,b,n>1.
What's the second part of the inequality (idk the english word)
Try to prove it
a^(n-1)+a^(n-2)b+a^(n-3)b^2+...+ab^(n-2)+b^(n-1)
Np
ok i got it down to like 1.75 pages lol
i could have simplified it some more but idk, also i got lazy with indices
@torn escarp
basically i looked at the number of primes with odd powers in each term to get the lioville func
Here’s how I’d do it: we want to find prod (1-p^(-s)+p^(-2s)-...) over all primes, which becomes prod 1/(1+p^(-s)) by the geometric series formula. But then prod 1/(1+p^(-s))=prod (1-p^(-2s))/(1-p^(-s))=zeta(s)/zeta(2s).
but how does that yield the liouville func
and i had alr proved that btw
in part a of that problem
Just notice that lambda is multiplicative and that unique factorization exists to break it up into a sum over prime powers.
uh, i get that lambda is muliplicative, but i cant see where negative coefficients would appear when expanding the product
Like, as you expand the prod, you would get terms with and even and odd number of prime factors so lambda should arise, but i feel they are all positive
yes, and lambda( (p_1^k1) x (p_2^k2) ) = (-1)^k1+k2, etc
so when you have an even number of factors, or the sum of k's is even your resulting term is positive, and odd=> negative
Yes, so the decomposition follows immediately since each lambda(n)/n^s can be uniquely decomposed into a product of lambda(p^k)/p^(ks) terms
And furthermore every product of lambda(p^k)/p^(ks) terms corresponds to some lambda(n)/n^s
There’s a 1-1 correspondence
ah
I was stuck on how expanding the product will yield only positive terms
Like i was trying to work out how to get negative terms in the sum after foiling
I wouldn.t have thought to use that equality for Zeta 2s/ Zeta s
Like part A was proving the geometric series result you used, and part B was proving the product of the alternating sum, and part C was the bonus problem
Hmm I see
yeah, usually when we have a, b, c etc the latter builds off of the problem directly prior
although it would work in both cases here
why are you doing dorichlet series when you dont even know dirichlet convolutions or what the mobius function is?
if i did, i was not intending to do so
@supple furnace after i submitted it my prof told me the same thing, and said it could be done in only a couple of lines

could someone explain where ive went wrong for part iii
i think ive made some incorrect assumption at the top but idk why
well
the smallest possible positive integer combination is 13 so that must mean the hcf is 13 right?
or maybe could someone explain how they would go about this
Hint: Factor 36n^2+3n-14
ye ive done that
ig all u need to do is find the values for n when 12n-7/2n+ 1 is integer
not completely sure how id do that
12n-7=6(2n+1)-13 @dreamy rain
ah right, so ull have 6-(13/2n-1) => 2n-1 must then ewual to one of 1,-1,13,-13
thats a nice way to do it yeah
do u have any idea to why my way that i posted above is incorrect?
jist because you can find x,y s.t ax+by=c doesnt mean gcd(x,y)=c
bezouts lemma is that the gcd can be expressed this way but not the other way around
e.g 3(1)+(-1)1=2 so by your logic gcd(3,1)=2 which is absurd.
besides, you messed up when you concluded h=13. 1 divides 13 too
so h could be 1
hint: this is (mostly) all you need https://en.wikipedia.org/wiki/Fermat's_little_theorem
Me?
yeah
I'd be curious to hear how to answer that one, when you've got it figured out, Hrishabh0201
use lifting the exponent
jist because you can find x,y s.t ax+by=c doesnt mean gcd(x,y)=c
yes, but if u find c such that it is the smallest possible positive integer combination, then that does mean it is the gcd, doesnt it?
in my case, i have found an integer combination which equals to 13. that will mean the gcd is either 1 or 13 right?
but because the question basically tells u that the fraction is reducible to an integer, the gcd must be 13 shouldnt it? (because if the gcd is 1, meaning that the numerator and denominator are coprime then the fraction can never cancel)
(ik im wrong but i cant see why)
@gilded tinsel
also really sorry for the late reply
Idk what the problem is, but n is representable in the form ax+by if and only if gcd(a,b)|n.
So if 13 is representable, gcd(a,b)=1 or 13
@sacred junco Check modulo 101 via modular arithmetic. (You could also note that 2^2+11^4 divides 2^1010+11^2020 (x+y divides x^1005+y^1005) and that 2^2+11^4=(11^2-22+2)(11^2+22+2)=(101)(29)(5).) Either way, the answer is 101.
I know very little about elementary num th, but I was looking at Hrishabh0201's problem like:
$(2^{10})^{101}+(11^{20})^{101} \equiv 2^{10}+11^{20} \pmod{101}$ ..
Alek:
does that lead anywhere?
That’s how you do it via modular arithmetic. After that, note that 11^4=(20)^2=-4 mod 101.
So then 2^10+11^20=2^10+(-4)^5=0 mod 101
oh cool
11^2=121
rockpaperscissors:
for odd n
anyone know modern algebra?
I am willing to pay a tutor
someone to help me understand the problems
pm pleasse
just post the specific problems u dont understand here
im still stuck on ii of this question
i tried to make my argument more clear
i dont quite know where ive went wrong
but i think its around where ive put the red bracket
ik theres another simpler method, but ive seen this method being used for other similar questions so im wondering why it doesnt work here
(i don't know why or if anything is wrong b/c i'm not a number theory guy, but the h = 1 case is missing that the fraction can be an integer still, if the denominator is equal to 1; so n = 0 is also an option)
oh true
anyone know why 13k+6 doesnt work for all k? it only works for k=0 and k=-1
i think so far you've only shown that it's necessary that n = 13 k + 6 for some k
but not that all of these values have to give you an integer in this fraction
so there's not necessarily anything wrong with that proof
(it's just not complete yet)
ye, so ive shown that if the gcd=13, n must take the form of 13k+6, and thats correct, so how would i show that it only works for k=0 and k=-1 only hm
i think i see the light
you have another restriction, namely that 13 is the highest common factor of 2n+1 and 12n - 7; so see what happens to these expressions when you insert n = 13k + 6
you might be able to compare factors nicely; not 100% sure yet
ooo i shall have a go at that
uuuh or maybe not, not sure anymore
but yeah give it a try, you might see things that i don't
a 13 factors out of both expressions which looks promising
nah, i think even with k = 1, both of these numbers have highest common factor 13
oookay, this might be shit, but if you insert n = 13k + 6 into those two expressions, you get
2n + 1 = 13 (2k + 1), 12n - 7 = 13 (12 k + 5)
you want 2n + 1 to divide 12n - 7; thus, let us do some modular arithmetic with these expressions
modulo 13(2k + 1), we have:
13(12k + 5) = 13(12k + 5) - 5 * 13(2k + 1) = 13 * 2k
(this makes sense whenever 13(2k + 1) is a positive number)
so you have divisibility exactly when 13 * 2k = 26k is zero modulo 13(2k +1) = 26k + 13
for nonnegative k, this is exactly the case when k = 0, otherwise this can never happen
huh, i'm either not getting something or you could just have done modular arithmetic with 12n - 7 and 2n+1 from the very start
without going through the whole highest common factor trouble
hmm
so looking at 12n -7 mod 2n+1, always keeping in mind that you can only do this when 2n+1 > 0
and then probably just reversing the sign for the other cases in some way
yeah lol,i dont see why that wouldnt work, ill have a go
yea
wait i dont think that would work because 2n-1 doesnt necessarily divide into 12n-7
that's what you want to find out, right?
so assume 2n +1 > 0 for now; then we have modulo 2n +1 :
12n - 7 = 12 n - 7 - (6 * (2n +1)) = -13
so you get the restriction that -13 must be zero modulo 2n+1
whoops
wait i think i messed up somewhere
hmmm, maybe this sort of method just wasnt made for this question lol
heres the simple way
i think imma leave it
im starting to confuse myself lol
oooh, that's super close to what i was thinking though
but perhaps it's better to work with fractions like this rather than modular arithmetic when you divide by a potentially negative number
it's less confusing anyhow
yeah
at least i learnt something if you didn't, lol
lol i mean ive been tryna figure this out for a while, ive def learnt something
and thats great that u learnt something as well :)
how did the definition of a cong b then (a - b)/m = k for k in Z come about
this is a nice way to capture the idea of "remainder"?
why
because two numbers have the same remainder mod n if this holds
prove it
you can do it
use the fact that, given integers m,n there are unique integers q,r such that m = qn + r, where 0 <= r < n
This is "division" by n
i am reading my book
a friendly introduction to number theory
unfortunately congruences are yet to come i just saw this definition
okay and?
so i will be only able to prove this later
I mean, you can prove this now
that is possible but i would just be experimenting
that's not a bad thing
it is if you don't know what you're doing then it is a waste of time
experimentation is not a bad thing if you have an idea of what to do in that subject
depends, I think fumbling around cluelessly makes me appreciate what to do when I eventually learn about it cause I have a reference point
otherwise I'm just inclined to brush it off as common sense or something
I am stuck on the following problem: Let w(n) be the multiplicative function counting the number of distinct prime divisors of n. Prove there are infinitely many positive integers n,n+1,n+2 such that w(n)<w(n+1)<w(n+2).
its easy to control the number of prime divisors of two consectuive integers but I can't do it for 3
I feel like im missing something obvious
Select n=2^a. We prove a lemma: if 2^r+1 is a prime power, then it is a prime or 9. Indeed, suppose 2^r+1=p^k and so 2^r=p^k-1. Then p-1 is a power of 2. If p=3 and r>1 (it’s prime for r=1), then mod 4 implies k is even, and so 3^(k/2)-1 and 3^(k/2)+1 are each powers of 2, forcing k=2 by size. Otherwise, p is 1 mod 4, and so LTE implies r=v_2(p-1)+v_2(k) and hence p^k-1=2^r<=(p-1)k, contradiction unless k=1 (easily seen by dividing by p-1). Therefore, w(2^a+1)=1 forces r=2^k for a>3. Consider each a strictly between 2^(r-1) and 2^r. By the lemma, the first inequality will hold, so it’s enough to find some a such that w(2^a+1)<=w(2^(a-1)+1). If there does not exist such an a, then w(2^a+1)>w(2^(a-1)+1) for each a, and so w(2^(2^r-1)+1)>=2^(r-1), so then 2^(2^r-1)+1>=3(4)^(2^(r-1)-1)=3/2(2^(2^r-1)), a clear contradiction for r>1. Hence this inequality cannot hold for each a, giving some working n between 2^2^(r-1)+1 and 2^2^r+1 for r>2.
how do you come up with this shit tree3
don’t know if this is the right math topic I think it is though
so here’s my question
How do I prove that, if an unknown number X is (a mod c) and (b mod d), where c > d and D = d/GCD(c,d), then X = (a + c * ((a - (b mod (D))) mod (D))) mod (LCM (c,d))?
I don’t actually know whether or not this formula is true.
I’ve been working on an attempted proof that makes heavy use of modulo operators, and as I’ve been doing I’ve been combining things- if X = 9 mod 20 and 5 mod 12 I put down that X = 29 mod 60, and I realised I wasn’t sure that was valid. So I looked up modulo combining rules and couldn’t find any. After a couple hours trial and error I came up with the above formula, but I don’t know how to prove it and I’d prefer to be able to trust what I’m doing. Can I get help?
Yeah, this seems right and follows from the Chinese remainder theorem
I’m not quite sure how it follows
honestly the CRT uses terminology I’m not familiar with- I’m in Linear Algebra rn, can you explain it using words from there or lower? It’s not a conceptual issue it’s a terminology one
@light flicker
Uh, which terminology are you looking at
any of it
Well one I don’t really get how the theorem shows mine to be true
it can show the result that combining things is okay to be true but it seems to give a verification, not a formula
this seems to be the only relevant bit on wikipedia about having a formula
and I don’t know what bezout coeffecients or extended euclidean algorithm or such are
and either way it seems to require iteration which mine doesn’t
Question
You are on a grid of width a and height b
and the grid forms a torus so going off one side puts you on the first one
you begin in the upper left corner, and put a 0 there
then move down and right, and put a 1
and so forth until you fill all the squares with their number
How, given the coordinates of a square, can you determine what number was placed inside it without replicating the path?
a >= b
did i miss something obvious, or was this problem supposed to be like super easy
it's just showing that you can take Omega and extend it to be a function of rational numbers uniquely
what does Omega bar represent though? like what does omega bar of (64, 21) mean?
its as mero said, essentially its counting prime factors of 64/21
with things in the denominator counting as negative
uh
oh duh
so yeah if two fractions are equivalent, you are gonna get same Omega, which is what you should expect
why is it written/defined in ordered pair format
its just a construction of it
oh, i was just confused as to what (a,b) like actually was
you first define the Omega of a pair, and then show that under ad=bc this remains the same
then u can say that this is well defined on fractions
it makes since that all rationals will have a ppf, although its kinda wierd saying ppf, since I'm used to exponents being non negative
thanks for clarification
np
Question.
You are on a grid of width a and height b, a > b
and the grid forms a torus so going off one side puts you on the first one
you begin in the upper left corner, and put a 0 there, then move down and right, and put a 1, and so forth until you fill all the squares with their number.
How, given the coordinates of a square, can you determine what number was placed inside it without replicating the path?
eh
I'm going to assume ||gcd(a,b) = 1|| (which is required for all the squares to be filled)
in which case, this relates to ||chinese remainder theorem||
bc ||n is put in a square that has x coordinate n mod b, and y coordinate n mod a||
I know it relates to chinese remainder theorem but that requires iteration and such
is there a simple formula requiring no iteration?
umm this is probably easier for you guys but can you guys show me how to divide decimals like 2/5.12
oh sorry
@jovial hemlock the chinese remainder theorem method will be fastest (i.e. n = x mod b, n = y mod a, n = kb + x with k = (y - x) b^(-1) (mod a)), and the modular inverse can be calculated quickly with the extended euclidean algorithm
but yes, it will still be recursive
I don't think an explicit formula is known, and I doubt one exists
is there any non-recursive formula? it feels like there should be
because if there is one, it would give us a way to calculate modular inverses explicitly
“modular inverse” meaning
the modular inverse of x mod m is a number y (also denoted x^(-1)) such that xy = 1 (mod m)
and why can’t we get that explicitly
well I don't have a proof, but the way that they act makes this seem highly unlikely to have a closed form
wdym the way that they act
for example, the modular inverse of 2
hmm
bad example :P
it's always (n+1)/2 if it exists
3 then
okay so the modular inverse of 3 is
(n+1)/3 if n = 2 mod 3
and (2n+1)/3 if n = 1 mod 3
what about the modular inverse of 7 mod n
that's additive inverse
I don't think this works
(n+1)/7 if n = 6 (mod 7), (2n+1)/7 if n = 3 (mod 7), (3n+1)/7 if n = 2 (mod 7), (4n+1)/7 if n = 5 (mod 7), (5n+1)/7 if n = 4 (mod 7), (6n+1)/7 if n = 1 (mod 7)
we have this relationship between the modular inverses of 7 mod n and the modular inverses of n mod 7
you have two things if n = 6 mod 7
well (kn+1)/7 * 7 is always going to be 1 (mod n)
so it's just a case of this being an integer
i.e. kn = -1 (mod 7)
is there a list of the numbers for x mod y
I'm just showing you how to generalise it
in general the modular inverse of a mod b is (kb+1)/a, with k = -(b^-1) (mod a), provided gcd(a,b) = 1
what if gcd =/= 1
then it doesn't exist
you can use this to calculate the modular inverse quickly
but it would also have to be recursive
and I haven't checked but it feels like it parallels the extended euclidean algorithm, almost exactly
so the modular inverse of 2 mod 4?
that would require 2x = 1 (mod 4)
ah

ok so first we define an arithmetic stuff
a function is said to be arithmetic if $f:\bN\mapsto \bC$
JohnDoeSmith:
sup yall
a function $f$ is said to be multiplicative if $f(ab)=f(a)f(b)$ whenever $(a,b)=1$
jk
JohnDoeSmith:
Shush
a function is completely multiplicative if $f(ab)=f(a)f(b)$ always
JohnDoeSmith:
we define a binary operation on the arithmetic functions
called the Dirichlet convolution
$(f\star g)(n)= \sum_{d|n} f(d) g\left(\frac{n}{d}\right)$
JohnDoeSmith:
so far so good?
ill let u guys verify a few axioms. Mainly that this is commutative and associative
Yes
tell me when u have confirmed that
Okay go ahead 
JohnDoeSmith:
this is one you should actually confirm btw

just hand wave it lol, but this is important
sigh ok
so a lot of important functions are multiplicative btw
for example euler toitent
or divisor count functions
there is also a dirichlet identity
lets call it e(n)
can u figure out what this function has to be?
identity as in $f\star e=f$ for all $f$
JohnDoeSmith:
Can I just say 1 for e(1) and 0 otherwise?
yep
nice
so next is moebius inversion
so moebius function is defined as a multiplicative function such that $\mu(p)=-1$ and $\mu(p^n)=0$ for $n\geq 2$
JohnDoeSmith:
basically returns 0 if not square-free
and (-1)^prime factors
if it is
define $1(n)=1$ be the constant function
JohnDoeSmith:
JohnDoeSmith:
and tell me what you get
(remember convolution of mult functions is a mult function itself)

wait wats the problem?
How is mobius defined for 1? @winter bear
oh forgot to say all mult functions are 1 at 1
So then wouldn't that composition be 0? 
what about at 1

do you see what $1\star \mu$ is
JohnDoeSmith:
(btw we call it a convolution not composition)
It's the identity 
JohnDoeSmith:
ok so remember how we said
convolution is commutative and associative
heres the nice thing
So let $F(n) = \sum_{d|n} f(n)$ right, then $F= f\star 1$, so $F\star \mu= (f\star 1)\star \mu = f\star(1\star \mu)=f$
JohnDoeSmith:
JohnDoeSmith:
This is known as mobius inversion
moebius*
this is a nice result, you can prove for example Z/pZ is cyclic using this
theres a lot more where this came from, which ill let u research on ur own
also show the form of cyclotomic polynomials
counting primitive strings in alphabet on b letters
$D(f;s)= \sum_{\bN} \frac{f(n)}{n^s}$
JohnDoeSmith:
is the dirichlet series of f
heres the high power theorem that ill let u prove
$D(f\star g; s) = D(f;s)D(g;s)$ given convergence
JohnDoeSmith:

an application
if $\sigma_0(n)$ counts the number of divisiors of $n$, then $\sigma_0 = 1\star 1$ so $\sum_{\bN} \dfrac{\sigma_0(n)}{n^s} = \zeta(s)^2$
JohnDoeSmith:
actually every multiplicative function has a dirichlet inverse
yeah try constucting it
makes the multiplicative functions under dirichlet convolution a group
Thanks for the explanation btw 
ill show u some application of moebius inversion if u want, specifically that (Z/pZ)* is cyclic and a nice form for cyclotomic poly
@sacred junco
Sure
ok so lets do (Z/pZ)* is cyclic
so this means that there is some element of order p-1 in that right
now if $d$ is the order of $x$. Then $x^d-1=0 $ in $\bZ/p\bZ^*$ right. also we must have $d|p-1$ by lagrange. The converse is clearly not true, as every element for example has $x^{p-1}-1=0$ but not every element has that order
JohnDoeSmith:
so far so good?
in a field a polynomial of degree n has atmost n roots
using this, i want you to find the number of roots of $x^d-1$ in $\bZ/p\bZ^*$
JohnDoeSmith:
I just remembered something that I found a while back while playing around that you guys might like to see how to derive easily
$\prod_{d|n}d = n^{\tau(n)/2}$
Merosity:
maybe try to derive this yourself first and ping me when/if you're ready
yeah i see it
ill umm spoiler sol
|| S=sum ln(d) implies 2S= sum ln(d)+ln(n/d) = sum ln(n) = tau(n) ln(n)||
also an interesting identity is $\mu(n)=\sum_{k=1}_{(k,n)=1}^{n} e^{2\pik/n}$
rockpaperscissors:
Compile Error! Click the
reaction for details. (You may edit your message)
oh well im too lazy to fix the latex
but the point is that mu is the sum of primitive roots of unity
I do what you do except I just describe it as being like a product rule how additive functions distribute over dirichlet convolution
I showed you that a long time ago now
oh you might have
just trying to think of cute examples for fruct that are easy to reach
he ded
✝️
have you heard of this problem of counting numbers of primitive strings of length n?
like say you have 0 and 1 and make strings with them like 110001
or 10101010
11001100 is not primitive
cause it's a concatenation of a single string, 1100
1100 is a primitive string cause it can't be made by concatenating a single string with itself
oh right i see how you could use mobius here
yeah how many length n primitive binary strings are there
or any number of symbols not just 2 if you want to go for it
I originally learned the problem from generatingfunctionology
oh thats pretty easy actually
apparently this kind of thing generalizes to necklace rings
just one application of moboius inversion
its like ||k^n convoluted with mobius for k characters and size n right||
yeah
actually this reminds me I think I generalized this problem and found a solution to it but as paths on complete graphs
oh interesting
a primitive path is a path that walks on edges of a complete graph on n vertices but is not the same path repeated
basically serving the same purpose as that concatenation does
hopefully that's clear what I'm saying, that might be a little harder try that one
at least complete graph is easiest, doing it for any graph in general maybe that's extra credit Id on't remember if I solved that or just wrote down a formula for it
actually now that I'm thinking, well I could spoil it by saying how I wrote it I think so I won't say it let you think a bit
hmm ok yeah i think i see
||in general if P(k) is primitive paths of lenght k, then number of paths of size k = P*1, in the case of complete its (n-1)^k = P*1 where n= vertices||
yeah I think that's what I got
I looked into it I remember writing it up somewhere when I found it, but I'm curious how you did it
the notes I left for myself weren't so great, but the general solution for an arbitrary graph is here
oh i just said the overcounting is ||sum_{d|n, d!=n} P(d)||
if i understood what you meant by primitive properly
yeah
I think you did, I got uhh.. oh well I'm latexing I don't care if it's hidden at this point
oh ok
$$P_v(n) = (v-1)^n + (v-1)(-1)^n$$
Merosity:
hmm this is true for prime n
but not in general i think, atleast according to the thing i got
Merosity:
I ended up writing this
$P_v (n) = \sum_{d|n} (v-1)^d \mu(n/d)$
C_v(n) being v vertices and S for primitive words with v-1 number of letters
JohnDoeSmith:
I'm trying to avoid saying what my work was to get it but it's a direct computation
yeah my C_v(n) is your P_v(n)
oh good
well ok I should say how I did it, it's fairly simple once you know
powers of the adjacency matrix give you the number of steps to walk from one point to another
and the ones on the diagonal are exactly the closed paths
so the Tr(A^n) is the total number of paths on the graph in n steps
then mobius invert
i dont know this graph theory stuff like adjacency matrix rip
my work was really just diagonalizing I think effectively the nxn adjacency matrix
a matrix of all 1s except 0s on the diagonal
adjacency matrix stuff is nice, basically you just make a square matrix, and put a 1 if there's a connection between the row and column corresponding to a numbering on your graph
oh
the matrix multiplication ends up encoding a sum of if there's a connection, then there will be two 1s
it's probably better to think of it instead as representing weighted edges on a directed graph
that way you can put more than just a 1 on each edge
anyways, so like the geometric series gives you nice information here too
cause it's the number of ways to get from a to b in some number of steps or less
in each location
oh yeah i think i see that
it's actually nicer if you put probabilities on them
that represent the probability of translating between states
well anyways you see how it's a handy tool for combinatorics and probability, just turns a lot of these things into something about matrices like diagonalizing or plugging into a power series
interesting, yeah
ok so given that a polynomial in a field of degree n has atmost n roots
how many roots does x^d-1=0 have in Z/pZ given d|p-1
(keep in mind x^(p-1)-1=0 has p-1 roots)

yep
This generalizes very nicely to cyclic groups in general
@winter bear isn't this d? 

(Finite fields and in general a finite multiplicative group of any field can be proven to be cyclic like this)
rip bai
@winter bear okay I'm back
The elements such that x^d = 1 is the subgroup of order d
hmm how do you know its the subgroup of order d

group theory will only get you its a subgroup
the order is what we are looking for
look at the things i said about roots of polys
Wdym it will give me that it is a subgroup
It gives me that it is the subgroup of order d 
elements with x^d=1 is a subgroup, and all lagrange tells u is d|order of subgroup
I don't mean Lagrange
then how hmm
'If <a> has order r < infty then the subgroup of H of order q | r is the set of elements b \in <a> such that b^q = 1'
@winter bear
ok so given that a polynomial in a field of degree n has atmost n roots
how many roots does x^d-1=0 have in Z/pZ given d|p-1
(keep in mind x^(p-1)-1=0 has p-1 roots)
but yeah, look at the things i said here
Okay then I say at most d 
its till gonna be exactly d, but proving it requires some clever manipulation
(if your having troubles i can give u a hint: ||x^d-1 | x^(p-1)-1||
ok
Here's a problem, curious to see what people try. Draw a polygon with any integers you like at every vertex. Label the edges with the difference of the integers on the vertices. Now pick a single prime and write a list of the number of times each number on the edges is divisible by that prime. Prove the smallest number on that list always appears at least twice.
"Now pick a single prime and write a list of the number of times each number on the edges is divisible by that prime"
what does this mean
"Pick a prime p. Write how many times p appears in the prime factorization of each number on the edges and put these into a list." is how I am reading it
Sum of all numbers is 0, so if the minimal v_p, for say a_i, is unique, v_p(-a_i)=v_p(a_1+...+a_n-a_i), which can’t happen
nice, I like that
@torn escarp I am guessing 1) verticies can be negative and 2) the edges are the positive difference?
oops already solved.
either way is fine, negative or positive won't affect the divisibility by primes
hmm but the sum need not be zero if you allow both positive and negative elements? 0,0,0,0,1,0 is either 0 or two.
I really like the problem, but it might require another slight restriction.
Okay so verticies: 0, 0, 0, 1, 2, 0, is a better example. edges: 0,0,1,1,2,0.
Even without zeroes ...
1, 2, 3, 4, 5, 0 --> 1, 1, 1, 1, 5, 1 ...
the sum being zero that tree3 describes is the sum of the edges
cause they come from the differences of the vertices in a cycle, that's how he does it at least
well, my argument that I have for the solution doesn't depend on the sign of the terms, and he could alter his to not depend on it either
Yeah the signs don’t affect the vps at all
well, if I say you are forced to put the positive number on the edges, then you can't add 0 in the way you did so cleanly
but you can still break it up by the ultrametric inequality to get it to work out anyways so it doesn't matter
a^b + 1 is prime, then a even and b is power of two
How do I go about proving something like that?
what did you try
that's the problem I don't know where to start



