#discrete-math
1 messages Ā· Page 214 of 1
only had to skip to the next unit to find it -_-
š”
are they saying "NOT non-increasing"?
here is their defintion btw
A sequence is non-increasing if for every two consecutive indices, k and k + 1, in the domain, ak ā„ ak+1.
this is correct btw, as in its all the correct words in the correct order
thanks!
i was trying to copy that over
(donāt have internet connection on laptop so was hard to do)
you use the same variable x for two different things
Can someone explain this to me?
Identify the prime factorization of 10!
10! = 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 =3,638,800
The prime factors are 1, 3, 5, 7
The prime factorization is 2^8 * 3^4 * 5^2 * 7
Can someone explain why this is the correct answer?
1 isn't a prime
Every prime less than 10 will be a factor since it is a factorial
maybe you meant to put 2 there cause 2 is prime
@pale epoch Let $x \in f^{-1}(f(A))$. Then $f(x) \in f(A)$. We want to show $x \in A$.
We know $f(x) \in f(A)$. Let y:=f(x), so there exist an $m \in A$ such that $f(m)=y$. Note that f(m)=f(x), and since $f$ is injective,m=x, and so $x$ is in $A$. Thus $f^{-1}(f(A)) \subseteq A$.
strings
yes, this is correct

how does this sound for the other one @pale epoch
let $x \in A$, then $x \in f^{-1}(f(A))$ since $f^{-1}(f(A))={x \in X | f(x) \in f(A)}$ by definition. This is because:
- Since $A \subseteq X$, we know $x \in A$.
- since $x \in A$ we know $y=f(x) \in f(A)$ by definition of f(A).
therefore $A \subseteq f^{-1}(f(A))$
strings
how do you show that every outerplanar graph is 3-colorable?
By strong induction of the number of vertices. The interesting case is the one where the graph has an interior edge. Pick one such edge. The picked edge together with the part of the graph on one side of it forms a smaller outerplanar graph; so does the picked edge together with the part of the graph on the other side of it. Recursively 3-color both of these smaller graphs.
oop thanks yeah I just got it hahah
can you help me with another thing please?
I'm not sure how to count the perfect matchings in the trees
is it something to do with edge coloring?
oh shit I must be misunderstanding perfect matchings then
Hmm, what is the definition of "perfect matching" you're working with?
oh I see, you need to cover all the vertices huh
Yes, that's what makes it "perfect".
true
š„²
sorry im weak at this
so is the choice of 1 then covering the whole tree?
no that doesn't make sense
I'm saying that a tree either has no perfect matching at all, or there is only one way to get one.
ooh
(The situation is more interesting for graphs that are not trees).
what is the one way to get a perfect matching? like if the graph has an even number of nodes or?
or is there an algorithm
"One way" was perhaps not the best wording. I didn't mean one method, just there can't be two different perfect matchings.
hm
but I'm looking at this thing saying that a cubical graph has nine distinct perfect matchings?
or are they really the same
A cubical graph cannot be a tree.
"Perfect matching" has the same definition for all graphs. The thing that is for trees is my claim that the number of perfect matchings is either 0 or 1.
ok then this must have to do with degrees
Did you see the "further hint"?
yeah I was thinking about it 
The exercise doesn't ask you to come up with a general criterion, just to find out what the answers are for those two particular graphs.
true
I think it is much easier to find those concrete answers first, and then (if you're still curious) try to generalize your reasoning to cover other trees.
yeah you're right I'm being distracted
it just doesn't seem possible to cover all the vertices without having some edges sharing vertices
That means that the number of perfect matchings is 0.
ok nice
yeah and the leaves make it obvious because
well you have three edges coming out of that vertex onto another 3 seperate vertices lmao
idk how to formally say it without just pointing
you're just bound to have collisions
I guess?
Give the edges and vertices names and say something like: The only way to cover v1 is to include e2, and the only way to cover v3 is to include e4, but e2 and e4 cannot be in a matching at the same time because they both end at v5.
true
Help me understand this proof. Where do q^(n^2) and 1/((q;q)_n)^2 come from exactly and why can you just multiply them?
I suppose the author uses the symbolic method but not sure what are the atoms.
it's called a claw btw
thanks a bunch!
Just wanna see if I got this right. Does a reflexive relation only occur if every point has a loop?
Or can I say its reflexive, if xRy and zRz?
What am trying to understand is, for a graph to have certain relations, does every node need to have those properties?
if xRy and yRz, and yRz, then xRz. But if yRx, do we still have a transitive relation? I know I asked more than one question, sry about that
This is better suited to #prealg-and-algebra .
If you want to draw a graph representing a relation, then yes, reflexivity translates to "every vertex has a loop", symmetry is natural to undirected graphs, but for directed graphs I'd expect "if there is an edge from vertex a to vertex b, then there is an edge from vertex b to vertex a", while transitivity corresponds to "if there is an edge joining a and b, and an edge joining b and c, then there is an edge joining a and c".
@flat lichen if you have another doubt that is better posted here then post it
Ok great. Does transitivity still occur if theres symmetry between two nodes?
xRy, yRx, yRz, xRz
Theres transitive relation in two ways. It still counts, right?
z is not transitive but x and y should be
Transitivity is a property of the relation, not the individual elements. 
R is transitive only when aRb and bRc implies aRc.
If you know that R is transitive here, you can conclude that xRx because xRy and yRx.

{ Element | Element is a permutation of {1,2,3,4} }.
Is there an elegant way to write it in formal way?
S_4
{f : {1,2,3,4} ā> {1,2,3,4} | f is a bijection}
Can someone help me understand how he got 5a_k-1 - 6a_k-2 in second picture from first?
Hes doing it from the assumption of n < k but I dont see why k-1 in first and k-2 in second term
A=2 -1 3 2 7 5 x B=0 -4 3 1 4 6 7 2 9 -3
-2 on all indicies?
You have an expression on a_{n+2} so shift it by 2
Can he choose any number k thats greater than n, and the result will be the same?
i dont have the intuition to see why -2
thanks!
Say n=6 then a_{6+2}=5a_{6+1}-6a_6. But if n=4 we have a_{4+2}= 5a_{4+1}-6a_4
Which is exactly the same as the formula written down for a_k for k=6
I think I see my issue here
I forgot k > n meant n = k - 1
I kept thinking of it as n = k + 1
k>n does not mean either of those
no but it does help with understanding why the value of n got lower
What? I could also write down formula for a_{k+100} if I wanted
for k to be greater than n + 1, k - 2 does the trick
i was trying to figure out where that k - 2 came from
Yes they do it to use inductive hypothesis but sounded like you didnāt understand why the two things were the same
That has nothing to do with k greater thanā¦
Im most likely missing some understanding. This is all new to me
Given a number k you have the formula for k+2
So call m=k+2 now you have a formula for a number m
Is just all they did
so k - 2 = n + 1 and k - 1 = n?
.
If m=k+2 then k=m-2, plug that in and you get a_{m-2+1} and a_{m-2}
I could also do this with m=k+103918182 or whatever it doesnāt matter, this is still true (as long as we donāt go below a_0)
why is this so hard for me to understand
it makes alot of sense but something doesnt click
m is just k with an added 2 and k is m when you remove that 2. the number doesnt matter
i actually got it
i somehow didnt notice a_n+2 .. so a_n is substracting 2 from 5a_n+1 and 6a_n......
Yes
anyone know how to show this? I know I need to use hall's theorem
I guess you must show N(S) geq S
but isn't it obvious..
I guess I can try contradiction
may be possible to prove there exists a hamiltonian cycle in G
actually no hold on that was bullshit
hahah
<@&268886789983436800>
can anyone explain this?
I think I understand the first case
but I don't understand why the neighbourhood of W would be equal to n in the second case
couldn't W just be one vertex with degree bigger than n/2 but not equal to n? therefore its neighbourhood is not equal to n
@dapper rose
@shell lagoon
yikes, bad oversight
thanks ill rethink it
wait no
wait let me show you what i think is a counterexample
what about this?
bottom right has degree 1
hello friends
we know 43 is a prime number, so I decided to use Fermat's technique. And this algorithm consists of breaking down exponent, taking what's left, and then using fast exponentiation algorithm. I did all those steps but for some reason im gettign the wrong answer
can anyone verify where im failing
take a look at my question whenever you get a chance, thanks in advance
6^40=6 mod 43. 6^2=36 mod 43
6*36=1 mod 43
This latest question seems to have nothing to do with the conversation you're replying to.
sorry i do not know how to tag users on discord
I would prefer if you don't attempt to ping me in any manner if you're not responding to something I've said.
roger that
i see what you doing. thanks
Related to a question yesterday, asking : given a set of random positive integers find the permutation that has the maximum sum of differences between each number. Are there any theorems involving this sort of thing?
Having a degree 4 vertex means that we need at least four leaves (for a tree). Is this True?
Soo I got both of these questions correct by applying logical thinking on what to do. Though I am a little confused.
The first question is no unique digits, the second one has the constaint unique digits. What technique/rule differentiates the two questions?
The first question I applied 2 * 10^4 while the second question I applied 2 * 10 * 9 * 8 * 7
Like 1 uses unique elements from the set the other disregards that. Yet both of them state that different arrangements are unique answers.
I guess one requires distinct objects the other doesn't is the way you would explain it? Both of them being permutations though and not "combinations"
let f: X -> Y, f be injective. A subset X
i want to prove A $\subseteq f^{-1}(f(A))$.
is this correct
-
Since $A \subseteq X$, we know $x \in A$.
-
since $x \in A$ we know $y:=f(x) \in f(A)$ by definition of f(A).
therefore $A \subseteq f^{-1}(f(A))$
strings
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
What does your first line mean, what is x
But besides that, sure
this inclusion always holds though and we have the equality if f is injective
f:X->Y, just letting x in A
i can probably just state suppose x in A and then go from there
Yeah
what is there to tell?
@weary tiger which part(s) of the screenshot you sent here are troubling you?
yes
wut
like how we take the degree
i mean, what's written sounds correct to me
is it like the connections to the vertices
Yes ik
isomorphism on graphs is a bijection that maps elements to elements, in such a way that an element is adjacent to another in f(G) iff they're adjacent in G
so if there's a vertex of degree 3, in f(G) you'd need exactly 3 vertices adjacent to it...
I got it but its kinda still confusing can u help me in vc if u dont mind
right now i can't
i mean it'd be good if you put what's confusing you into words
i'll go out for a while and be back later
"which part(s)..." is not a question to be answered with "yes" 
if you meant that you don't know what the word "degree" means then why not say you don't know what the word "degree" means?
This is the question
What does he mean at the part that says there are 2k terms each >= 1/2^(k+1)
2^k not 2k
but what is said is exactly what is meant...
there are a number of terms, each one is greater than or equal to 1/2^(k+1) and there are 2^k such terms
@night heath does this answer your question?
sure let me know when ur back
like i didnt get the degree part like how do we take it
Look up definition of degree
do you mean:
- "i don't know what the word 'degree' means"
or - "i don't understand how to find the number of degree-4 vertices in either graph"
or - "i don't understand how they knew to consider vertices of degree 4 and not anything else"
or - "i don't understand how it comes from this that the graphs are not isomorphic"
Like I'm getting confused with finding degrees
1
#1, ok
the degree of a vertex is the number of edges connected to it
in your original screenshot, each vertex has its degree written next to it
does this resolve your confusion?
i'm here
from what i gathered it seems like you're having trouble with what ann said
yes
did they help clarify?
yes
yes
so,we take each point and calculate its degree if im not wrong
that is what they did, yes
it's not much of a calculation
since your graphs are given as pictures it's more like looking at the picture and counting
knowing the vertex degree is very simple, just count how many edges are linked to it
that is what i said
š
Since A subset X, we know x in A
we know x in A anyway
ok so i can delete 1) and keep the rest of the proof
ty
so is this correct
if added more words itās saying:
let x in A
then we have f(x) in f(A)
since f(A) = { f(a) | f(a) for some a in A}
and since A subset X
we have x in X
hence x in f^-1(f(A))
?
f(A) = { f(a) | f(a) for some a in A}
now this is bad
you should have just deleted 1 and not touched anything else
ok
how come no. 2 is not true?
I'm guessing "The sum of any two rational numbers is a rational number"
i want to prove that gof is injective if g,f is injective ā can i get a proof check
let f: X->Y, x,y in X
suppose (g o f)(x) = (g o f)(y)
g(f(x)) = g(f(y))
since g is injective we know
f(x)=f(y)
since f is injective we obtain
x=y
thus gof is inj
and nothing else
welp i just checked the question again and that's only what's given
so the question is fucked up then
does my proof look ok
yes your proof is ok
k
huh i c
i want to prove if g, f is surjective then gof is surjective
can i get a proof check in this:
want to show for all z in Z there exist x in X such that (g o f)(x) = z
proof:
consider (gof)(x)
since f is surjective for all y in Y there exist an x in X such that f(x)=y
thus g(f(x))=g(y)
since g is surjective for all z in Z there exist a y in Y such that g(y)=z
thus we see for all z in Z there exist an x in X such that (gof)(x)=z
could someone give me an idea as to how the answer is 12870?
Do you know binomial coefficients?
does my surjection proof look ok
yeah we kinda tackled it but why are we exactly using it for this case?
(a choose b) is exactly the number of size-b subsets of a set of size a.
"Unique but not disjoint" in the problem statement seems to be just filler. It seems to try to prevent misunderstandings of what is being asked, but doesn't add a substantive restriction of itself.
could someone check this
maybe check your own proof?
i did i donāt see any problems with it but it doesnāt mean i donāt have a blind spot and fooling myself
because checking your own proof is a valuable skill
you can't always get someone to check your proof
yes and i think itās fine but it doesnāt mean itās actually correct
have some confidence in yourself
I self study discrete math too
look I'm not arguing with you, just advice ig
it'll slow you down to constantly ask people to check you
I don't care what you do with what I say
gl
i appreciate your advice
Would this be a valid way to do this proof
It makes sense in my head but I don't know if it is proper really
Maybe because I haven't really seen any examples like this
Can someone explain this to me? I guessed D and it was not correct.
What is the greatest common divisor of c^2+c and 25c, given that c>0? I don't understand how to figure this out.
A c + gcd(c, 25)
B gcd(c, 25)
C gcd(c+1, 25)
D Incorrect Response c Ć gcd(c, 25)
E Correct Answer c Ć gcd(c+1, 25)
F c + gcd(c+1, 25)
G None of the other answers listed here is correct.
c²+c = c(c+1), and then apply the general rule gcd(xy,xz) = x·gcd(y,z).
For a directed bipartite graph is it sufficient to have a partition of disjoint sets A,B where for each directed edge in A connects a vertex from A to B (or vice versa for B) or do we need the directed edges to connect both ways?
So, in the first definition both of these will be directed bipartite graphs, while if the second def. is true only the second graph will count.
you don't need edges to go both ways, you just need to be able to split the vertices into 2 independent sets
and yes, both of those are bipartite
ok, thanks.
also what about empty vertices? do we consider this as a bipartite graph? On one hand we can achieve a 2-coloring, but on the other hand there is no edge from one vertex.
still bipartite
if you can achieve a 2-coloring, it's bipartite
it means you can split it into 2 independent sets which is the definition of bipartiteness
yes, that makes sense.
Also, do you know how we define a directed line graph?
tbh
the only kind of line graph i know is undirected
i mean, you'll switch the vertices with the edges, but idk how would you assign an orientation to each edge on the line graph
yes, Im also unsure as I just know undirected line graphs. How about directed path graphs? These shouldn't be a problem to define
yes but i'm unsure on what you plan to use this information for
Hi, can someone help me with this question? Iāve been looking at it but I donāt have any idea how to start
@hoary cloak Actually I am just listing as many properties as I can for all directed graphs of 4 vertices. I have drawn them all in Latex. Tiresome work, although I did find a website that listed properties regarding undirected graphs I have yet to come across a website listing properties for directed graphs.
gotcha. i mean there are a loot of properties for sure
you won't be able to do an exhaustive list (probably no one would)
is this for an assignment?
up to isomorphism, hopefully?
yeah,its for my thesis. However I don't need to list all properties. I just want to have some interesting properties associated with them
I think you would use binomial coefficients
to make a directed line graph of a directed graph what you do is suppose you have edge E pointing to vertex v and edge F pointing away from v. Then in the resulting line graph you make a directed edge from vertex E to vertex F. Otherwise, you don't make directed edges at all
oh there's also an example here https://mathworld.wolfram.com/LineGraph.html
Thanks)
Could you elaborate on that?
Wait, I don't think that's correct cause you aren't only choosing each letter once.
Or is that what distinct means?
Also make sure you don't count the words that begin with ABCD and end with MONKEY twice
This was what I did, do you know if this would be correct?
I followed a similar example
Idk if it is correct, but looks good
do all my P(n,r)'s look good? Any errors?
Wait I think order matters here right? cause using a binomial coefficient order does not matter
Sorry using a binomial coefficient order does not matter but here it does as different ordering would be considered different words.
Makes it a bit easier, think of the first set of words starting with abcd, then there are 13 letters that could follow, then 12, etc. Over the 9 remaining letter positions.
I got 261122190 words
Also the way you did it first with assuming oder doesn't matter should get a number less than the number for when order does matter.
So this it should be P(9,13) + P(7,11) - P(3,7)
P(n,r) being ways to choose n elements from a set of r elements.
Am I thinking of this correctly?
Interesting that if order didn't matter there are only 1010 words
Wouldnāt it be P(13,9) + P(11,7) - P(7,3)
Oof yea, I was thinking 13 letter words
What does distinct mean here, each letter in the word is different?
Oh so each word only needs 13 unique letters and then can have 4 letters repeat?
I think it was a mistake in the question and weāre supposed to treat it as 13 words
Lol if you assume the question is written wrong how can you answer it?
The question makes sense, just a bit more complex, since each 17 letter word needs 13 distinct letters and 4 nondistinct letters.
Gives much bigger answer. Since you need to tack on 17^4 on each term to account for the 4 non distinct letters
What class is this for if I may ask?
Itās just called discrete math
The teacher said to treat it as 13 words
So 13 letter words, with 13 distinct letters?
I think so yeah
So this would still make sense
No you cant choose 13 letters out of 9 letters and have them all be distinct
But because order matters here, binomial coefficients shouldn't be used
Isnāt the first number the amount of numbers you have and the other one is how many you can pick?
So if you have 13 letters, you can pick 9 distinct ones
Ok I wrote it backwards
But n choose r is wrong for this problem
Because order matters
Huh ok
In the words that start abcd....
You have already used 4 letters and have a total of 17, so there are 13 you could use for the next one. Then for the next letter 12 choices.
13x12x11x10x9x8x7x6x5 is the number of words that start with abcd I think
This can be written as 13! / 4!
Then the ones ending in monkey is
(17 letters- 6 used)! / ((17-6)-(7 letters open))
Being 11! / 4!
Yes
Oh ok yeah that makes sense
The problem of 17 letter words with 13 distinct letters is more interesting.
Not sure how the overlap of words starting with abcd and ending with monkey would be calculated. You should ask your teacher that lol
If I remember Iāll ask lol
Does anyone else here know how that would work?
Can someone explain this to me? i don't understand why that answer is the one that is not equal to all the others.
Which of the following is not equivalent to the others?
a is not divisible by b
a mod b > 0
a is not a multiple of b
b is not a factor of a
a is not a divisor of b This is the correct answer
all the above statements are equivalent
a is not a divisor of b doesn't mean b is not a divisor of a which is what all the others answers are saying?
I naturally think of a>b when thinking of the others so saying b is not a multiple of a feels weird. I know that doesn't matter though
Interesting, I've never heard of a line graph before, where do you end up if you just keep converting to a line graph?
You have said you self study discrete math, how are you going about this?
About the self studying?
Yea just wondering like what books or topics
I just picked up a reputable book, but it's not in English
And being really critical of my understanding of the material
I don't think the book itself matters as much as how you study, so just any alright book might work
And the book just teaches the topics in order
idk fun question, looks like cycles are going to be fixed points under iteration
I worked out a formula to count the number of edges in the new graph given the old graph as a starter to see when it increases or decreases
Wikipedia says depending on the starting graph some disapear, become a triangle or grow without bound
I was drawing the square with a diagonal shown on wokframm
That one seems to get more edges each iteration
I kind of imagine drawing the graph on some closed 2D surface, and then constructing the line graph of that on the new surface as a way to kind of try to tame it
I think you can always do this, sort of makes it clearer to me whether it's going to get bigger with each iteration or not since it seems like it's kind of subdividing the mesh further at each step
this makes it so if you look at any single vertex, it's approxmately planar there and then you're making a face at that vertex, then you kind of go around all the edges incoming at that vertex to make the edges
similarly every old face also becomes a face
so sort of like taking a 3D shape and sanding off its vertices to make a new shape
Cool
I think we can then exactly count the number of vertices, edges and faces for each iteration with euler's formula
picture it in your head š
the graph is embedded in a 2D surface so a face is enclosed by a cycle
like think a soccer ball
but can be a donut with a graph drawn on it too
But a triangle area is not a face?
Cause not a soccer ball
soccer ball is just a 2D surface with a graph on it
could be any graph drawn on any 2D surface
that was just an example
Oh ok
notice that (k+1)/(k-2) < 2
thus the inequality would hold if you multiply a number greater than or equal to two when you multiply the left side by (k+1)/(k-2)
is there dataset of circulant graphs? http://oeis.org/A049287
Setup looks reasonable. What is causing you to get stuck? Can you use the inductive hypothesis somehow?
pls post here
what are these called
Indexed union.
can someone explain what this means in simple words and maybe a concrete example?
is there a calculator online that I could use? I'm tryna review for exams
itās literally defined on the page
i don't really understand what it means
$N(k) = |A_{i_1} \cap \dots \cap A_{i_k}|$
Ann
What is N(k)? the number of elements in the intersections of k sets?
First line after 'then the formula becomes' on the RHS, why are we able to pull out the N(k) from the sum?
Why does the 1 part become (n,k)?
What is N(k)? the number of elements in the intersections of k sets?
yes
we're considering the case where, no matter which k sets you go with, their intersection will have the same size
and in this case N(k) of course no longer depends on the i's i.e. on which sets you're taking intersections of
What does the 'finally Ai subset....' mean? what does N(0)=|X| mean?
How does that translate to the 'complement version'?
What does all of this mean in a combinatorial sense? (would be easier to see with a small 3 set exam)
Why does the 1 part become (n,k)?
you have a sum of several terms each equal to 1, and there is one term for every possible strictly increasing list of k indices, of which there are nCk by definition of nCk
so it depends only on the number of sets we're choosing, not which ones
yes, that's the special case they're considering
What does the 'finally Ai subset....' mean? what does N(0)=|X| mean?
if we consider all of our A_i as subsets of some bigger set X, we get a formula that gives us the number of elements in the complement of the union of A_i wrt X, as written on the left-hand side of the formula
setting N(0), a quantity not otherwise meaningful, to |X| produces a somewhat more elegant formula
'you have a sum of several different terms equal to 1'
which terms are you referring to?
does this mean it's equal to one? this notation is a bit confusing
what's "it"?
'the sum of several different terms'
Depending on your intuition, it might work for you to simply skip the middle line there. In the first line you have a sum of a bunch of things, each of which equals N(k). Then in the third line that sum has become N(k) times how many of the "N(k)" you had in the original sum. The intermediate expression with a sum over 1 may or may not help you see how that works.
i think this makes a bit more sense, and then "how many of the "N(k)" you had in the original sum" i'm assuming is (n,k)?
what does this notation mean exactly?
like what is it doing
It says there is one term for each way to choose i1, i2, ..., ik that satisfy the inequalities.
That's arguably a bit of overkill here, what is meant is just that there is one term for each k-element subset of {1,2,...,n}.
a directed acyclic graph has the same "structure" as a partial order right?
and how to say this more formally?
No, since a DAG does not have to be transitive.
oh
I.e. the graph on {1,2,3} withe edges {(1,2),(2,3)} is different from the graph with edges {(1,2),(1,3),(2,3)}, but they would encode the same partial order.
ok makes sense
what is the word to use for talking about preserving the "structure" of a structure but neither (or not necessarily) their sets, functions, nor relations?
would you be able to give a concrete example of this special case of IE with a small set of suppose n=3 and how it would work out?
i need help
If $f: A \to A$ is not surjective then: $\exists a \in A ( \forall b \in A, f(b) \neq a)$
Feels wrong to me, but its equivalent to:
If $f: A \to A$ is not surjective then: $\exists a \in A ( \lnot\exists b \in A, f(b) = a)$
Is this correct?
Ah
ryаn
So is this correct?
yes
also whats with there being no standard for how (,) are used and sometimes | instead or even a comma?
i wouldnt use a comma here
or anything
parentheses to show scope of the quantifiers
like you did for the first one
Wikipedia used something like:
$\exists a \in A ,\lnot\exists b \in A, f(b) = a) $
š¤·
Though some books use:
$\exists a \in A ,\lnot\exists b \in A | f(b) = a $
you almost never write down statements like this
and when you do, you define your syntax precisely
ah right, its like how no one writes "1 / 2 * 3" or "a ⧠b ⨠c", since its syntactically ambiguous
eh, natural language is just the better choice
yea so much for set theory being on formal rigourous grounding....
the only reason to write down such things is if you want to syntactically manipulate it but then nobody cares how you write it down
or if you build a language formally and you have to care about how statements must look like
and then the book will use some precise definition
hmm i see
to show that a bijective function has an inverse function i need to prove:
(a) if a function f is bijective, then f has an inverse
(b) if a function f has an inverse, then f is bijective
correct? because the class proved (a) and made it seem that was the end of the proof
To show that a bijective function has an inverse function you need to prove (a) only, to show that if a function has an inverse then it is bijective you have to prove (b) only
If you want to show that a function is bijective if and only if it has an inverse then you need to prove both
ah, ok i see
I just donāt have any idea what I can do from here to in order to prove it
Ok, but can you identify where exactly you are stuck? Do you know what it is you are trying to do next? Can you recall any relevant formulas regarding binomial coefficients?
how do i prove the inverse of a bijection is a surjection?
i know we want to show for all a in A there exist a b in B such that f^-1(b) = a assuming we are talking about a function f:A->B
i started by saying let a in A. we know f^-1(f(a))=b because⦠and get lost here finding a b in B for any a in A
uhhhh i'm not sure where else this goes so i'll just ask here
why is $\phi \times \mathbb A$ where $\mathbb A$ is a set always just $\phi$
valley
is it because you can't really "take" elements from $\phi$?
valley
First of all, use $\emptyset$ or $\varnothing$ for the empty set. Secondly, it's precisely because of that. The definition of a cartesian product is
$$A\times B={(a,b):a\in A, b\in B}$$
If one of the sets in the product is empty, there aren't any elements in it, so there aren't any tuples satisfying this, hence the set has no elements, so it's.empty.
ShiN
any ideas on this
f(a) lives in B
let a in A. Let b:=f(a)
we know f^-1(f(a))=f^-1(b)=a by a lemma i proved earlier
so there exist a b in B such that f^-1(b)=a
namely b:=f(a)
i think but confused if that works or why
trying to unwind definitions
that does work
that's exactly how you do it
i'm not sure what you mean by a lemma, f^-1(f(a))=b is exactly the definition of the inverse function
i guess iām confused because i donāt see why plugging that a into f and then saying b:=f(a) is my b for any a works, i need it explained a little more
i think i get it
itās saying
we want to show for all a in A there exist a b in B such that f^-1(b)=a
and i say oh i have a b
b:=f(a)
apply the defs
and you see f^-1(f(a)) = f^-1(b) = a
that it?
@austere swan
exactly
ok awesome
For that first part yea
ok and whats theorem 5.2?
I believe first part n^n
Second part has to do with induction
Something like n(n+1)^(n+1)
Or (n(n+1)^(n+1))/4
does anyone know how I would find the definition of the following set of numbers: h = {(1, 2), (2, 1.5), (3, 1.333 . . .), (1, 1.25), . . .}
Are you sure the last of the listed pairs shouldn't be (4,1.25)?
yeah :/
How about {(((n-1) mod 3)+1, 1+1/n) | n in Z+}?
that works actually, thank you š
So I just did this, does this seem correct?
How is that the recursive forumula?
scroll down to formula
I cant find it?

