#discrete-math
1 messages · Page 202 of 1
We can think about how many ways to divide the books into two groups
Imagine a line of 5 books.
B B B B B
To ensure that there is at least one book in each group, we can divide the line into two groups in the following ways.
B | B B B B
B B | B B B
B B B | B B
B B B B | B
Can you see where the 14 comes from when we extend this to 15 books
I'm just gonna accept thay I will not get it LOL
What part do you not get?
for example
I mean
if were to put 1 book on shelf 1 and 14 on shelf two
how could you calculuate this
Ahh right my bad
what is 14?
😅
14 ways we can arrange
Pick a random book to be on shelf 1. Then arrange the rest. You get 15 * 14! = 15!
Becuz 15 books
but the answer is 15! * 14
That's when we run through every combination of k books on one shelf and 15 - k books on the other
In the case where k = 2, we choose two books to sit on shelf 1. We have C(15, 2) different ways of doing so since we don't care about the order in which we choose those books. Then we arrange the two books in 2! ways. The rest can be arranged in 13! ways. This gives us: C(15, 2) * 2! * 13! = 15!
In fact, you can generalise to $k$ books. Choose $k$ books arbitrarily to sit on shelf 1. Arrange them. Then arrange the remaining $15 - k$ books. This gives you [ C(15, k) \cdot k! \cdot (15 - k)! = \frac{15!}{k! \cdot (15 - k)!} \cdot k! \cdot (15 - k)! = 15!] arrangements
opengangs
ok
Then you run $k$ from 1 to 14 to give you the required answer of [ \sum_{k = 1}^{14} 15! = 15! \times 14]
opengangs
U also gotta consider the way there are arranges on the shelf, book1, book2 is different arrangement from book2, book1, that’s where 15 factorial comes from, you have 15 books
@gritty pumice I got it @haughty garden thank you
Does the expression in the addendum seem correct?
Should we be able to simplify this as
$$\frac {(n+k-1)!}{n!(k-1)!}$$
Finitely Many Bananas
I don't understand why they used the gamma function in their expression when simple factorials would have sufficed
\begin{align*}
\frac{n + 1}{n + 1 - r} P(n, r) &= \frac{(n + 1)n!}{(n + 1 - r)(n - r)!} \
&= \frac{(n + 1)!}{[(n - r) + 1](n - r)!} \
&= \frac{(n + 1)!}{(n - r + 1)!} \
&= \frac{(n + 1)!}{[(n + 1) - r]!} \
&= P(n + 1, r)
\end{align*}
opengangs
to summarize, one way to do this is simply by bashing.
Hey, i tried to prove the following statement is tranzetive, did i do it right?
<@&286206848099549185>
Shouldn't transitivity here follow almost immediately from the fact that multiplication is commutative?
ab=ba and all that jazz.
Oh shit I'm dumb lmao
Why am I mixing up transitivity and symmetry lol.
lol
why not rephrase the relation as "a R b iff ab is odd" before continuing?
that way it's clear that it's equivalent to "a R b iff both a and b are odd", which makes transitivity obvious
unless, of course, your teacher forbids such trickery
I need to show transitivity like this: aRb and bRc -> aRc
so your teacher explicitly forbids any arguments to be made before working through the definition of transitivity?
You can always show off to the side aRb iff a,b are both odd.
it sounds like they're explicitly banned from doing so tho.
I guess so lol
that didn't sound like a very confident "yes she forbids it"
This is how i should do it, in this pattern
You see how if either a or b is even that ab is even so aRb won't be true right?
And how if a and b are odd that ab is odd so aRb will be true?
So then you can just prove whatever bits you need from the equivalence Ann is suggesting in the proof format you're trying to use.
How should I solve this? Topic is : calculus of finite differences
(First off, hi)
Try expanding the sum?
Into like two sums
hi
@tidal mica hu
Hi
You undriended me
Wow
So you get:
[ \sum_{k=1}^{10} s(k+1) - \sum_{k=1}^{10} s(k) = \sum_{k=2}^{11} s(k) - \sum_{k=1}^{10} s(k) = s(11) - s(1) ]
Slurp
(For the last step, take out any elements of the sum that aren’t in both sums, and the rest will cancel out)
Uuuuuu I didn't think of that 😆
Thank thank thank it's clear and ez
Np gl!

