#discrete-math
1 messages · Page 52 of 1
the remainder of a mod 5 can only be 0, 1, 2, 3 or 4
they raise that to the second power in each case
right, i get that, but that also implies that the remainder of a^2 repeats itself like the one for a?
so, for this particular case, i just make a table with all the possible remainders of (a) when divided by 5, which can only be 0,1,2,3,4 and only look for the cases where the remainder is 2 or 3 then raise it to the power of 2 to them apply the r_5() function to the result and compare with a^2 congrugent -1 mod 5, since mod (-1, 5) = 4 for both cases, i am done?
oh, wait, it's just the application of this property right?
induct on the number of chords, m.
there are two cases:
- the (m+1)-th chord intersects no existing chords
- the (m+1)-th chord intersects existing chords
remember, n depends on where the (m+1)-th chord is going, so in the second case, let n be the number of intersections among the already existing m chords, and let n_m be the number of additional intersections you get after adding the (m + 1)-th chord. in the second case, you will want that (m+1) + (n + n_m) + 1 is the new number of regions
yes with n=2
no, what you're looking for is when r_5(a^2) = 4.
oh, alright
thanks ann
Does anyone know where I can read the stability proof of mantel's theorem like proving that if G is a graph with n vertices, triangle free and having at least ⌊𝑛^2/4⌋−𝑘 edges, 𝐺 can be made bipartite by removing at most 𝑘 edges.
and if it intersects no existing chords then what happens
it creates 1 extra region
right, it divides one already existing region into two, so you only need to add one to the total number of regions
and we always add one because no three lines ever intersect at the same point
i think its better to think about it like this:
for each intersection that your new chord creates, it will divide some number of regions into two regions. the 'original' region is already accounted for, so you just need to account for its new companion region after it gets split.
this is accounted for by adding the number of new intersections coming from the chord you just added, and adding one more for the additional region created when the chord intersects with the perimeter of the circle for the second time
you don't always add two regions for each new intersection
(referring to the pictures above)
if you did, then the picture on the right should have 8 regions (2 new intersections) but it only has 7
drawing the new chord in pieces may make my explanation more clear
so in that case the red line creates 3 new regions
it intersects 2 chords
so it creates 2+1 regions
so we can generalize and say
every chord with k intersections creates k+1 regions
but here it says we have n points of n tersections
but not how many intersections per line
but is it safe to assume that n intersections create n+1 regions?
lets say you wanted to add one more chord. it could intersect all of the existing chords, it could intersect none. so the number of new intersections depends on the placement of the new chord. thats why i introduced n_m here
and yes, your generalization is correct. if your new chord intersect at k spots, then you will add k + 1 new regions
k new intersections, 1 new chord
ok
and what does n_m do?
i didnt understand that part
that is supposed to be the number of new intersections introduced by the (m+1)-th chord
just convenient notation for when you do the inductive proof
no, n_m is the total number of new intersections introduced by the (m+1)-th chord.
so if the red chord is the (m+1)-th chord (m = 2 here), then n_m = 2
probably best to say (0 + 1)-th chord, so 1st chord (if you assume green was drawn first)
well, i haven't worked out a non-inductive proof
oh we use induction
that one does not involve the use of sigma notation
i found it easiest to use induction
so, how many intersections are there
nice
remember, n depends on where the k chords are placed
true
but anyways, continue
the hard part is how to account for what n depends on (where the k chords are placed)
refer here
so you say that m+1 + n+ n_m + 1 is the new number of regions
where n_m is the new number of intersections
but how do i you know how many new number of intersection are created per run through
i refer to a run through as drawing a chord
so for ex: 1st case: draw one chord -> 2 regions created automatically
2nd chord drawn has two cases: it intersects with chord one or does not.
if it does: then it adds n_m (=1) + 1 regions (2 regions)
if it does not: then it adds just one region
so thats the hard part. let's say I give you a list of chords: {a1,a2,a3,a4.... a_m}
and i assign a value to each which corresponds to how many new intersections it creates
a_1 is always 0
a_2 can be 1 or 0
a_3 can be 0,1, or 2
a_4 can be can be 0,1,2,3
a_5 can be 0,1,2,3,4
but all these numbers must add up to n since there are n points of intersection
and as you can see there is a pattern
a_5 can be assigned to (0, 1.... 5-1)
so a_m can be assigned to (0,1,....m-1) new intersections created
now how do i present this mathematically
or, I can say, for example that a_5 can intersect with at most all the previous chords drawn. But we don't know if it intersects 0,1,2,3 or all lines
so thats where i am confused
because I am thinking of it this way, and I can't present it mathematically
you don't need that for any of the previous 'runs'
so, lets say that this formula holds for m chords
say you have a configuration of m chords in a circle now and you are about to add the (m+1)-th chord
let n be the number of intersections already there
if chord m+1 intersects with nothing, then you just need to add one new region, right?
yes
if it intersects with 1, we add 2 regions
if it inetrsects with 2 we add 3 regions
and if it intersects with m we add m+1 regions
let n_m be the number of chords that the (m+1)-th chord intersects with. how many new regions do you create?
n_m + 1
okay, so whats the total number of regions now
we basically fixed a point in time where n intersectiions and m chords are already there so (m+n+1) regions
yes!
and then we said, ok we add 1 more chord
i see
so we have $m + n + 1 + \sum_{n=0}^{m} (n + 1)$
Derivative
there's no sum
n captures all of the intersections when there are m chords. you're only introducing n_m new intersections
so yes this is the answer
and n+n_m is just the new n
correcto mundo
and m+1 is the new m
yes i see how the inductive way works
i was trying to present the non inductive way
but the inductive way is like fixing a point in time
where we already placed our chords and we are adding 1 more
but i would assume the non inductive way is not like that.
the non inductive way would always be looking into the future
but i would like to see how the non inductive way works although the inductive way is very good and comprehensible
the non-inductive way is necessary if we are trying to derive the formula, not prove it
you can think of it as fixing a point in time, but really what's happening is that we have m+1 chords, just remove one of them to drop you down to the case where there are m chords
ah so thats the non inductive way
guess and check always counts as a derivation lol
true
no, i was describing the inductive way
yes
just two different ways to think about it
would the way i proposed be the non inductive
although I have not even presented it mathematically
the way i said is we have m chord a_1 to a_m
a_1 intersects with 0
a_2 with 0 or 1 (all)
a_3 with 0 or 1 or 2 (all)
a_4 with 0 or 1 or 2 or 3 (all)
so for each run, we use the previous possibilities PLUS the new possibility
so thats why we need a sum, but what is that sum, I do not know since the difficult part is assigning which possibility (or case) occurs. Although, we know that the cases need to add up to n. So for example, if we know there are 5 intersections and 10 chords. Well, this means means that we can have the sum 0 + 1 + 2 + 3 + 4 + 0 + 0 + 0 + 0 + 0
this is describing a recursive relationship
it will essentially use the same insight that we had in the inductive proof
ah i see. But my way is more of the programming way
i dont think it can be expressed mathematically
although, it could be expressed as the number of solutions to a certain equation
so let's say we have 10 chords and 5 intersections
sure, if you let r(m) be the number of regions with m chords, then you have r(0) = 1 and r(m+1) = r(m) + n_m + 1
and you could use this idea to write a program that keeps tabs on the variables you’re tracking
yes
it can also be though have as a distribution problem
10 chords, 5 intersections (n) for example
then we have the equation $m_1 + m_2 + \dots + m_{10} = 5$
Derivative
but m_1 to m_10 can only hold a certain amount of numbers
m_1 is always 0
m_2 is always 1 or 2
anyway, i think ill just stick to the inductive method
although I would really like to learn the non inductive method.
maybe i can find one on the internet
the next problem i need to solve is very similar to this one, only except of circles, I am dealing with polygons so the problem will be even harder 💀
good luck!
thanks!
Hello!
¬(a → ¬b) ∧ ¬b → ¬a
How can I prove this expression using only the logical rules?
I already did
- ¬(a → ¬b) hypothesis
- ¬b hypothesis
- ¬(¬a ∨ ¬b) 1. conditional.
- a ∧ b 3. De Morgan.
But I'm stuck, not sure where to go from here or if I did something wrong.
Would it be correct to say "Two sets A and B have the same cardinality if and only if there exists a bijection ) from A to B"?
Yes
well you have a ∧ b, so you can conclude b from that
you also have ¬b
which is a contradiction so you're done, a contradiction implies anything
the precise definition of cardinality of a set is the number of elements in a set.
"...the number n of distinct elements in a set, n being a non-negative integer", my bad
...ok so what does it mean for a set to have n elements
also by this definition the cardinality of an infinite set just isn't defined?
which would make your earlier statement wrong, there is a bijection between $\mathbb{N}$ and $\mathbb{N}$ but it doesn't really have the same cardinality as itself if it doesn't \textit{have} a cardinality
bee [it/its]
I see, so my "precise" definition of cardinality was wrong, which makes my initial claim wrong, too
well your initial claim is correct with the actual definition of cardinality, it's just wrong with the incorrect definition you gave
Yes thats what I mean
Integers:
Multiplication of integers:
Show in general that the definition of multiplication is independent of the choice of representatives from an equivalence class.
This was my idea so far:
$$(a,b)\sim(a',b') \wedge (c,d)\sim(c',d')$$
Def:$$a+b'=b+a' \wedge c+d'=d+c'$$
Def: $$(a,b)\odot(c,d)=(ac+bd,ad+bc)$$
z.z.: $$(a,b)\odot(c,d)\sim(a',b')\odot(c',d')$$
$$= (ac+bd,ad+bc) \sim(a'c'+b'd',a'd'+b'c')$$
$$=(ac+bd)+(a'd'+b'c')=(ad+bc)+(a'c'+b'd')$$
now i am kinda stuck and dont know how to finish the proof
Benschko
We also got a hint:
At one point we should add $b'd+a'd$ to the equation.
Benschko
yes, it should be $10^N-1$
should be 10^{N} -1
bee [it/its]
and you can see with the example $999 = 10^3 - 1 \neq 10^{3-1} = 100$
bee [it/its]
I have read the term "incidence vector". How do you put all the Information of an incidence matrix into a (column) vector, without just stacking the whole incidence matrix into one column? Or maybe incidence vector means something different?
My solution: combine each v,w to e ={v,w}
Mathematicians say that "a sentence P is stronger than a sentence Q" if Q is true always when P is true, but not the other way around. (In other words, "P is stronger than Q" means that P -> Q is always true, but Q -> P is not true, in general.) Create the truth tables to show that:
a v b is stronger than a
How can i create this truth table? I used variables "a", "b", "a ^ b", "a ^ b -> a", "a -> a ^ b" o show that a v b is stronger, is that correct?
My professor did this to show that a ^ b is stronger than a, so I only changed the or to and to create the truth table, is this correct?
i would try to find a recurrence relation (an alternative would be to use v - e + f = 1 and solve for f)
we have f:A-->B and h:B--> A and h ∘ f is Inverse function how to prove that f ∘ h is inversible too. how can this be proved
@plain shoal what language did you translate this from
hebrew
also this problem is nonsensical as stated -- if f and h are both A -> B, then f ∘ h doesn't exist
oh sorry
might want to post the original hebrew in case there's somebody here who speaks it
h from b to a and f from a to b
i dont have it it was on my exam yesterday
so you have f: A -> B and h: B -> A, and h ∘ f is an invertible function
is that right?
yesh
i don't think it follows that f ∘ h is also invertible
we have to prove that f ∘ h is also invertible
let A = {1}, B = {2,3,4,5,6}, f: A -> B defined by f(1) = 2 and h: B -> A defined by h(anything) = 1
then h ∘ f is the identity function on A, but f ∘ h is the constant function 2 on B. and this is not invertible.
so either you are missing something or your professor is evil
i think the first option is much more likely
I can't prove it by this?
because it is invertible so it is onto and one on one, and if it is onto, for every b we have a and for every a we have b, because the function h ∘ f goes from A to A and this can prove that both f and h is onto, and if we have an invertible function and one of the base functions is onto then the other has to be one on oneso i did it for f and then did it for h and they proved that both h and f are onto and one on one so f ∘ h has to be invertible
nvm i understand your point
thank you for helping
the proof I'm trying to do is "show that when adding two same signed 2's complement numbers, we can ignore the overflow bit"
when trying to prove it i got to the conclusion that it's right only when in the solution the two MSB are the identical (i.e. 11 or 00) but i cant prove it for the cases where these are not identical (01 or 10)
can someone explain to me if they noticed something I'm missing?
doesn't the most significant bit tell you the sign of the number tho
For which thing?
The square to pentagon?
The only thing I notice is that the square has only one diagonal coming out of each edge
And the pentagon has two
Hexagon has three
hint: what happens when you draw in a new diagonal and it intersects an existing diagonal in the interior of the polygon?
It creates 2 more regions
A diagonal with k intersections creates k+1 regions
I am solving a recurrence relation, and it seems that it is hard to get the variables if I don't rearrange the roots. (r - 1)(r - 3)(r + 2) is hard, while (r - 1)(r + 2)(r - 3) is not
wym "get the variables"
why does rearranging the factors make any difference at all @weary tiger
You see, one of my classmate factored
an = 2an-1 + 5an-2 - 6an-3 or (x³ - 2x² - 5x + 6 = 0)
his result is (r-1)(r+2)(r-3)
Using synthetic division, I also did the process, but my result is
(r - 1)(r - 3)(r + 2)
My roots are 1, 3, and 2.
I am not sure either; my algebra is just awful, but it appears that I can easily get the variables if I rearrange the roots to (1, 2, 3). I heard that arrangement doesn't matter, but I think when it comes to recurrence relation (homogenous), it seem that it affects the result or difficulty.
1, 3 and -2?
you two have achieved the exact same factorization. where is this difference that you claim exists?
i do not see any difference at all.
and again
what does "get the variables" mean
your notation has some minor hiccups and so does your wording, and i still do not know what you mean by "get the variables". are you translating from another language?
This is for a second-order recurrence relation, but in this part.
oh, so the part where you actually write down the sequence as $$a_n = c_1 r_1^n + c_2 r_2^n + c_3 r_3^n$$ that's the one you're talking about?
|Ann⟩
a0 = 7
a1 = -4
a2 = 8
By using my roots, my result is a fraction (this is the part where I start to wonder if I am doing it right)
Yes
and you're saying that rearranging which root of the characteristic equation comes first somehow affects the difficulty of subsequent computations at all?
I start to wonder if I am doing it right
gonna need to see ALL of your work, formatted in a legible and follow-able manner.
Yes, I believe so.
Alright, after this assignment. I'll show you
I just need to finish this cause I've been trying to solve that Issue for like 2 hours straight
@stray reef I saw that he obtained those variables using a different method; perhaps I ought to first ask him how he accomplished it.
hey, i have a little question there, can i just say for #21, that the premisses are false. so the implication is true ?
since 0 is not greater than 1 ?
the premise of "n is a positive integer >1" is false
so yeah, P(0) is true and exactly for the reason you stated
(vacuous truth)
I have a question concerning functions, how f(x) Z->Z=x^{3} is onto?
like x^{3} = y but. how sqrt3(y). is element of Z ?
really?
ohh yesss
ayt thx
i am dumb
but its one-to-one right ?
ayt thank you
Do we consider the empty set as "a family of non-empty sets"?
the empty set is always a subset to any non empty sets right ?
Every element in it is also a black dog that lives in shropshire
The empty set is a subset of all sets, yes.
It is not an element of all sets, n.b.
But it is a subset.
but if we have the set { {} }
The set containing the empty set, yes
so by the axiom of choice there exists a choice function on the empty set? i am seeing differing answers online.
Yes, it is the unique map from the empty set to the empty set.
well, alright thanks just wanna make sure. 👍
Did you have a follow-up to this?
nono i was gonna say. the empty set is an element of this set
but can we say that even the empty set is a subset to this set, because as we said the empty set is always a subset to any sets?
Yes and yes
is this funciton onto?
and srry its in french
like I have x+y = a and x-y =b. but then after I have like y = (a-b)/2. which is not an integer
oui en effet c'est mal barré pour que ta fonction soit surjective
ahh nice
regarde un peu 2y = a-b
si tu veux que (a,b) soit atteint par ta fonction, ça te force a-b pair
ah donc jdois faire les cas ou pair - pair, impair- pair, ...
mais j arrive pas comment trouver des contre exemple, genre si j ai 2y = a -b ?
jfais comment pour trouver un contre exemple avec ca ?
^^
il se passe quoi si a-b est impair à ton avis
mhmm. c bizz si je prends a = 4 et b = 3
a-b est impair, mais
(7,1) ?
ahhh non c la sortie ca
j y arrive pas
jpeux pas que la diff entre les deux soit impair
ahhhhhh jpeux juste dire la sortie (5,6)
c impossible a couvrir
petite question comme ca, t de montreal ?
est ce que t a poly par hasard ?
nope
ah merde
je suis pas mal loin de montreal
ahh okok bon bah jme suis dit peutetre
à des milliers de km
t de france ?
yeah
tu peux toujours tenter ta chance dans les channels de discute
il y a + de monde anyway
true, mais bon jvais arrter de parler de ca ici haha
Show that the relation (𝑎, 𝑏)~(𝑐, 𝑑) : ⇔ (𝑎 + 𝑑, 𝑏 + 𝑐) is an equivalence relation. (Reflexivity, Symmetry and Transitivity)
I am stuck with transitivity :
$$(a,b)\sim(c,d)\Leftrightarrow(a+d,b+c)$$
$$(c,d)\sim(e,f)\Leftrightarrow(c+f,d+e)$$
We have to show that:
$$(a,b)\sim(e,f)$$
Benschko
(𝑎, 𝑏)~(𝑐, 𝑑) : ⇔ (𝑎 + 𝑑, 𝑏 + 𝑐) doesn't make much sense, it's supposed to be (𝑎, 𝑏)~(𝑐, 𝑑) : ⇔ 𝑎 + 𝑑 = 𝑏 + 𝑐
And a hint for the transitivity proof would be to add the two equations together that you get from (a,b) ~ (c,d) and (c,d) ~ (e,f) and see if you can cancel some terms to end up at a + f = e + b
Hmmm maybe my teacher made a mistake. I am going to ask her. thanks
and thanks for the hint.
it works like that really well
as a start, look at how the LHS behaves
what is LHS?
Left-hand side.
ahhh okey! Thank you
He tried to see that, but he couldn't come up with anything.
Well, start by plotting sketching it.
hey i need help with this -> Caitlin and Olivia are playing a game. Caitlin starts with a pile of 1000
pennies and Olivia starts with a pile of 500
pennies. On each turn, one of them flips a quarter. If the quarter comes up heads, Caitlin gives Olivia a penny. If the quarter comes up tails, Olivia gives Caitlin a penny. The game ends when one of them runs out of pennies. (It will probably take a while.) What is the probability that Caitlin wins? answer comes out as 2/3 if i boil the situation down to Catilin having 2 coins and Olivia having 1 coin, but i am not sure if this generalization is employable here.
ok so just to format that in a more readable manner:
_Caitlin and Olivia are playing a game.
- They each start with a number of pennies: Caitlin starts with 1000, and Olivia with 500.
- On each turn, they flip a coin. On heads, Caitlin gives Olivia a penny, and on tails, Olivia gives Caitlin a penny.
- The game ends when one of them runs out of pennies.
What is the probability that Caitlin wins?_
(newlines are a thing, btw. shift+enter)
anyway
here is how you can think about this game
point 1: the game state is entirely determined by Caitlin's balance, since there's a fixed number of coins in the game (1500) and they only change hands, but no coins are brought from elsewhere.
point 2: caitlin wins precisely when her balance hits 1500.
point 3: it will be productive to think about not just caitlin's chances of winning from her actual starting balance (1000), but from all possible balances between 0 and 1500 inclusive.
@pearl ermine
- do you understand these points?
- would you like me to elaborate further on point 3, or do you want to try it yourself?
i didnt understand pt 3
ok, so
imagine caitlin wins the first round, and her balance goes from 1000 to 1001.
after this, her probability of winning the game is exactly the same as if she had simply started the game with 1001 coins.
do you agree or disagree with this?
@pearl ermine ?
(i have more stuff to say after this but i need you to be on the same page about this simple point)
(dont overthink it)
yea but it it because of some sort of symmetry?
no symmetry here
its more like the chance of caitlin winning from, say, 1001 coins are the same no matter how she got to 1001 coins.
(nothing special about the number 1001 obviously)
so the probabilities are independent of the number of coins Catilin or Olivia have, like does the probability remain same for catilin 1001 and olivia 499? and so on?
"caitlin 1000 and olivia 499" cannot happen.
also no
you misunderstand
the probability of caitlin winning does depend on her balance
but it depends on only that, and nothing else
do you see what im saying
yes or no
so it doesnt depend what Olivia has at all?
olivia's balance is always 1500 minus caitlin's.
so considering her balance doesn't give us any more info.
k, but why does catlin winning, depend only on her balance? (sorry if the questions seem obvious, im new to these type of questions, tying to wrap my head around)
the coin that they flip is fair and the result of each flip is independent of any past flips.
so there's nothing else that could affect the chances of caitlin winning.
agree or disagree?
yea but what if olivia has greater number of coins than katlin, at some point in the game, wont this coin ratio affect catlins chances of winning?
so let me get this clear
you're asking whether, say, caitlin's chances of winning are the same in the following two scenarios:
- Caitlin gets to 1100 coins without losing too much
- Caitlin first loses coins all the way down to 300, but then regains her way back to 1100
is that what you're asking? yes or no
(these numbers have no sacred significance. i just made up an example of two scenarios where caitlin got to the same total but by different paths)
yes in both cases, why would her chances of winning be the same, one-> at a point when she has 300 coins (< olivias coins), then at a point when when she has 1100, (> olivias coins)
i know
im not saying "caitlin has the same chances of winning from a 300 coin balance as she does from 1100"
im saying that at any point in the game, caitlin's chances of winning depend ONLY on her CURRENT balance, but not on any past ones!
do you agree with this or not?
ah i see yes
ok
now that we're finally in agreement on this
the idea i wanted to suggest is as follows:
for each k between 0 and 1500 inclusive, denote by w(k) the probability of Caitlin winning when starting from a balance of k coins.
our goal will be to find the value of w(1000).
we know w(0) = 0 and w(1500) = 1, and we know something else that i will tell you after this.
do you understand why w(0) = 0 and why w(1500) = 1?
is it because she already won the game if she has 1500 coins if w(1500) - 0 so she wins 100 percent of the time and if w(0) olivia is the bound to be the winner, so catlin has 0 chance of winning in that case?
your wording is broken in several places, but yes.
ok
now here comes the hard part.
for each $k$ from 1 to 1499, we have the following: $$w(k) = \frac{1}{2} w(k-1) + \frac{1}{2} w(k+1).$$ do you understand why this is so?
|Ann⟩
all i understood from this equation is w(k) is the probability of Catlin winning, rest went over my head
you cannot just omit the most important words from my definition like this!
w(k) is the probability that Caitlin wins when she starts with k coins!
sorry sorry
do you understand the meaning of w(k) now?
so then are you saying that w(0)=0 and w(1500)=1 also went over your head?
or do you understand those.
yes yes , i had bad choice of words there
i understood them, i even elaborated how
ok so basically then this
all i understood from this equation is w(k) is the probability of Catlin winning, rest went over my head
was a very long way of saying "no, i dont understand that"
ok
do you know the law of total probability?
not familiar with it
$P(A) = P(B) \cdot P(A|B) + P(B')\cdot P(A|B')$
|Ann⟩
does this have some connection with P(A U B) = P(A) + P(B) - P(A ∩ B)? this is also another formula used in probabilities.
very distant, if any.
we cannot proceed if you do not understand this law though.
it is impossible to bypass.
k what does the law state?
i have already told you
but to elaborate on the notation a bit:
for any two events $A$ and $B$ with $P(B) \neq 0$ we have $$P(A) = P(B) \cdot P(A|B) + P(B')\cdot P(A|B')$$
|Ann⟩
is this what you wanted me to say?
yes continue
in our case, A is the event "caitlin wins" and B is the event "the coin shows heads"
starting from a balance of k coins, there are exactly 2 ways for Caitlin to win:
- get a tails [1/2], then win from k+1 coins [w(k+1)].
- get a heads [1/2], then win from k-1 coins [w(k-1)].
okay
do you understand $$w(k) = \frac{1}{2} w(k-1) + \frac{1}{2} w(k+1)$$ now?
|Ann⟩
you can rearrange this equation into the following:
w(k+1) - w(k) = w(k) - w(k-1)
and that gives you that w(0), w(1), ..., w(1499), w(1500) is an arithmetic progression
yes it does rearrange into that, but how does it generate an arithmetic progression?
well, what is an arithmetic progression according to you?
numbers increasing by the same amount for example 2, 6, 10, 14 ......
they share the same common difference
yeah, so
w(k+1) - w(k)
and
w(k) - w(k-1)
are both differences between adjacent terms in the sequence
and our equation says they're the same
and in fact you can apply it over and over to say e.g. w(2)-w(1) = w(3)-w(2) = w(4)-w(3) = w(5)-w(4) = ...
do you see now?
w(k) is an arithmetic progression, its 0th term is 0 and its 1500th term is 1
it should be almost obvious what w(k) will look like
sum of all the terms from 0 to 1500?
i meant probabilities
but again nobody's saying to add them together
.. w(k) = k/1500
it is just this
nothing more nothing less
why did u divide k by 1500? is it because 1500 is the total number of coins?
w(0) = 0
w(1500) = 1
what linear function passes through (0,0) and (1500,1)?
its just this
dont overthink it
youre overthinking it rn every single step
trying to understand thats why im asking questions on the way
ok thanks, so the result is 2/3, but why is the result same for katilin having 1000 coins and olivia having 1000 coins, the same as katlin having 2 coins and olivia having 1 coin?
thats... just how it works out?
like if you want to do it in full generality you will find that if Caitlin starts with x coins and Olivia with y coins then Caitlin's chance of winning is x/(x+y)
is there any concept of symmetry here that cascades from the result of 2 coin : 1 coin -> to 1000 coin : 500 coin (bothh are 2/3), or is it jusut bceause how the formula works out?
It's just how it works out.
At least there's no "deeper reason" that is reliable enough that it's safe to trust it for other similar-looking problems.
oh okay thanks
thank you for taking you time and explaining the solution.
for this one, it suffices to show that (a,b) exists by the axiom of pair right? since (a,b,c) = ((a,b),c) and so on?
There are different possible definitions of how to represent (a,b,c) and (a,b,c,d) with pure sets, but if yours is (a,b,c) = ((a,b),c), then your plan is correct.
yay
anyone know how to solve this combinatorial problem
or just give me a hint
first give me a hint actually
and then, I'll try for 20-30min and I will be back
sometimes hints can work very well haha
Probably something like add the vertices of the polygon one by one, and keep careful track of of many of the old diagonals intersect each of the new diagonals in each step as you go along.
(I haven't done this myself, but it's the first thing I would attempt to make work).
For example, imagine you draw the n=5 figure by first drawing an n=4 one (the black lines in this image) and then add a new vertex and the red edges. This introduces 3 new faces outside the old figures and makes 2+2 new cuts inside the old figure, which increse its number of faces by 4.
(Yes, this would end in a proof by induction on n).
ah i see
let me try
like how am i supposed to know how to do that lol
like i didnt even know i could do that hahah
so difficult
Perhaps try to find a combinatorial argument that the number of the new intersection points (which I've marked in green here) is exactly (n-1) choose 3? And for each of those intersection points, one of the existing faces from the n=4 case get split into two.
hmm
ok
from what i see thinking about it this way is
#1, we always draw the n-1 shape first
#2 for n=5, we have initially 2 lines diagonals (as in the n=4), but then when we draw the n=5 shape, we add 2 diagonals + 1 that was used to draw the n=4 shape
so for n=6, we draw the n=5 shape, which gives us 9 diagonals (from the n=5), then when we convert the shape to n=6, we get 3 added diagonals + 1 that we used to draw the n=5 shape
so we are always adding the diagonals from the n-1 shape to the n shape
now in terms of interior regions, this is harder.
we always have the regions from the previous shape inside
now for n=5, we add 2 diagonals, which intersect 3 lines. We know that a line with k intersections adds k+1 regions
so each line has 2 intersections
2+1=3
3+3 + 6
6+4 = 10
so we have an inductive relationship
fix a place in time, where an n-gon has been drawn
we are adding the n+1-gon
Part of my suggestion was to count the new pink regions separately from the new regions that arise in the blue areas -- unless I'm mistaken, these turn out to correspond to the two binomial coefficients in the problem. A line with k intersections adds just k new blue regions, rather than k+1.
Each of of the new slices through the blue are ends in a green dot in the end of it that's nearest to the new vertex.
i dont understand
Each of the purple arrows here adds a new blue region. Each arrow ends at a new intersection, and each new intersection has an arrow ending at it. So the number of new blue areas is the same as the number of new intersections.
ok
- the 1 red area created per line
but we dont count that or we do but its implied?
The sum of the red regions added in each step becomes the (n-1 choose 2) term in the final result.
The sum of the new blue regions becomes the (n choose 4) term.
how?
In the final n=umpteen figure, each internal intersection has been the endpoint of a purple arrow in exactly one step.
(Assuming we start at n=3 instead of n=4 as the problem suggests).
How many internal intersections are there in an n-gon?
n
No.
Note that I have as good as claimed there are (n choose 4) of them.
I'll leave you some time to see why that is the case.
ah but how do the number of lines have to do with the number of regions?
n choose 4 is tough to understand tbh
idk im not good with shapes
i cant imagine the shapes
but i can imagine objects like $a_1, a_2$ etc
Derivative
(Hint: if you stand at an intersection there are 4 directions you can go in, each leading to ...)
Can you see why (internal intersection points) correspond to (unordered sets of 4 vertices)?
i think it would be helpful for derivative to replicate this but with a hexagon
i cant unfortunately
maybe my mind does not want to see
let me try to see
yes i do see
because for a hexagon each intersection point, we can move to 4 vertices
I SEE
yesss
so for example for a hexagon
the internal intersection point can move in 4 directions
for each internal intersection points, we create a 4 letter combination
and there are 6 object
$\binom{n}{4}$
Derivative
YES
and for the INTERNAL INTERSECTIONS a line with k intersections creates k regions!!!!
so there is a bijection!
therefore the $\binom{n}{4}$ lines create $\binom{n}{4}$ regions!!!!!!!!!!!!!!!!!!!!!!
Derivative
btw how did u draw this pentagon so nicely?
I copied your image and drew over it in Gimp.
ah ok
so did i get the first part of the argument?
Yes.
but are you sure i got it? so each intersection creates a 4 object sequence, and the total intersections is n choose 4 for the internal region.
is the total intersection of internal region n choose 4?
If you didn't get it yet, I'm afraid you need to get the rest of the way without my help; I need to sleep now.
wait 1 sec please. because im actually not sure, are there n choose 4 intersection in the internal region?
ah yes u r right
good night
for the second part ill ask other helpers
<@&286206848099549185>
please help me with the second part of this problem
ok
so i trying to prove it combinatorially
as you can see with our conversations, we basically drew the pentagon from a 4 side polygon
like so
and we observed that in the internal region (blue region), there are $\binom{n}{4}$ intersections
Derivative
also, every red line (new line), has 2 intersections in the blue region and adds 2 new blue regions
so a line with k intersections adds k blue regions
@blissful wagon do u see?
ok
thanks
welp i am screwed
i memorized the krebs cycle
thats not very good mitochondria is not powerhouse
mitochondria is where the reactions happen
it generates ATP from chemiosmosis
from the electron transport chain
so why cant you solve this question?
this is not productive/constructive
well i am close to an answer
just ignore him
its just the $\binom{n}{4}$
Derivative
this is the amount of intersections in a polygon with n sides
but i dont see how this equals the amount of regions on the internal (blue) region
yes, each line with k intersections creates k blue regions.
<@&268886789983436800>: @blissful wagon
...nobody was intimidated, and you didn't demonstrate any intelligence
other than like, ability to produce english sentences
stop feeding the troll and just ping mods next time
and since there are $\binom{n}{4}$ intersections, then aren't there $\binom{n}{4}$ blue regions created?
Derivative
but, created from what?
from the previous n-1 polygon
idk
but if n=5 then 5C4 is 5
but it does not create 5 regions, it creates 4??
it does not make sense
i dont see how the $\binom{n}{4}$ comes in
Derivative
for n=5 those 5C4 intersections create
hmm
maybe it's just like
for a given intersection, how many regions have that intersection as a vertex?
4
always
ever intersection connects to 4 vertices
whats the difficulty level of this problem?
like nobody could solve it 🤣
if nobody here can solve it then how am i supposed to solve it 🤣 im just a simple man
i have inundated this channel the past few days hahaha
welp
thats that
After sleeping on this, I've concluded that it was a detour of me to speak about blue and pink regions like this. Scratch all that, and start over, without even induction:
We start by just the outer edge of the polygon, and then add the inner diagonals in a random order. Each time we add a diagonal, draw an arrowhead where it crosses a diagonal we've already drawn, as well as in one of the ends of the diagonal. This way we can see that each arrowhead corresponds to cutting one region into two. Since we started with a single region, the number of regions at the end is one more than the final number of arrowheads.
Each intersection between inner diagonals has exactly one arrowhead (since one of the two intersecting diagonals that was drawn last, and when we drew that we added an arrowhead at the intersection). I've claimed that there are (n choose 4) of these intersection, though it sounds like you still need to convince yourself of that.
The vertices of the polygon don't all have just one arrowhead -- some have none, some have more than one. But each inner diagonal contributed exactly one of these arrowheads, so we can count these arrowheads by counting the inner diagonals themselves.
There are (n choose 2) - n inner diagonals (why?), so the final number of regions should be
1 + (n choose 4) + (n choose 2) - n
Now it's a matter of algebra to prove that this is equal to (n choose 4) + (n-1 choose 2).
I know this is an oddly specific question, but does anybody know a place where I can find exercises with answers for relations, more specifically ones about finding transitive closure? Either that or a calculator so I can make up ones myself and check them. I wanna practice for my exam but cannot find any exercises 
I've been looking into random books like Rosen's Discrete mathematics and its applications but it doesn't have solutions so I have no idea whether I'm solving stuff right or not
I don't have any particular suggestions for exercise sets, sorry. But a random piece of advice if you're finding transitive closures in particular challenging:
One pitfall students often fall into here is to try to work out the solution simply by staring at a list of pairs and following rules. For this kind of task it is vitally important that you draw a picture of the situation with one dot on the paper representing each element of the set and an arrow between the elements of each pair.
Once you have made that drawing, reading out the transitive closure is just a matter of asking yourself for each point, which points can I reach from here by following one or more arrows?
For problem sizes that are likely to show up in exams, this can generally be done by eye, and that is both faster and less error-prone than applying rules symbolically to a list of pairs. (You may need to go through a few attempts at laying out the drawing such that related points are near each other on the paper -- but that will still be faster overall).
why n choose 4?
wait
I see
so for every 4 points
there is always one set of intersecting lines
Any pair of intersecting diagonals can be specified uniquely by stating the endpoints of those diagonals.
makes sense
Yes.
I was just thinking about how not all diagonals intersected
but I realised that that wasn't a problem anyway
(above the n=5 case of course)
wait there's a problem
no wait
is there?
hold up
yeah ok not a problem
just want to mention that there are cases where it's not just the vertices that have multiple arrowheads
ok I''ll remove this
sorry
sorry for the ping
I didn't realise the "no 3 diagonals are concurrent part until now"
but what if we allow that though
like what if we counted the regions of a regular polygon
Thanks. I do try both methods usually, the thing with drawing dots is that I sometimes get confused and don't notice possible connections but generally it is indeed a lot easier than doing a ton of compositions until you reach one that is equal to some of the previous ones.
here you drew 2 diagonals
and the rest are arrowheads
so the arrowheads represent the regions created?
i was thinking of establishing a bijection
There's probably more than one way to do it, but this is what I could come up with. ¯_(ツ)_/¯
i found one way
in the problem before this one
it said that the number of regions created by drawing m chords with n intersections is m+n+1
(Actually, there's definitely more than one way to do it. A completely different way would be to say in the final graph we have (n choose 4) nodes of degree 4 each and n nodes of degree (n-1) each, then apply the Euler characteristic to find the number of faces and do algebra to show the result equal to the desired formula).
yeah that's what i was thinking with the comment about 'how many regions to each intersection'
per oeis it's nice for odd polygons but gets messy for even
your answer is actually an extension of another problem
you incribe the polygon in a circle
Can someone help me confirm this?
oh crap, I made a mistake.
@coral parcel you incirbe it in a circle. I proved before that the number of regions created in a circle is m+n+1 where m is the number of chords, and n is the number of intersections. We established that there are n choose 4 intersections. There can also be n choose 2 chords formed in the polygon. but we need to subtract by the n regions formed by the adjacent vertices. so we get: $\binom{n}{4} + \binom{n}{2} + 1 -n$
Derivative
Ah, yes, if you already have the m+n+1 result, then that was essentially what my arrowhead argument was there to establish.
yes i had forgot to say that
i didnt know that this problem was an extensionn of the previous result
live and learn
these problems are very very difficult
anyone good with putnam questions?
Derivative
what does that vertical bar mean
Divides
So a | b is read "a divides b"
Now this may seem a bit odd, but this has a different definition to the one you may be thinking of.
$a \mid b$ is defined to mean that there exists an integer $z$ such that $az = b$.
Boytjie
If you are doing a first course in proofs or number theory, this definition will have been given to you, and you should check through your notes.
ok thanks
i am not taking a course in proofs or number theory
i am doing combinatorics
$ \binom{n + r - 1}{r}
yes
thats the number of solutions to an equation in the form x_1 + x_2 + ... + x_n = r
which is like putting r identical objects into n distinct boxes
can you explain me how this formula came, it's actually Combinations with repetition formula.
i don't wanna cram this formula, so i thaught it's better for me to know how this formula came. I'm unable to think of it.
yes let me show you
its bijection from binary
1 is the bar seperating the boxes
and 0 represents the identical objects
notice there will be a total of r + n -1 (objects and bars)
and we just choose r 0's for the objects
thanks!
no problem
can i get some help with (i) so that I can do (ii) myself
i know how need to use modulo
theres something with congruence
list all the possibilities of remainders for a, b and c mod 3 which add up to 0
like a,b,c are congruent mod n or something
for example, 0, 1 and 2 would work. or 2, 2 and 2
no repeats allowed
a b and c are different
sure but they can still have the same remainder mod 3 while not being the same number.
like {2,65,122} would be a valid set
can you show me the notation?
so basically, i need all possibilities where the remainders of a mod 3 = 0 and b mod 3 = 0 and cmod3 = 0
not only those tho.
idk what you want "the notation" for
for the equation i need to set up
i dont know what equation i need to set up
here is a proposed solution
There are 2 cases to this problem
Case 1: All numbers are congruent mod 3. There are 3 congruence classes with 664 numbers
this is $3\binom{664}{3}$
there are more than 2 cases actually
Derivative
well ok
then case 2 is all number distinct mod 3
your first case subsumes what i would have considered as three
0+0+0, 1+1+1, 2+2+2 and 0+1+2 are in fact the only ways to get 0 mod 3
there is no other way
if two of your numbers are congruent mod 3, the third is forced to be congruent to them as well
then you are fucked
i am basically learning on the job
how much of a "this needs done yesterday" factor is there
oh i have this problem to solve by tuesday
and 2 others (which are not related to this problem)
ok, then you might want to take a little detour and learn some basics of modular arithmetic
i watched a video, but i could not see how this connects to the problem
maybe watching a single video isn't enough then?
yeah true
but in the solution what do they mean by distinct and congruent
i thought congruent means they have the same remainder
can i see the entire solution in full
yes
so that there is no mincing of words
ok right
{1....18}
so yes, congruent means same remainder
and
all numbers must be different mod 3
means all three of your numbers' remainders must be different from each other
ah i see
(which means you must have exactly 0, 1 and 2 bc those are the only possible remainders at all mod 3)
i see
in mod 4 it is kind of more complicated tho.
0+0+0
0+1+3
0+2+2
1+1+2
2+3+3
yes thats the next part to the problem (part ii)
and what does the solution mean by congruence classes?
they basically did 18/3 congruence classes = 6 numbers per congruence class
3 congruence classes
a congruence class is the set of all numbers congruent to some fixed number
mod 3 in this case
i see
so for example the congruence class of 4 mod 7 would be {..., -10, -3, 4, 11, 18, ...}
in principle taken from Z, but in your case it's narrowed down to only the set you're choosing numbers from.
i see
i will have to do a bit of moldular arithmetic
to learn all that
and hopefully I will be able to answer this question and understand the solution
i think i have a set of basic problems on hand that i composed for a tutoring client of mine when he was learning about it
but unfortunately it's in russian
i never took a discrete math course and I jumped to combinatorics
biggest mistake ever
haha
ah ok its fine i will try to ask a friend for a textbook on the topic. my friend takes dicrete
Me too, but it wasn't a mistake
Taking honors combo rn
Probs my fav class ever
But tbf im a math major not a cs major
i need help, how would i start this problem
maybe try a smaller problem that's similar and see if you can work that out manually to check your reasoning
sounds like stars and bars type of problem
6 digits sum to 9 means very limited set of solutions
is there another term for the stars and bars because weve never learned it in class
and its not in the text book either
“balls and urns” is another name i sometimes hear
the name is not important, the idea of “inserting dividers” is
anyone know the technical definition of what it means to say integer multiple of something
like for ex: 100 is an integer multiple of 10
since 100 / 10 = 10
a is an integer multiple of b if there exists an integer k such that a = k·b.
(Whether k is allowed to be zero or negative here can vary with context -- but in most cases you can get away with assuming that if b is something that it makes sense at all to multiply by a negative integer, then that is fair game for an "integer multiple" too).
If you're concerned about being misunderstood, you can say "positive integer multiple".
yes
yes i can
basically a mod b = 0
i am asking this because i am working on a solution to a certain (tough) problem
which requires this confusing mathematical language
ill present a potential solution soon!
k well i am stuck
so i found the cardinality of n (unsimplified) is 100^2
because the prime factorization of 10^99 is 2^99 * 5^99
now, to find the cardinality of m here is what i am trying to do, but to no avail
so, a multiple of 10^88 must be between 10^88 and 10^99 inclusive. This gives 10^99 - 10^88 + 1 numbers in this list
now we know that a multiple of 10^88 mod 10^88 = 0
and we know that the clock is like so {0,.... 10^88 -1}
now, we have to see how many turns
there are 10^99 - 10^88 + 1 numbers between 10^88 and 10^99,
i must be using the wrong mod base
no i am not
so there are a total of 10^99 - 10^88 + 1/ 10^88 turns
Why don't you use the fact that the exponents of 2 and 5 in the prime factorisation of such a number must both be ≥88?
thus we have 10^10 numbers
Makes it much easier
yes true
but i wanted to use modulo for some reason
but yes doing it that way, we see that the exponents x,y need to be between 88 and 99 inclusive for it to be a divisor of 10^99 and multiple of 10^88
which we would obtain
(99-88+1)^2 / 100^2
= 9 / 625
i guess that modulo does not work?
i want to use it i think it would give a nice solution
...
i mean
why not just...
there are 10^99 / 10^88 numbers out of the 10^99 which are divisible by 10^88
you tried to shoot a sparrow with a cannon but instead the cannonball landed somewhere at or near your house
I think tau( 10^99 / 10^88 ) would count them if I'm not mistaken (tau the number of divisors fn)
yes
i found the total positive divisors of 10^99
thats 100^2
but, now i need to find the total positive divisors of 10^99 that are also multiples of 10^88
thats why i said we can use modulo
basically we are trying to find numbers p such that p mod 10^88 = 0
where the clock runs from {0, ...., 10^88 -1}
there are 10^99 - 10^88 + 1 numbers between 10^99 and 10^88
thus, we will have (10^99 - 10^88 + 1) / 10^88 total turns of the clock
the multiplicativity of the divisor function annihilates this problem
i dont understand
how'd you work out that 10^99 has 100^2 divisors
the numerator is worked out the same way with a slight fix to what Ann gave us here
i did prime factorization
its 5^99 * 2^99
you can do it, its very long but thats what you get
here let me give you a tool
the divisor function tau(n) is the number of divisors of n and it satisfies the property tau(ab)=tau(a)tau(b) when gcd(a,b)=1
i never learnt that
so you just need to know for a power of a prime p, tau(p^k) = 1+k and this gives you everything
tau and gcd i never learnt
ah never learned gcd?
no i never took discrete
im doing combinatorics without having done discrete
haha
not recommended
I would say it's something people learn in elementary school so it's ok to learn it now
not knowing how to compute the divisor function easily just makes your life harder since you're already doing it
tau(10^99) = tau(2^99 * 5^99) = tau(2^99) tau(5^99) = (1+99)(1+99) = 100^2
$\prod_{i=1}^n k_i + 1 = (k_1+1)(k_2+1)\dotsb(k_n+1)$
Derivative
thats the total number of divisors of a certain number
tau(10^99/10^88) = tau(10^11) = tau(2^11 * 5^11) = tau(2^11) tau(5^11) = (1+11)(1+11) = 12^2
where k_1, k_2, k_3 are the exponents
yeah, that's exactly what I'm computing too
that is the same tau function I'm describing and using
yes but i didnt learn the tau function
maybe it goes by a different name for you
ah what does it do?
it is exactly the same thing
oh
that's what my work is showing
yeah
there are a lot of functions that simplify this way, they're called multiplicative functions where you can separate it apart when the gcd of the two factors is 1
the sum of divisors, the euler phi function, and there are others
yeah very useful for sure
why tau(10^99/10^88)?
thats the number of divisors of 10^99 divided by 10^88
why do that?
cause multiples of 10^88 look like k*10^88, and since it's a divisor of 10^99 so k10^88 | 10^99
so you can throw out what they have in common, k | 10^11
ah i see
$\tau$
Merosity
you can write all greek letters in latex
except for omicron, bc that is identical to latin o in shape
and some of the capitals, for the same reason
yeah you're welcome
I have finally finished my assigment (actually nvm i have 1 problem left💀 )
31 problems
took me like 3 months
hahah
but in my assignment i have a few semi-unsolved problems
1 semi-unsolved questions, 1 unsolved question
yes so i need help with this question:
so above is my solution to the first method
but now i need help showing that $\sum_{k=1}^n k^2 = |T|$
Derivative
i was thinking induction on n
it's a shame this has such a nice proof not counting them