King Arthur chooses three of the 25 knights sitting around his table to fight
a fearsome dragon. How many possible choices are there, if no two of the chosen knights should sit next to each other?
To solve this question I did 25 choose 3 - 24! is this correct ?
What? Yes it is
Your answer is a negative number.
oh other way around my bad
I'm not sure if I counted correctly
What? 15+2*4+1=17 in your mind?
does anyone know a simple proof that for any infinite set $\mathbb A, |\mbb A| = |\mbb A^n|, n \in \bZ^+$?
valley
someone told me it was true and i understand the diagonalization and induction argument for the integers, but i wanna see a proof that can be applied to the reals
What is the generic name of combinatorics functions that produce actual results, like all permutations of a set or a cartesian product, rather than the count of results?
what part do u need help on
Not sure how to do it...
well what have you tried? what are the definitions of cardinality that you are using? what does it mean for two sets to have the same cardinality?
not really a simple proof but ik one that uses zorns lemma and induction
Two sets A and B have the same cardinality if there exists a bijection
okay great
so there is a bijection from A to B and a bijection from B to C
how would i get a bijection from A to C?
Thats the part not sure about
you need to compose the bijections
if f : A ā> B, g : B ā> C are the bijections, then consider the composition g o f : A ā> C
where (g o f)(x) = g(f(x))
okay give me a sec to try
could you link it or post it? i'll come back to it when i know more set theory
okay I understand how to get here
@cerulean wind i got to g(b)=c
search for a pdf of endertonās āelements of set theoryā. should be the first link on google. check in the chapter about infinite cardinal arithmetic
iām not sure what this means
you need to show that g o f is a bijection
hmmm, so when do I have to do from there?
is that a good book?
A function from X to Y can be viewed as a subset of X Ć Y: (x, y) ā f if f maps x to y. It is possible that X and Y are in fact the same set, in which case f is a subset of X Ć X.
what do they mean by the X Ć Y
Are they saying it is basically a subset of the cartesian product of the sets X and Y?
Say X is the set of Reals and Y is the set of Reals?
Yeah that kind of idea works. Nice. See if you can write in complete sentences to explain what you're doing along the way.
Ok sweet, also idk if youāre familiar with this kind of stuff but Iām having trouble with two smaller questions
Sort of, yes. It's trying to say that the mapping can be represented as pairs (x, y) where x is in X and y is in Y and f(x) = y
It would be easier to construct an example with a finite countable* set, take some small subset of N and some arbitrary set X, then your f will map the elements of the subset of N to elements of X and the pairs (n, x) will be in NxX
sure but when they used the term "subset" of X x Y means that you might have a function that doesn't use all the X set or Y set . like how you might say 1<=x <=4 ?
But the whole set of X and Y could be the reals but you only have a subset of those in your f
If f doesn't use everything in X then it's not a function
And what are your troubles?
It might not use all of the Y elements though
oh. so they mean more so that you wont see all combinations
And that's why it's a subset
I see
Have you by any chance learnt about relations?
nope
Iāve never been taught this and donāt know what itās asking
This way of looking at functions becomes really clear after you get introduced to relations
Have you tried doing any research online? Can you give the definition of a graph?
I tried but I didnāt really understand
Try to construct an example if you have a hard time seeing it. Take A={0, 1, 2} and B={a, b, c, d, e}. Make an arbitrary function f: A->B and see that it is a subset of AxB @wide vine
we have this example and I see how it is a subset.
so like for exmaple
example
X x A should have all 16 pairs? but in this case we only have 4 of the X x A
like how w only maps to a
subset of X x A
Yep
Can you see why it's always going to be a subset of XxA ? ||I realise now that this is a weird question||
but in the X x Y you could have (w,a), (w,b), (w,c), (w,d)
Exactly
well by definition it seems you can't have a mapping from the domain to multiple elements in the co-domain
so you would always have a subset
they also call it "target" but idk what the correct term is for it
Also, XxA does have 16 pairs, but f has 4
f: A->B
A - domain
B - codomain
Yeah that is what I meant
while the X x A will have 16 pairs, the f won't because you can't have an element in A that would map to multiple elements in the codomain
yes
hmmmm ty i'll check it out
for a function to be surjective wouldnt this mean the cardinality of domain has to be the same as the co-domain
or greater
How would I go about proving something is surjective, bijective, and injecive?
my problems are not asking me to prove them but just answer what they would be based on the function. I can determine it but I can't say for "certain" it is
like with a proof
proving a function is bijective is proving that it is both surjective and injective
If $f:A\to B$, one common way to prove $f$ is surjective is to assume $y\in B$ and then find an $x\in A$ such that $f(x)=y$.
DootDooter
For injectivity one common way is to assume $f(x)=f(t)$ and then to show $x=t$.
DootDooter
(Or to do the contrapositive of that)
Though in other contexts you might have special theorems and tricks that allow you to avoid proving injectivity/surjectivity those ways.
I'll have to look into this and probably see a few examples.
Those two ways are basically just showing the definition of surjectivity/injectivity hold I suppose.
Proving those is basically just showing every elt of the codomain gets mapped to or that no two distinct elts of the domain map to the same thing.
is this stuff easier if you are working with integers . Not sure if you could use some sort of f(n+1) idea or f(n-1) from a base point to show maybe 1:1 etc
like some sort of proof by induction
I guess that might just depending on the actual function also though 
Functions on the integers can be pretty complicated.
more so then just reals?
I thought it would make the problem easier if you have a "smaller" set to work with
Well number theory is a whole thing I guess lol.
I'm probably not qualified to really say which of those things are more complex lol.
But sometimes there are nice theorems with finite sets of integers.
Pigeonhole principle can be helpful.
So can well ordering property type stuff.
I'm pretty sure most of the really common counting principles from combinatorics can be stated in terms of set cardinalities of finite sets too.
@final cliff If you could show an inverse of a function will that show anything about it being surjective/ injective?
Yeah a function is bijective iff it is invertible iirc.
I just got to my "inverse of a function" section so maybe bad time to ask
but I would think a one to one function might be invertible?
although idk
A 1-1 function is always invertible
sounds like it should be
It has to do with the codomain/range distinction.
A 1-1 function might not be onto its codomain, but it is onto its range.
The codomain and range of a function might not be the same.
Yeah I see.
So I guess maybe I worded this poorly lol.
mannnn i don't understand cantor and dedekind's proof of transcendental numbers at allll
anyone have any good resources to hammer polynomial things into my head
in this paper, they say "Suppose that $A \subset \bR$ is a set of real numbers. A maximal element of $A$ is a number M = max $A$ such that $M \in A$ and $M \geq x$ for every $x \in A$. A minimal element of $A$ is a number m = min $A$ such that $m \in A$ and $m \leq x$ for
every $x \in A$. It follows immediately from the definition that if $A$ has a maximal or minimal element, then sup $A$ = max $A$ or inf A = min $A$.
valley
supremum and infimum
least upper bound and greatest lower bound respectively
@viral crown
https://gyazo.com/33f4ade24893b8c765645ae9ea7d7529
anyone familiar with this?
what is "the game with demon"?
that sounds like the standard way of showing that a language is not regular. You give the demon the language; the demon picks the pumping constant; you give the demon a string w in the language where |w| >= p; the demon gives you a way to break up the string into w = xyz where |y| > 0 and |xy| <= p; you give the demon an i such that xy^iz is not in the language
how does that differ from applying the pumping lemma directly
so how does one follow the directive not to apply the pumping lemma directly?
Hi! So I have this set of arguments and we have to construct a formal proof using chain of reasoning.
Since C is equivalent to A, would that make C equivalent to C ā A?
So I can write C ā A ⨠~B
I don't think so, if C if true and A is false, then
C is true but
C <-> A is false,
hence they are not equivalent
isee
man i've been stuck with this problem for houRs šš
our reference materials did not have premises containing <->, searching in google doesn't have examples either so šš
what you reference materials have
this is the closest
how would you guys work this out?
by 16 years, 99% of patients have at least a 2-year period of remission
however, i can't see a solid link between the premises and the conclusion
unlike this example that could easily be proven thru modus tollens
given C<->A, can you break it into C->A and A->C to eliminate the bicondition?
so far i have:
1 C <-> A | premise
2 C ⨠~B | premise
3 (C -> A) ^ (A -> C) | 1, material equivalence
4 C -> A | 3, simplification
5 ~A -> ~C | 4, contrapositive
6 ~C -> ~B | 2, material implication
7 ~A -> ~B | 5,6 hypothetical syllogism
ya i've done that
so far i got to the point where i proved that ~A -> ~B
tho i can't seem to figure out how i would make that useful
I can see that the last step can becomes (C v ~B) n (A v ~B)
since we have C v ~B, we need to obtain A v ~B
I think 7 can help you?
so i'll get the material implication of 7
so it would become
8 A v ~B | 7, material implication
(C v ~B) n (A v ~B),, i dont get this tho
distributive law
yes
WTF
9 conj
10 distributive