Question: how many ways can I write an element $r$ as a sum of $k$ elements of $\mathbb{Z}/(p^n-1)\mathbb{Z}$.
Finitely Many Bananas
repetitions allowed, but 1+2=2+1 should be counted as the same
Once you choose the first k-1, the last one is determined by that
So I think it should be $\frac{(p^n-1)^{k-1}}{k!}$
Finitely Many Bananas
how many ways we can arrange the word ESTATE so all the vowels are adjacent?
My thought process was 3 * 4!/2! * 2!
why is this wrong
Group the vowels together to form a single “letter”. Then you’re just arranging (EAE)STT which can be done in 4! / 2! ways. Then you need to look at all the ways EAE can permute among themselves which is done in 3! / 2! = 3 ways.
It seems like you’ve double counted by treating either the E’s or T’s as separate letters or something
That might overcount some non-solutions since you can choose out of a list of p^n - 1 elements. Take p = 2, n = 3 so you’re working under Z/7Z. If you want to write 5 as a sum of 3 integers, then you have {(0, 0, 5), (0, 1, 4), (0, 2, 3), (1, 1, 3), (1, 2, 2)} solutions since any other solution is just a permutation of this solution set. But your claim states that there are 7^2 / 3! ≈ 8 solutions
(I might also just be missing some solutions because I’m doing this on a whim)
Yeah there's something definitely wrong with my answe because 6 does not divide 49
Did you get a chance to look at it?
I think an explicit formula for this would be pretty hard/ possibly only recursively defined
I think my formula should at least be an upper bound
Can someone verify this?
An explicit formula is quite difficult for this problem I think
I'm only struggling with E
4 13 4
3 1 2
that's my answer but it's wrong
3 out of 4 aces, 1 of 13 cards that's repated twice so 2 out of 4 suits
is this wrong?
if you've chosen three aces, you can't get a pair ace
Choose 3 out of the 4 aces.
To pick a pair, you choose the card value. Since 3 aces have been chosen, you can't get a pair ace anymore. Therefore, you only have 12 choices to choose 1. Then you choose two out of the four suits
yeah that completley makes sense
damn I missed that small detail
because there will be 1 ace left so we can't get 2 pair
thank you
no worries! 🙂
are combinations confusing or
I'm just dumb? lol
I really feel like I'm not programmed for it
you're not the only one, it takes some time to get used to it
i feel you
it's a very different field to, say, calculus
oh yeah...
calculus is a joke god dman
the funny part that these things are so tivial
in comparison to the complicated calculus problems
yet they are 10x harder lmao
yeah, combinatorial problems are easy to formulate a question but they can be really difficult to answer (simply because you have a lot of things to consider)
I try to break every porblem
I find that it's hard because there's so little to actually write down as opposed to calculus or linear algebra where, at the very least, you can write a formula down and hope it leads somewhere
to a case
hmmm I see
well wish me luck I'm not even math major but I'm taking discrete math next sum for fun!
so we will see if I will regret it or not haha
haha good luck! Feel free to ask some more questions if you get stuck again 🙂
thanks
I have large sets and need to compute |A - B - C - D - E - ...|
the only efficient operation is the set intersection. How can I do that?
the problem is somewhat simplified if I apply the intersection to B, C, ... first, making all of them subsets of A that I want to subtract.
|A - B| = |A| - |B|
|A - B - C| = |A| - (|B| + |C| - |B ∩ C|)
it's easy to see that when working with subsets of A, then we're actually subtracting the size of the union
but I'm not sure how to compute the size of the union of N sets
|X ∪ Y| = |X| + |Y| - |X ∩ Y|
|X ∪ Y ∪ Z| = |X ∪ Y| + |Z| - |Z ∩ (X ∪ Y)|
because at some point it seems to require computing the actual union and as I've said, I can't do that efficiently in this case
|X ∪ Y ∪ Z| = |X ∪ Y| + |Z| - |Z ∩ (X ∪ Y)|
|X ∪ Y ∪ Z| = |X ∪ Y| + |Z| - |(Z ∩ X) ∪ (Z ∩ Y)|
|X ∪ Y ∪ Z| = |X ∪ Y| + |Z| - (|Z ∩ X| + |Z ∩ Y| - |X ∩ Y ∩ Z|)
|X ∪ Y ∪ Z| = |X| + |Y| + |Z| - |X ∩ Y| - |Z ∩ X| - |Z ∩ Y| + |X ∩ Y ∩ Z|
ok I think I got it
not sure how to express it as a sum yet
|X ∪ Y ∪ Z ∪ W| = |X ∪ Y ∪ Z| + |W| - |W ∩ (X ∪ Y ∪ Z)|
= |X ∪ Y ∪ Z| + |W| - |(W ∩ X) ∪ (W ∩ Y) ∪ (W ∩ Z)|
and I guess we have the formula for the union size of three elements already so a recursive definition is possible here
|X_1 ∪ ... ∪ X_n| = |X_1 ∪ ... ∪ X_n-1| + |X_n| - |(X_1 ∩ X_n) ∪ ... ∪ (X_n-1 ∩ X_n)|
I need to build incidence matrix of oriented graph.
But on some sources, end of vertex is -1, and on others end of vertex is 1. Why is that?
Anybody really familiar with the Collatz Conjecture and think they could help me figure out if I've found a new pattern in the gaps between orbital lengths?
Here is a small write up. Forgive me if posting links is not allowed, feel free to remove. https://www.reddit.com/r/Collatz/comments/rpfka9/interesting_fractallike_structure_found_within/
3 votes and 3 comments so far on Reddit
what do you mean by "end of vertex"
do you mean "end of edge"?
then, edge
anyway, whether beginning gets 1 and end gets -1 or vice versa is a matter of convention
I'm having hartd time understanding the logic here
if one of p1 and p2 and p3... and pn is false
doesn't that make the entire statment false?
how is the implication p -> q is true if one of the premises is wrong? shouldn't
ty
What does the dagger in the first line mean?
Assuming we can ignore the dagger: If one of p1 ... pn is false, then the conjunction is false. However, that conjunction is to the left of an implication sign, so that being false makes the implication true. (Because F->T and F->F both make T).
how does this apply to this statment then
if 3+4=12 then 3+2=6
shouldn't this be a false statment?
since p is false
and q is false
"False -> False" is true.
Whether this can be written as "if ... then" is a subject I have strong opinions on, but that doesn't apply to your quote because it uses -> rather than "if ... then".
and my conclusion is false
then the implication is true!
i guess that's proper
I was under the impression
that the implication is false
if p -> q and q is false
regardless of p
that's not right?
Sorry, I can't parse that. Are you saying
If "p -> q" and "q" are both false
then what?
Troposphere
Hey there. Are R^R and R equivalent? maybe you can give a hint how I can make up a solution?
R^N ~ R I think because if we encode R as a set of sequences of 1 and 0 we can represent each real number as an infinite set of infinite subsequences which can represent N -> R function
But I can't say the same about R^R
By equivalent I mean the existence of bijection between the two
Of course, but is 2 ^ R equivalent to R then
And "at least as big" but is 2^R as big as R^R?
There's some way to obtain y(n) given H(e^jw) and x(n) using only Fourier's series?
It asked me to convert from POS to SOP using Kmap
so I did this
My answer is
B'C'+AC
Is it correct?
Yeap
In any case you can check in a Karnaugh map calculator. But for me it's okay
kinda stuck here
can someone help?
Do you have a definition of the indexed intersection notation you can unfold here?
I think I do? but it's in French
More generally if {...} (not good enough at latex to try to type this lol) is a collection of sets, .... is a set of elements 'c' that belong to every A(alpha)
So you're looking for things that belong to every { a in N | a > n }, where "every" means for every n in N.
but N contains an infinite amount of elements so there couldn't possibly be any?
Right.
so none?
Yes.
Or rather, the set with no elements.
I'm sorry for bothering you again, but what about this?
The definition I have been given:
More generally if ${A_\alpha, \alpha \in I}$ is a collection of sets, $\bigcup_{\alpha \in I} A_\alpha$ is a set of elements 'c' that belong to at least one of the $A_\alpha$
pogn't
draw some sets in the collection
Something like this? What I think to have understood from the definition is that it could be any set in the gray area. Is that correct?
mhm
I still don't get it
A_r is defined as any elements having x^2 + y^2 bigger or equal to r^2
what does x^2+y^2=r^2 describe?
what do you mean? Im really sorry but im so confused
it describes a certain shape
you mean Pythagoras 'theorem? but what does it have to do with sets?
I did think of that at first but i cant seem to link it with what i have here
circle, center (0,0), radius r
so just making sure but it's basically all the red area, right?
yes
but how would you write that? 😅
its described in the definition of A_r
so i just copy paste it?
is it just me or does it seem like the circle is getter smaller and smaller
the sketch is just to help u find the union
🤔
Well the union is basically everything but what's inside the circle but i have no clue as to how i should mathematically write this
<@&286206848099549185> ?
Everything except the interior of the circle is one of the sets you're taking the union of.
Unit-3Recurrence Relations 8 hours
Towers of Hanoi, Iterations, Homogeneous linear equations with constant
coefficients, particular solution, Solution of homogenous recurrence relations with Particular
solutuons and Total solutions. difference table, finite order differences,Line in a plane in general
position,
i have these topics to cover
can anyone tell me any better resource
MIT OCW has a good discrete math course that covers a lot of that
where i can i find it
thank you so much
Np
I think lecture 15 covers the material
Might want to watch around as well, I might be wrong
can i assume that $(k+1)^{2} \\Leftrightarrow\ ( k-1)^{2}$ ?
Steppaz
this notation doesn't make any sense
P(k + 1) = 2(k + 1) + F(k) - 1
Yeah
I had a brain fart moment and thought my solution was wrong but it was fine lol
But once you expand everything out, you get P(k + 1) = (k + 1)^2
Well your definition of F(n) is 2n + F(n - 1) - 1. So if you let n = k + 1, you replace all of the places where you see n with k + 1

// something tells me I can’t do math when I’ve just woken up
what topic of math would one explore after doing a college course on discrete math
i also dont know if i got the full gist of discrete math, bc sometimes i see things in this channel that i had never seen in that class
real and complex analysis perhaps, abstract algebra, perhaps another course on number theory if that piqued your interest
@deft dock I would say a mathematical structures class is the next step up, the beginning will feel familiar but it branches off really quickly.
Combinatorics
My combinatorics and probability intuition was awful in discrete math, does it get better with practice or am I cursed
I just couldn’t “get” it no matter how hard I studied
which is weird because I get everything else, Calc I-III, Linear Algebra, ODEs, and everything else in Discrete Math was fine
Any ideas on how to start going about this?
I know from Mengers theorem that for every two vertices u, v there is 5-internally disjoint uv-paths
yeah so there are 5 internally disjoint paths from u to v
i.e. 5 paths from u to v that never meet at any vertices other than u and v themselves
thus w can lie on at most one of those paths
the other 4 paths can comprise your two cycles
@slow jewel
i am not oversimplifying it in the slightest tbh
you can generalize this to arbitrary k-connected graphs
for a $k$-connected graph and $u, v, w_1, w_2, \dots, w_r$ pairwise distinct vertices in $G$ you can get the existence of $\floor{\frac{k-r}{2}}$ cycles that all have only $u$ and $v$ in common but none pass through any of the $w_i$
Ann
if i have a planar graph i can pick a vertex and embed it in the plane such that the vertex is on the outside
is it possible to do this if i want to pick two vertices?
if not does any1 have a simple counterexample
@spice rover still here?
i think you can't do it with the octahedral graph and two nonadjacent vertices
- We have 50 red rocks and 50 blue rocks
In how many ways can you place the rocks on a 10x10 chessboard such that the red rocks sit only in the black squares and the blue sits only in the white squares, or the opposite?
I think that it is 50! * 50! * 2 is it right?
are the red rocks distinct from each other?
they're identical
if the red rocks are all distinct, and all the blue rocks are distinct, then your original answer becomes correct.
aha I understand now 🙂 thank you ann
The second part of this question is:
- We have 50 red rocks and 50 blue rocks (they're distinct from each other)
In how many ways can you place the rocks on 10x10 chesboard so that in every line you have exactly 5 blue rocks and 5 red rocks.
Is the answer now is:
For specific line: (10c5) * 5! * 5! / 2!
And then multiply this by 10 for whole board?
is it correct?
define "in every line"?
do you maybe have a picture of the question exactly as it was stated? i want to ensure that there are no missed but crucial details in wording
Every line is like 1, 2, 3, 4..
so every row?
For specific line: (10c5) * 5! * 5! / 2!
this is correct
And then multiply this by 10 for whole board?
this is not
why not multiply by 10?
...wait hold on
where did (10c5) * 5! * 5! / 2! even come from
i must have misread either your question or your attempt at an answer
and you've also refused to share any pictures of the question so i strongly suspect you fucked up the wording and anything i say now will be pointless!
Let's say we're looking at specific row.
We want to pick place for the Red rocks first so (10c5) then placing them on the chosen spots 5!, and all the Blue rocks go to the rest in same row so 5!
Then dividing by 2! because I prioritized the Red rocks first and the blue rocks second, and it can be the opposite
yes I'm sorry I didn't provide any pictures
well CAN YOU????
We want to pick place for the Red rocks first so (10c5) then placing them on the chosen spots 5!, and all the Blue rocks go to the rest in same row so 5!
Then dividing by 2! because I prioritized the Red rocks first and the blue rocks second, and it can be the opposite
I don't have any picture there to be honest , it's just wording and it's not in English so I tried my best to find a picture that desribes the problem like the one I sent
this smells like bullshit through and through but i don't know exactly how to explain it to you
so what language is it in?
I'm sorry hmm it makes sense to me
hebrew 🙂
this is the original question the one I asked earlier
so let me get this straight
with the 50! * 50! *2
This is the last question
just wording
and that picture they provided is not good picture haha
i don't speak hebrew
did you put that emoji there on purpose to infuriate me
so you have a 10 by 10 chessboard, you have 50 red stones and 50 blue stones and they are all distinct from one another
and you want the number of arrangements of these stones on the board in such a way that each row has exactly 5 stones of each color...
Exactly
okay, so then that sounds like $\binom{10}{5}^{10} \cdot 50!^2$
Ann
It makes sense to me, yea I think it's correct too. Also need to divide by (2!)^10
no, you do not.
But we did (10c5) so you don't know who goes first there?
we arbitrarily decided to arrange the red stones first
(10C5)^10 is the number of ways to pick the spaces where the reds go
once we've settled on one of the choices, the rest will become the spaces for blue stones
Right
they taught us that if we artiblary decide something goes first we need to cancel it by dividing by the number of "options that can go first"
???
what are you talking about
are you sure you aren't misinterpreting or misremembering something
I'll give you an example in other question
Let's say we want to divide 4 people into 2 pairs
So we do
(4c2)(2c2)/2!
so it's the same concept
maybe I got it wrong but this is what I remember sorry
no it's not the same concept
when dividing two ppl into pairs, the pairs themselves are indistinguishable
i.e. the assignment Pair 1: A, B; Pair 2: C, D is the same as Pair 1: C, D; Pair 2: A, B
aha I get what you mean
so you said previously because it's distinguishable so we don't need to do division
I think
yes
thank you for your help ann I'm sorry if I infuriated you I appreciate your help
it makes more sense to me the more I think about it
seems right thx
is there a mistake in the table here? Doesn't {1, 3, 2} o {2, 1, 3} mean we are first performing the {2, 1, 3} mapping and THEN the {1, 3, 2} mapping?
yes
but they are using weird notatioin
usually we use ( ) for permutation cycles
well as you can see the congruences you arrived at are clearly false no matter what k is
and 49 is not 3 mod 4.
yes, that is what it means
you have shown that if n is odd, then n^2 has a remainder of 1 when divided by 4 (as evidenced by (2k+1)^2 = 4k^2 + 4k + 1)
and if n is even, then n^2 has a remainder of 0 when divided by 4 (as evidenced by (2k)^2 = 4k^2)
neither 1 nor 0 are congruent to 3 modulo 4.
thank you Lsfhv
Can anyone tell me how to do this?
What I've done was coloring such that if two vertices have an edge between them, they cannot be colored with the same color
But following that I can only color it with 5 blue and 2 red or 5 red and 2 blue, not 3-4 as it is requested here
but it doesn't say that adjacent vertices should be different colors
Yeah, it's just that's the only coloring I've done in the past
So basically I can do any coloring?
as-is, it appears so.
I see, thanks!
It's correct that the word "coloring" in graph theory often implies that adjacent vertices are to have different colors, though.
Any ideas
Anyone?
In how many ways can you sit 2n people in a row of 6n+2 seats, such that between every 2 people there will be 2 or 4 empty seats, and the first and last person in the row will sit in the start/end of row.
I would first work out how to place 2n people so they have exactly 2 empty seats between them
then I can think about adding in the 2 extra seats between people as single chunks between the people to make it 4 to fill out the seating arrangement
Can anyone help me verify if this graph has total 6 automorphisms (that preserve the coloring)?
Because it doesn't look okay when I'm trying to compute the cyclic index (and number of inequivalent colorings)
I think there are only 4: You can swap 3-4, or swap 6-7, or both, or none.
Swapping 2 and 5 doesn't seem to preserve the colors.
I see, thanks
How many permutations are there with the letters A, B, C, D,E,F,G, H if there is 2 or 3 letters between A and B?
I can't seem to figure this one out. In the solution it says 18*6! = 12960 but i'm not sure how they come up with that solution
This is my solution:
5!(6c2)+4!(6c3) but it's no way near their solution.
This is what i think:
2 letters between A & B:
A ** B c,d,e,f,g,h so we have 6 letters to choose from, and we want to pick 2 of those so 6c2, if we pick two letters we then have A cd B e,f,g,h. If we pick two letters we then have 5! therefor we multiply with 5! and so on
I know that's wrong but that's my reasoning, any help is appreciated 🙂
what does it mean 2 or 3 letters betwee A and B
so like ther must always be 2 or 3 letters between A and B from the letters C, D,E,F,G, H so if 2 letters then: A cd B, A ce B, if 3 letters then A cde B or A cdf B
i think that's what they mean or maybe they mean A cd B efgh with all the remaining letters coming after them
no since we only have 1 c
we can only use the ones stated up there
And i have no idea what their solution is about
yeah since the answer is 12960
what im thinking is
for 2 letters between A and B
A 6 x 5 B 4 x 3 x 2 x 1
numbers represent how many choices we have
u typed ur question correctly?
let me se
Yeah, that's literally it. how many permutations of the letters ABCDEFGH are there if b) there must be 2 or 3 letters between A and B
yeas
ok
a) "if there are no restrictions"
so like a) 8!
u misundestood the question
😄
we can have xyzw A gf B aswell for example
A and C are A and B in the question that i sent
right right
and we are not counting those in in our 5!(6C2) for ex?
i thought those were included in 5!(6C2)
i think i got it
how
4!(6P2)
thats 720?
so 4! because let's say we have AcdB... AcdB has it's own permutations so 4! for those
Ok so like A ** B have their own permutations no? same with A ''' B
But it still dosen't give me the correct answer, it's either wrong or somthing is missing
its 2*9 * 6!
bcz
A 2 B 4
the numbers represent the amount of letters there are
so 2 between A adn B and 4 after
aha
yeah yeah i'm with you
it makes sense, but i need to let it sink in rn
double it
lol
yeah i'm withchu, tyvm
yeah i was mixing it
i tried everything i could but i couldn't figure it out
so like yeah lol
👍
guys quick question
It asked me to get the inverse of the function
but what does it mean by ( x>= 3)
?
I did this
It says the function f is only defined for arguments that are at least 3.
Which is a good thing. because if, for example, f(1) and f(5) were both defined, the function couldn't have an inverse. (Can you see why?)
@indigo olive literally just check the pairs one by one and return false if you ever find a zero?
there is nothing you can do here except for brute force
What’s brute force
check the pairs one by one and return false if you ever find a zero
is it not clear
when i say pairs i mean pairs of vertices of course
if you want to write code for it, you would do a double for-loop in which you loop over i ∈ S and then loop over j ∈ S and if j ≠ i look at the value of M_ij
In a pseudocode manner
Like
Start
Statement 1
Statement 2
till
End
@stray reef
Am stuck here idk what else to write
what's Size and why are you initializing it to 0?
Sooo can u give a brief idea
and also not using proper indentation for your nested loops
yep sorry
probably easier to just write it myself
Yes
otherwise you'll just struggle forever
For i ∈ S:
For j ∈ S:
If j ≠ i and M_ij = 0:
return False
return True
i make things complicated f
For that algorithm what would be the time function and big O complexity? @stray reef
2n squared + 2?
O(|S|^2)
Since for is the iteration of n
or O(n^2) if you want
Yup
So 2n^2 + 2? Is valid right
what do you mean by "valid"
2n^2 + 2 is a valid mathematical expression, and so is log(n) + e^(3sin(2n)) - 55
do you really want the exact number of operations this algorithm takes?
yes
jeez wtf
depends on what we count as an operation i guess
if we want to be scrupulous my algorithm can take between 3 and 3n^2+1 operations
I see I see
(and obviously where exactly it ends up depends on the exact input being passed into it, since it stops the moment it sees a zero)
finding the EXACT time taken by an algorithm is most often a worthless pursuit
what do you want to initialize
Initialise M to be a matrix of size n x n whose entries are all 0
O
Yea I need to
What
you just scan through the relevant entries of your matrix
if you ever see a zero, then you STOP and return FALSE.
that makes sense
if you go all the way through every entry without ever seeing a zero,
then it means all of those entries you scanned were 1s
and so you should return TRUE
Here’s an example
S ={0,2,3}, need to verify if three vertices are pairwise adjacent
ok sure
you check M_02, M_03 and M_23
if one of these is a zero return false
otherwise return true
“To do so, you need to check similar thing for all pair i,j in S”
i do not understand what part of this isn't crystal clear
WAS THIS NOT WHAT I'VE BEEN TALKING ABOUT FOR THE PAST 20 MINUTES
HAVE YOU NOT BEEN PAYING ANY ATTENTION TO WHAT I'VE BEEN SAYING

Now I get it
Also a vertices of 6 with edge 13 is not a planar graph right? @stray reef
what?
Another qs
i don't understand what "a vertices of 6 with edge 13" means
Oh
did you mean "a graph with six vertices and thirteen edges"?
Yes
how did you conclude such a graph cannot be planar?
Graph is non planar because adding some extra vertices or edges into an existing edge.
The resulting graph is still non-planar
??
that’s my conclusion
Graph is non planar because adding some extra vertices or edges into an existing edge.
this is nonsense
What
Oh
it's just some words you've put together with no rhyme or reason to it
So what’s the proper way of concluding it
...i expected you to say something about euler's characteristic formula.
maybe something about how if the graph were planar, then drawing it on the plane would divide it into ___ regions, and then something about the number of edges adjacent to every region...
but to be honest i do not have high hopes
great, in this example you have an actual graph to work with
while in the problem you presented me with, all you have are the vertex and edge counts
Yea
you will not get a K_3,3 or K_5 minor out of that
So it’s easier having an actual graph
different problems require different tactics.
u have enlighten me
have i now
Alright another q
Decide if the following graphs are planar
@stray reef
My answer is no
and do you have proof?
okay then you don't have an answer
you just said "my answer is no" and then admitted you have nothing to back it up
OF COURSE YOU NEED TO EXPLAIN
did you really think you didn't need to explain
that's not a formula, that's an expression.
and until you say what it means, it won't mean anything.
so what if you multiplied the number of vertices by 3 and then subtracted 6 from the result
can you say what the result should mean, or is it just a computation that you memorized without purpose?
If the result is over the number of edges
It means it’s not a planar
say 3(6)-6 = 12
But the edges is 13
"the result is over the number of edges"
you said that if $3|V| - 6 > |E|$ then the graph isn't planar. do i understand you correctly?
Ann
Yes that
Idk if YouTube teaching me correctly
im not gonna sugarcoat it: you are really bad at communication.
all you've been doing so far is regurgitating things you've watched on youtube without any semblance of understanding.
ahhh
it's exhausting
i can't tell you that without just giving away the entire proof i have in mind
so i will not bother
What if I add extra vertices
....
What
and what you've just said amounts to "K_3,3 and K_5 are the only nonplanar graphs in existence"
Let me write the whole thing then lol
A graph is non-planar if and only if it can be obtained from either K5 or k3,3 by adding some (or no) vertices and edges and inserting some (or no) new vertices into existing edges.
great

and this theorem will be of NO use for you here.
yes, imagine! if you know nothing about the structure of your graph, then a theorem that relies upon said structure cannot be applied!
or at least, if it can be applied, it's going to be way more effort than needed.
Isn’t a planar graph is one for which we can give a planar graph drawing
However, these graphs aren’t capable of doing so
how do you know these graphs cannot be drawn without self-intersection?
just because these particular drawings have intersecting edges does not by itself mean the graphs are nonplanar
otherwise even K_4 would have been declared non-planar if you drew it a certain way
ah this is troublesome
Becaus it can be drawn without any edges crossing?
Is eulers formula can work here

it's like a game of telephone
first you say these graphs are not planar
now you say they are
and then you bring up euler's formula, as if i had not mentioned it before
because I have no proof
and you produce more bullshit out of your mouth
That’s the thing
well it certainly is possible to do something with euler's formula
but with your apparent ineptitude maybe it will look impossible for you

getting you to remember the statement of kuratowski's theorem was a struggle, and even then you probably just copied it from somewhere
i guess i can't expect you to make anything better
i was reading Hopcroft's automata text, and didnt understand this part where they work on delcap(q,a), i dont understand how is delcap(q,epsilon) = q ?
a here is a single input or string ?
yea
$\hat\delta(q, \ep) = q$ means that a FA that starts in state $q$ and receives nothing as input stays in state $q$. which should be obvious.
Ann
ok
they mentioned epsilon for the first time so I got a little confused
thank you for clarifying
epsilon is the empty string
oh, makes sense
hence why i called it "nothing"
Im a bit confused as to why this is the case, shouldn't it be R superscript +?
,rotate
This would be 1/366^2 * (58 C 2) right ?
no, that doesn't sound right
you have not accounted for the other 56 students being born on days OTHER than jan 1
which will incur a multiplier of (365/366)^58
is this a good definition of the maximum element of a set?
$\ \max{S} = {x \in S : x>y \ \forall \ y \in S}$
the true embodiment of a sully
so should I use $\geq$ instead of >
the true embodiment of a sully
yessir
okay ty
A Directed graph with nodes n >1 has a topological ordering if there is a node with indeg(V) = 0, is this true or false?
Let’s say we have a simple directed graph with 2 nodes, then there is a topological ordering, right?
A•—>——• B
Let’s say this is our graph, A has a indeg of 0
yes
oh my
Thanks!
Also if we talk about the same graph with nodes n > 1, if there is a walk from u to v then it means it's a cycle, this one is false right?
Does that make sense?
which graph are we talking about
yeah so like if there is two nodes u and v and there is a walk from u to v then our graph must have a cycle
same graph as before with 2 nodes
A•—>——• B
I say it's false since we have defined our from n > 1, for it to be a cycle n must be >= 3. So by showing that we can make a walk from u to v in a graph with 2 nodes we prove that our statement is false
is that a graph with vertex A and B and a just a single edge from A to B?
yes exactly
And that's why i think the statement is false, i'm not so good with graphs tho
there cant be a cycle with a single edge
👍
where did they get the double ~~ from?
I'm little confused
it says law of double negation
but there wasn't double negation in first place
Isn't the law t = not not t so you can replace that?
@weary tiger they introduced a double negation
Are you trying to define max{S} to be the maximum elt of S? Because max{S} is not always an element of S here. For example, if S={1,2,3} then max{S}={3} which is not an element of S.
The issue is max{S} is an element of the powerset of S rather than of S, but you want max{S} to be an element of S instead.
I do?
Well, if you say m is the maximum elt of A wrt the ordering >, you'd like to be able to say things like: if n is in A then m>n right?
But > would be defined for elts of A, not necessarily for elts of P(A).
So if you use your max as it is what you're doing might not make sense.
oh
For ex with A={1,2,3} we had maxA={3}, but then what would {3}>2 mean?
Yes.
It only really makes sense if a single unique max element exists though iirc
You could have two distinct elements in a partial ordering that are greater than all the others, but are not comparable.
In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary relation indicating that, for certain pairs of elements in the set, one of the elements precedes the o...
Under "derived notions" talks about those kinds of objects and junk.
When you have a property that characterizes an object uniquely you can just name the object with some symbol or notation in terms of that property.
There's probably something subtle going on.
For naming and sets.
Idk, like, the empty set is a good ex.
We define it as a set having no members.
It turns out this property can be used to show the empty set is unique.
So we're justified in using the empty set symbol to denote the empty set because of this.
Like, we can't accidentally have the empty set symbol refer to two distinct sets I mean.
true
If you look at fig 6 under extrema in that wiki you'll see an ex where there is no max elt wrt subset ordering.
So in that poset, if you referred to something as "the maximum", you'd be saying something ambiguous at best.
what do you mean by multidimensional
if it's a planar graph it can be embedded in R^2, which itself can be embedded in R^n for n>2
So I think I understand everything except why in the last image a=1. Only thing I don’t get
This theorem holds for any real numbers a,b where a>0.
So in the case where a=1, then a>0 so the theorem applies.
yeah that makes sense but it seems like a=1 came out of nowhere
idk why the 1 from the previous equation belongs there
Yeah, they're just picking it I suppose, and them picking it is totally justified by the thm.
This is just density of Q in R I think?
lol
So there's probably some nice intuition for it. 🤔
Both the same. Constant multiples don't matter.
Maybe something like this helps? https://math.stackexchange.com/questions/830836/question-about-the-density-of-q-in-r
I think the proof they're talking about might be diff from urs tho 
Ah wait nvm looks the same
The second reply to that thread has a pretty nice way of looking at it 
hey anyone knows what dead state method is ?
i know how to convert by creating a table but have no idea what it means by dead state method
It means that if you can draw the graph such that the edges (the lines that connects two nodes (points)) dont intersect (cross each other)
Hmm thanks
Anyone? (Graph theory)
Given: G=(V,E). There's one singular path between every 2 vertices (a path is a trail in which all vertices (and therefore also all edges) are distinct).
Prove: G is a tree.
We know because of the given that the graph is connected.
So to complete that T is a tree, we need another condition like |E|=|V|-1 which I don't know how to prove here
or to show in some way that it contains no cycles? how to show this?
If there's a cycle that means between two nodes on the cycle, there are two paths
So there arent any cycles
yes but I can't say it simply like that, I understand that intuitively like you said
but I don't know how to formally make it
Oh okay
So how about
Suppose there exists a cycle
You can write it like so:
[ v_1\to v_2\to\cdots\to v_n ]
Where $v_1=v_n$
So one path from $v_1$ to $v_2$ is $v_1\to v_2$, but another is $v_1\to v_{n-1}\to\cdots\to v_2$
yes
Slurp
aaha you're right
so we found 2 paths between two vertices, in contradiction to having only 1 singular
mmhmm
Exactly
You might want to explain why the two paths are distinct
But its pretty simple
no problem!
Any clue?
Given: G=(V,E) undirected graph. The number of vertices is n and n is odd (n ≥ 3). G has Eulerian cycle.
Prove: G has 3 vertices with exact same degree
--
We know from Eulerian cycle that every vertex degree is even. idk how it helps
@jagged junco you should find how many possibilities there are for the degree
so I know that 2 is the minimal degree and that the maximum is n-1 because n is odd
how do I continue?
write out all the possibilities and count them
I'm having hard time counting the possibilities because there isn't much information, or maybe I'm missing something (probably)
I know that every vertex has degree with one of those {2,4,6, 8, ..., n-1}
yea, I'll give you 2 ways of counting them
you can divide it by 2 since they're all even for {1,2,3,4,...(n-1)/2} and that's a basic list so it's (n-1)/2 total
or you can write n=2m+1 and the list is {2,4,6,...2m} for m total
so there's 2m+1 vertices and only m choices for degree
oh wow
so from pigeonhole principle we can say that we have 2 vertices with same degree
(2m+1)/m = 3?
since worst case scenario is each degree having 2 and there's 1 left over to make a 3
(2m+1)/m = 2.1 basically
it's slightly over 2 so there has to be a >=3 somewhere to bring up the average
aha I get what you mean
it all makes sense to me now but I'm mad at myself that I couldn't come up with this haha
thank you very much !
are there any youtube channels you guys would recommend that tackles discrete math really well
can someone plz clarify why the set of real numbers and irrational numbers is uncountable but rational numbers arent. rational numbers and irrational numbers both have the same cardinality as the set of positive natural numbers meaning both sets should be countably infinite.
I don't even fucking know bro
Also
What do you mean R^2?
I've seen that before, isn't that like a tuple?
Soe shit like that idk
yea R^2 is the cartesian product of R and R returning the set of all 2 argument tuples (x, y) in a plane
Erm, what? What do you mean Cartesian product?
so given two sets, A and B, the cartesian product would be the combination of all elements from each set. so for example: A = {1,2,3} and B = {4,5,6}. The cartesian product AxB would be {(1,4),(1,5),(1,6),(2,4), etc...}
so R^2 is the set of all points (x, y) on a real 2D plane
So like the mapped points?
On a cartesian plane?
yes
oh shit I'm stupid
how did I not know this
okay
so
let's say it's a R^3
This would be multi-dimensional?
yep
okok thanks
R^2 is also multi-dimensional fyi
pretty sure multi means more than one
I think in relation to a regular set however
could be
idk
The set of real numbers is uncountable since it's not even countable in the interval [0, 1). You can show this using Cantor's diagonal argument. Suppose you have some enumerated infinite list of real numbers in the interval [0, 1). Then consider the diagonal elements of each of these numbers. If you change it slightly, then you can form a new number that does not appear on the list because at some index, the numbers don't match. This is another number in the interval [0, 1) but it doesn't appear on your list.
Note that the set of real numbers is the countable union of rational numbers and irrational numbers. So at least one of the rationals or irrationals must be uncountable; otherwise, the set of real numbers is countable which leads to a contradiction (this is a result from the fact that the countable union of countable sets is countable). But the set of rational numbers is countable which means that the set of irrational numbers is uncountable
To show that the set of rational numbers is countable, you can either find an explicit bijection from Q to N or invoke Schroder-Bernstein theorem and find two injections, one from Q to N and one from N to Q
Did u do any finite state machine before? @haughty garden
I have a question regarding a function from a set A to B, where the function is surjective. The problem is to prove if A is countable B is also countable. My logic is that since the function is onto each element of B must be mapped to at least one element of A. Since we can count A values we can count B values. Does this seem like a reasonable argument? I am doing some self study for basic discrete mathematics but am bad at proofs and had a bit of trouble understanding the implications of cardinality and surjective/injective functions on sets
I’m not entirely sure how rigorous that is. A better approach I think is to define an injective function from B to A by using the axiom of choice
Essentially given an element x in B, g(x) will be an element where f(g(x))=x. Since there must exists at least one element like this, you can choose one
Why do you think the irrational numbers have the same cardinality as the set of positive naturals?
That is false (as well-known proofs show), but the reason you would think they do deserves examination. You might need to unlearn some intuition that doesn't work for infinite sets.
Quick question: To show injectivity (f(a) = f(b) -> a = b for all a, b), a and b don't have to be distinct right?
Rather, it is totally fine if we have a function that has only one element, say f(x1) = y1 and it is an injection, correct? (Domain of f is {x1})
Correct, a and b don't have to be distinct.
In fact, when they are not distinct you're immediately happy because the right-hand side of the -> is true.
Yup, and the contrapositive also makes sense, but just wanted to confirm. Thank you!
"Since we can count A values we can count B values" doesn't sound rigorous to me. It might actually describe an intuition that turns out to be valid, but as it stands, it sounds a lot like just stating the thing you have to prove in different words and calling that a known fact.
A good proof here ought to describe in detail how to satisfy the definition of "countable" for B if you know it is satisfied for A. The details will depend on what your definition of "countable" is. There are several equivalent possibilities, and you need to connect to the particular one your class uses.
That hits the problem I tend to have with proofs. I came from a physics background looking at this, where analogies are used for almost any “proof” until you get to a very high level of understanding. I’ll keep working through it looking some definitions as a guide. I also wrote it at 2 in the morning and forgot to include that A and B are both infinite sets, with A being countable
If A and B being infinite sets is an explicit assumption, then that changes my guesses at what your definitions probably are.
(Unfortunately there are two different meanings of "countable", favored by different authors. Everyone agrees that a set of the same cardinality as the natural numbers is "countable", but there is a disagreement whether the word also ought to encompass finite sets).
Analogies and appeals to intuition are rarely accepted in mathematical proofs. This can feel rather stuck-up, but the underlying reason is that a proof is not only convincing ourselves the conclusion is true, but also for convincing ourselves that we have listed all the assumptions that force it to be true. The latter part is important because it is what tells us when we can reuse the reasoning in a different setting that is formally similar.
Hello stats nerds/geniuses
Anyone able to help me with this Applications of Probability question?
I'm struggling to answer...well either parts really. Like part A I've got an answer but I'm not particularly confident with it.
Anyone able to help me out with this?
No worries, I reframed the proof I had in mind to fit within one similar to one in my text, which had a few (what I assume are good) examples of something similar for a set. Thanks for your help
I’m not quite understanding the line 9 in a row count as 3. Would 7 then be 21 successful shots?
Not sure if this counts as "discrete math" but that's what the course is called
Right now we're learning about trees and spanning trees
I forgot the formula I'm supposed to use for this assignment (image 3), so I looked it up, and apparently the number of spanning trees in a graph is v^(v-2)
Hell...I'm confused on that. Either 1 streak is 3 consecutive shots and therefore 7 shots is 2.3333... shots...it's...weird
However, in the notes (images 1 and 2), it seems she's teaching that the number of spanning trees in a graph is... the number of vertices in each circuit in the graph, multiplied by each other in the first example (image 1)
And in the second example (image 2) shes doing something... completely different
I have no idea what to do
know the definiton of a spanning tree?
Yes
some edges are must haves right
sorry i mean
BC and AC and AB **
we cant have those at the same time in a spanning tree
In the second example, the task stated is to draw all the spanning trees, not just compute how many there are.
i mean just the first part
and then look at the middle part
and just count every scenario
thats how i would do it
maybe an algorithm exists for this but im not aware
So the red crossings-out in image 2 is an example of how to make one of those spanning trees, not part of a counting algorithm.