Can someone link me good data set of isomorphic graphs? I need to write algorithm that checks if two graphs are isometric so I need to write tests of it first but creating even 100 isometric graphs by hand is too long

i have a dataset of only circulant graphs
but its digraphs
in general its very hard to generate such a dataset
and it depends a lot on how you store graphs on your computer
there are some pretty good (fast) probabilistic algorithms that check graph isomorphism, its probably best to just randomly generate a bunch of data
my data looks like this:
those are all circulant (di)graphs on 10 vertices
each line is an isomorphism class
a circulant graph on n vertices has vertices {0, 1, ..., n-1} and a number x here means that each vertex i has a (directed) edge to (i+x) mod n
e.g. those are the graphs {1, 2, 5} and {1, 5, 6} on 8 vertices
(they are isomorphic)
Good non-isomorphic test cases are harder to come by systematically because they need to look sufficiently alike that it takes all the sophistication of your algorithm to tell them apart.
Oh here it is my bad
I got 2 and no for my final answers can you see if thatās right?
I'm trying to work out the graph problem. What are these for? I've enjoyed thinking about the ones you have posted.
What is the relation of the min number of edges for a graph with x vertices of degree x+1?
Theyāre just review questions
For the first question the sum of degree = 2 * edges
So thatās 2*30 which is 60
We know 60= 7*6 + 3(# of vertices with degree 3) + 0(# of vertices with degree 0)
So vertices of degree 3 is 6
Since there is 14 vertices total and 6 of them are degree 7 and we just found 6 of them are degree 3, the last 2 are degree 0 or isolated
Why is the sum of the degrees always 2* edges?
Iām not sure, just found it online but I think itās because each each is incident to 2 vertices
Ok what you did makes sense then
I was trying to draw 6 vertices of degree 7 and kept using too many edges
So Iām struggling with being able to differentiate the difference between permutations and combinations in word problems. Is there an easy way or like keywords that gives these away
Think about does order matter? Like if I picked the three numbers (234) does that count as one possibility or, do 243, 234, 324, 342...ect. each count as a different possibility
From what I was drawing I drew 6 vertices with degree 7, but also with 2 vertices with degree 6. Which isn't allowed, that where was getting messed up
How does this proof work?
it's called proof by induction, there are two parts, proving a base case and proving that the kth case implies the k+1 case
Can you draw the graph?
the second part is called the inductive hypothesis, it's kind of like saying if you have dominos lined up and the kth one falls down it knocks down the k+1 domino in front of it
the base case corresponds to knocking down the first domino
what real life problems does combinatorics solve in engineering/economy/medicine fields?
How many ways you can order blue and red balls
Drawing the graph takes much longer
Yeah I can tell lol
oh 3.g is fun
||first vertex is connected to nothing, last vertex is connected to everything, contradiction||
Oh so, I was right when I circled ānoā
well idk if I would conflate "lucky" with "right"
I just thought of it differently, itās not possible to have a degree 6 vertex and degree 0 vertex together
But itās basically the same logic as what you said
gotcha
The classic problem of packing Vienna sausages into a can.
This is wrong anyways šŖ
Would this be correct?
A particular brand of shirt comes in 10 colors, has a male version and a female version, and comes in three sizes for each sex. How many different types of this shirt are made?
My answer: 180
10 colors * 2 versions (male and female) * 3 male sizes * 3 female sizes = 180
or would it be 10 * 2 versions * 6 sizes = 120
can always just scale it down to check your answer - if 1 colour you can list out all types
Here is a correct graph with 12 vertex, 6 of degree 7 and 6 of degree 3.
Actually now that I think about it, canāt you make a regular graph from the sequence?
But not a simple one
Or am I wrong?
what do you mean by regular graph? graph where all the degrees are equal?
Thereās 2 types of graphs right? Regular and simple?
I still don't know what you mean
Simple is a graph without loops and parallel edges
regular graph means graph where all the degrees of all the vertices are the same to me
Iām just saying couldnāt you make a normal graph with that sequence (0,1,2,3,4,6,6) but not a simple one
yeah possibly
Well the question is asking if you can make a graph with the sequence (doesnāt need to be a simple graph)
I think my question doesnāt mean āsimple graphā when they say graph
otherwise they would have asked for multigraph or something with multiple edges or loops
you're over thinking it
Because I was just told if they ask for a simple graph they would specify in the question
And if they ask for a regular graph, they just write graph
A simple graph, also called a strict graph (Tutte 1998, p. 2), is an unweighted, undirected graph containing no graph loops or multiple edges (Gibbons 1985, p. 2; West 2000, p. 2; Bronshtein and Semendyayev 2004, p. 346). A simple graph may be either connected or disconnected. Unless stated otherwise, the unqualified term "graph" usually refers ...
read the first few sentences, I can't really convince you otherwise if you don't want to believe me
Right I get that but here
ah well that changes things
So it would be yes right?
possiby
This is a different example but you get what Iām saying tho
yeah you can make one, there's an easy example I have in mind
Ok, the final answer was yes
well you have a lot of freedom so drawing an answer is easy
the question says to draw one so you kinda have to be able to construct it too
For my sequence, you donāt really need to show it unlike the other one I sent
Cause the sequence Iām talking about is different
well it depends on the sequence if you're talking about a different one
probably better to just ask that question instead
Iām talking about (0,1,2,3,4,6,6)
oh I thought this was the exact same question but showing more for context, confusing
The sequence was different
well whatever if you feel content with not knowing how to construct one I won't twist your arm
Here Iāll just delete it
Ok but you can draw a regular graph for the sequence (0,1,2,3,4,6,6) right but not a simple one
Right?
stop and think
It should be yes?
because you can say the last one thatās connecting to 6 things isnāt connecting to everything
Cause you can have 4 connected to one and 2 connecting somewhere else
@ebon quest this is where we started, it seems like you didn't understand this proof
explain why this works
Because you canāt have a degree 6 thatās connecting to everything and 0 at the same time
Because 0 is connecting to nothing
š
So even with a regular graph, you still canāt make it with the sequence (0,1,2,3,4,6,6)?
try to make one
Yeah I donāt think itās possible
you're allowed to make self loops right?
Yeah
you can just make loops on everything to make them, with one edge between the two odd degree vertices
Wait so it is possible
yep
okkk that makes sense
Just to be clear
you CAN make a regular graph (with loops and parallel edges) with the sequence (0,1,2,3,4,6,6) but CANT make a simple graph(without loops and parallel edges)
right
a graph with arbitrary edges like that can always be made as long as it has an even number of odd degree vertices
since you can fill out all the even degrees with loops and the odd degrees can be handled by making edges between them in pairs to match up
So any sequence with an even number of odd degrees always has a regular graph?
yeah
Dang thatās good to know
although you shouldn't call them "regular graphs" because a regular graph means the degree of all vertices is equal
sure, I guess
if your teacher marks it wrong you just show them that screenshot you showed me of the other question
I won't try to mind read what your teacher expects, you're on your own
yeah but I know for a fact he didnāt mean āsimple graphā
cause he said it himself
But thanks again for the help
umm not really, I solved the rest of them
unless you wanna try solving them yourself lol
sure might be fun later to play around with
thank you!
Whats discrete math
Sometimes it means "the scattered selection of math topics that CS students at such-and-such university must learn". As such it contains general "math literacy" areas such as proof techniques, basic sets and functions, mathematical induction, etc. It also contains a few topic of particular CS interest, such as asymptotic growth, computability, often some rudiments of formal logic, etc.
At the same time, it also functions as a bit of a "wastebasket category" for things that don't have better channels of their own, but do seem to have some kind of "discrete" character -- such as combinatorics or graph theory.
š I thought combinatorics and graph theory had a solid place here
Graph theory is definitely also a thing needed for CS.
I have no idea who really needs to know how many distinct words can be formed from the letters of ANTIDISESTABLISHMENTARIANISM if there must be at least two As and at most three consonants can come together.
me i really need to know
Lol
discrete question here hi ( :
confused on how one would write a floor/ceiling function with factorials ?
Why does this count as an induction proof even though the induction hypothesis is k-4?
bc of the condition at the bottom, i would assume?
can you elaborate?
it says it's true for all $n \in \bZ^+$ with $n \geq 24$
valley
which is why the IH can be for just 24+
but why is IH allowed to be k-4
I get how inductions usually work when IH is just n=k
but not n=k-4
How do you know if it even covers all of the claimed domain
How would I solve this?
There are 26 letters in the English alphabet.
A license plate consists of either (2 upper case letters followed by 4 digits)
or (4 upper case letters followed by 2 digits). How many different license plates are possible with these restrictions?
I am using permutation because it looks to me like the order everything is in matters.
Would this be the correct formula?
(26P2 * 10P4) + (26P4 * 10P2)
2 letters and 4 digits + 4 uppercase and 2 digits
You want to use permutations with repetitions allowed because you can reuse digits and letters
otherwise lgtm
Anyways moving on I'm still stuck on this stupid induction problem
You need to consider 24,25,26,27 and 28 explicitly
After that you use strong induction
Since 24<=n-5<n and n-5 can be written in that form our hypothetical is true
can you explain this a little more? The main part I am confused at is why you can get away with using k-4 as IH
This is strong induction
What?
You can assume everything in a set satisfies the IH instead of just one element
And then you expand this set one element at a time
So {24,25,26,27,28} is initial set
29-5=24 in set so 29 satisfies our set becomes {24,25,26,27,28,29l
Because you start considering from 29
I'm so confused
Your initial set is {24,25,26,27,28} because the Induction hypothesis holds for those
what about {20,21,22...}
And then when you include a new element k,you check if k-5 is in the set
Hypothesis doesn't hold
Yea
can you explain to me how set {24,25,26,27,28} is involved in an IH of n=k-4
I have to prove the set using basecase first before IH?
This is how quizlet solved the question
extremely confusing
wait I think I wrote the answer wrong in my original screenshot
nvm
I'm so confused why this range of IH
How do you decide what range of Basis you need and how do you decide the domain of your k in IH?
Depends on the question
Here the question was n>=24
And we needed n-5 to satisfy that
So n has to be atleast 29 for hypothesis to work
can you explain this to me as If I am absolutely stupid
Ok so suppose n were 26
yes
Then n-5 will be 21 which we know is not in the set
So we can't really reason with 26 this way
ok but why use k-5 in the first place?
Well combination of 5 and 7
So if k were a combination then either (k-5) is a combination or (k-7) is a combination
You could have went with 7 too
sorry that question was too stupid
so then why include 24 within the set
if 24 - 5 = 19
That's the thing you can't prove it with induction
But you can prove it by writing it explicitly
ok so basically I first consider domain given
then select n-5 or n-7 (use n-5)
then see the values that don't work under the domain
and then use them as basis to prove
Yea
so I need to have my IH in mind by the time I do my basis step then
Ok but how exactly does the induction step look like if I set n=k-5 for IH
does it actually work?
dude why ask right now when I'm literally in the middle of a question here
my bad
allg
So does the induction step actually work if I set n=k-5 for IH?
@unreal stump
They used n=k-4 in the solutions on chegg so I'm confused
I hate mathematical induction so much
I don't understand but you use strong induction as he said
because you're trying to prove it for Z+
and n starts from 24
The next possible integer is 29 since when i = 1 ( count), n = 24, and n + 5 = 29
ok but does IH n=k-5 actually work?
the base case
but your base case is dependent on your IH
what?
during the actual manipulations I need to get it to actually make sense
you simply show that x^0 is equal to whatever your inductive hypothesis is
idk if n=k-5 will work
you assume it works for all m with 24 <= m < n and try to prove it for n. to make sure that you can actually āstep backā at most seven steps, you need to check the first 7 numbers from 24 to 30
I think you could solve it for any multiple of 5s or 7s
you can
like this is the manipulation I'm talking about idk if you can do the same thing for n=k-5
itās at most 7 tho
can you show me how to do it via IH of n=k-5?
I'm very confused at this thing
I hate grimaldi the textbook sucks ____s at explaining
for n = k - 5? why?
If I can generalize this to use IH of n-(whatever is lowest component) this is major win and would trivialize this type of question by a bunch
but idk how it works when IH n=k-5
lowest component of what?
in this instance it is 5
I just take k+1 = (k-5)+6-6?
see it doesn't work because we're dealing with 6s here
what makes you think you can just write any number as sums of r, s for any integers r and s?
the generalization doesn't work
n=k-5 doesn't work
I'm confused at what to set as my IH
can you just show me how the IS woudl look like
if you used n=k-5 as IH
k + 1 = [(k + 1) - 6] + 6 = (k - 5) + 6
