#discrete-math
1 messages · Page 112 of 1
@obtuse lance Please continue. I'm waiting to answer this with a slightly different approach after you're done xD
[It's going to be almost the same thing, except for the first step. But the non-trivial part of it will be the same so you'll have to do the hard work here]
oh haha
ok so now imagine walking to another vertex, how many choices do you have to walk to @sick fiber ?
n - 1 ( since its complete)
I am taking a random example in my head. Like i started with v1 and then went to v2...
perfect
how many choices do we have when we take k-1 steps
Oh, so you're doing the same thing. I thought you were going to count each step
n(n-1)(n-2)...(n - (k -1 ))
↑ That is counting each step. So I'm safe, haha
I guess quick sanity check, we will do a cycle of length 3 after taking 2 steps since we have no choice where to return
your answer gives n(n-1)(n-2)(n-3)
so I think you should really have n(n-1)(n-2)...(n-(k-1))
we wanna do one less than k, not one more than k
Yeah you messed up the sign there
Ohk word
now we've overcounted but we can save it
how many times have we overcounted our cycles?
[You were thinking n - k + 1 [which is a very common simplification], but then you partially reasoned it out, so you knew it's n - (something), then mixed those up]
Yeah xD ryt.
nice, yeah good point
@obtuse lance trying to see overcounting here.
so let's maybe just imagine the case with a 3-cycle how many times would we have overcounted?
it's tricky
Ohk let me try..
@obtuse lance I think it's better to use 4 vertices. S₃ = D₃ but S₄ ≠ D₄ (for the same reason that makes this example unsuitable)
oh, I don't see that making a difference for how I'm thinking about it
but I see how that's a good strategy
(All permutations vs. only certain permutations)
well ok, I will say I am just thinking of them directly
well I'll wait to see what gurjit says
Yeah
Ueff.. i am trying to just take an example and come up with some answerr
Like i took 4 vertices v1,v2,v3,v4...
4 * 3 * 2 ( eg v1 --- v2 --- v3)
ahh that was to make all our cycles
but now we're focused just on a single cycle
that we have traversed multiple times
So if from this example
I would say
V1 - v2 - v3
And v3 - v2 - v1
Is Counted twice
https://discordapp.com/channels/268882317391429632/496785905474994186/659084513124548608
The question is: How many ways could you have chosen the start vertex so that after choosing the other vertices in the following steps (in some way), you'll finally get the same cycle?
For example if your graph as 5 vertices: v₁, v₂, v₃, v₄, v₅,
and your cycle is v₁v₂v₃v₄,
how many ways could you have chosen a starting vertex so that after carefully choosing the remaining ones, you'll get the same cycle v₁v₂v₃v₄?
[Or am I misunderstanding @obtuse lance's question?]
well I guess I should say how I was thinking it
I imagine a single cycle as like a necklace with beads
and we counted a cycle for each starting bead
but not only that, we could have gone clockwise or counter clockwise
so we have over counted by 2k
That's true. But is that all?
Which cycle is v₂v₃v₄v₁?
sorry I didn't read what you wrote
I'm counting that I believe
https://discordapp.com/channels/268882317391429632/496785905474994186/659086278330941490
Sorry. Rather, I didn't read what you wrote
I count all k cycles 1234, 2341, 3412, 4123 as being all possible starting places
and then go around them backwards yeh
I somehow missed this one: https://discordapp.com/channels/268882317391429632/496785905474994186/659085746581274635
ok cool we're on the same page
I just counted it as twice actually
But I got that i am overcounting many cycles not alone 2 times
@obtuse lance yeah for 123
It should be same as
231
312
ah not quite
when you came up with our way of counting
we allowed ourselves to start at any of the n vertices remember?
so that means 123 is the cycle we made from starting at 1
231 is the cycle we made starting at 2
312 is the cycle we made starting at 3
so we have 3 cycles
Ahh yeah yeah...
Backward in the sense ?
so we can start at 1
and then go to 2 or 3
there are two paths around a cycle starting from the same point depending on if you go clockwise or counterclockwise
https://discordapp.com/channels/268882317391429632/496785905474994186/659088174848540700
E.g., 1→2→3(→1) or 1→3→2(→1)
Oo yeah right
that was nice I didn't know this result before in general just the case with K_n with k=n
nice to see that it does simplify down to (n-1)!/2 like I was expecting
Okay, so my turn now
ok go for it 😛
I'll start with the (slightly) harder part that you've already done
@sick fiber If I give you k vertices, in how many ways can you make a cycle out of them?
To make a cycle, this is all you need to do: Make a path, and then connect the first and last vertex.
So in how many ways can you make a path out of the k given vertices?
Alright... So v1, v2, v3 ,v4,..vk, v1...(k -1)!
Like i fixed v1 and v1 in the ends
And just checking permutations of the vertices in the middle
(just not sure is that correct approach)
Yeah, the first vertex is fixed as being adjacent to the last vertex, but the last vertex is also counted among the k.
So in how many ways can you arrange k vertices into a path, that is, in a line/row?
In other words, how many permutations of k objects (the k vertices) are there?
K!
Yes. And once you get a path, you make the first and last vertices adjacent, so there's no choice and hence nothing to count there
But now the same overcounting-logic from before applies
So there are 2k different permutations that give the same cycle by this process.
So the actual number of different cycles that we can form using the k given vertices is
k!/2k = (k - 1)!/2
Okay so far?
And k because the k "rotations" of any cycle will give k different ways of writing the same cycle
1234 = 2341 = 3412 = 4123
Yeah yeah exact
And could we rephrase it in terms of objects here ?
So like relating it to the example of merosity of beads
This part is exactly the same. So we're still asking: If you're given k different beads, how many (truly) different necklaces can you make with them?
That is: In how many ways can you arrange k objects in a circle (if all that matters is which object is next to which, and not on which side of an object is the other — if that mattered, then we wouldn't divide by 2)
Okay, so the number of cycles we can form with k given vertices is (k - 1)!/2
But we're not given k vertices, we're given Kₙ.
So we must first choose k vertices out of the total n. We can choose any k, since there's nothing special about any vertex.
Also, two different choices of k vertices will never give the same cycle (no matter how we arrange them).
So the total number of k-cycles is:
#(Ways to choose k vertices out of n)×(k - 1)!/2
In how many ways can you choosek vertices out of n?
Nck
Yes. So: C(n, k)×(k - 1)!/2
Which looks different, but can be easily simplified to what you got before
@obtuse lance And C(n, n)×(n - 1)!/2 = (n - 1)!/2 when k = n
nice
@tidal plinth @obtuse lance thanks a ton guys
yeah I guess I didn't even post the final form but
n!/(n-k!)2k
was what the original starting thing was, but I was afk I'll try to catch up to see how you did it
you did something with like, making a single loop first and then building up all the loops is that right?
@tidal plinth
@obtuse lance I chose k vertices out of n (in C(n, k) ways) and formed all possible different cycles using these given k vertices (in (k - 1)!/2 ways → that's the number of the so-called circular permutations of k objects)
ah I see, gotcha
Hello,
Can anyone explain to me why the 2nd one is the correct answer? couldn't the 3rd one be correct aswell? If P is true it makes R be true, and if they are both true then Q and S is also true, which makes the hole statement be true.
But it's not given that they're both true, or even that one of them is true
oh so its just stating the fact that P implies R, not that any of them are tru (R is true if P is true doe)
Exactly
ah but in the 2nd case If P is true, that means that Q is to, and if Q is true S is true,
ah
i see
Thanks!
wtf does $p \to q \to r$ mean? don't you need parantheses?
Intel:
$(p\to q)\land(q\to r)$ perhaps
EpicGuy4227:
i mean, this would agree with the intuition that you can sort begin with a proposition which you know is true and sort of flow in the direction of the arrows to get new true propositions
but it's not standard notation as far as i know
so i don't know what to make of i
Lmao just check if (p => q) => r iff p => (q=>r)
If they’re equivalent, then associativity holds
plot twist: it doesn't
for example, in the case where p is false, and r is false.
but in the question above something of the form $p \to q \to r$ is written, and i'm trying to understand what the fuck is up with that
Intel:
chaining implications is pretty common. here's an example
i think that arrow indicates inference rather than implication, but i might be wrong
anyway, i've never seen it in a pure propositional logic context. is it common?
well I never saw it during the 1 semester of logic I did
but it does unambigiously mean $(p \to q) \land (q \to r)$, right?
Intel:
"this, therefore that" rather than "if this than that"
and i meant in the context of the picture epicguy sent
like 3 dots arranged in a triangle pointing upwards
$[(p \implies q) \land (q \implies r)] \iff (p \implies r)$
Abhijeet Vats:
that's not in general true
‘Inference’ has a very specific meaning though
No that is true. It’s a tautology. The transitive law
plug in p is false, q is true, r is false
the iff should be only if
exactly
then it's a tautological implication corresponding to hypothetical syllogism
Okay yea but if you just wanna check if it unambiguously is the conjunction of two implications, then you just need to check if the equivalence holds
It comes down to the same type of problem
no
it's not a math problem
it's a matter of knowing the convention
the thing in question is what is meant by $p \to q \to r$.
Intel:
it's not like this thing is defined a particular way and we're trying to figure out something about it
we're trying to figure out how it's defined
which isn't a matter of mathematics, but of convention
anyway, $(p \to q) \land (q \to r)$ does seem like the most reasonable interpretation so far
Intel:
Oof that’s cool, i didn’t know that
wtf from the post there's also $p\to(q\to r)$ and $(p\land q)\to r$ interpretations (these 2 are equivalent). rip.
Might be best to consult a text on logic
EpicGuy4227:
It seems like there are deeper reasons for preferring one convention over the other
computer scientists ruining everything
It’s pretty interesting tbh
why is this correct
$\Gamma(\frac{n-1}{n})*\Gamma(\frac{1}{n}) = \frac{\pi}{sin(\frac{\pi}{n})}$
Angelium:
because it's the reflection formula with x=1/n plugged in
$\Gamma(1-x)\Gamma(x)=\frac{\pi}{\sin(\pi x)}$
Merosity:
plug in x=1/n
this doesn't really answer "why" though, just that in anchors it to a name so you can look up the proof of that formula yourself to read
yes
Post the full question @slender skiff picture is cropped
no
Hello,
How does this answare become 40.320, I keep getting 336 when i do: 8 choose 5 * 6 choose 5, what am i missing, by doing that you get the different ways all the men and woman can be arranged.
Order matters.
You chose the people that will be matched, but not who will be matched with whom.
Actually, I don't get this one either. What would you have to do to get 40320? That's 8!
But I don't understand why would 8! apply here?
I think it's binom(8,5) * binom(6,5) * 5! which does indeed give 40320, but I am not sure if I can reason the 5!. Hmm. I guess the first two binoms are the ways to pick 5 women and 5 men, and then 5! ways to arrange the couples? But the logic seems kind of crooked.
I think I thought of a good way: (8 * 7 * 6 * 5 * 4) * (6 * 5 * 4 * 3 * 2) ways to get the men and women, but then we divide by the number of ways we arrange the couples, which is 5!. Thus giving us 40320. Can anyone confirm if I'm correct?
<@&286206848099549185>
yeah it's really just a coincidence that this happens to also be 8! @weary tiger
yes your reasoning seems ok
i would do the exact same calculation as you did
Thanks
talk about a sus angle lol
I've been working on this problem over break and it's killing me. I feel I'm close. It's a very satisfying problem so I thought I'd share for y'all:
Given n red points and n blue points in the 2d plane where no three points are colinear, must there exist a set of line segments connecting one red dot to one blue dot, such that no two cross
I think I have a solution
I'll do induction, for n=1 we have one pair and one line, easy
now for the nth case we assume is true and connected and we'd like to show the n+1 case is true
so I pick out two points where I want my red and blue dots to lie in this already nice looking connected picture
and I imagine taking a pair of red and blue dots already connected from far away and sliding it in towards their position
as I approach, I might have to split it
but when I do, I split and trade with that pair of vertices
Who says that during the reconnecting process, a line might not be created that crosses another? This crossing will never trigger your splitting process
and so I am always maintaing connections on its path to the final resting place
That was my first idea too
because when they come in, I can approach narrowly
What do you mean?
Any kind of continuous transformation strategy I've tried has suffered from that problem
once they're there, I can trade
There might be so much noise surrounding the spots you want the dots to end up in, that the trading process just creates another crossing
And then you'd have to rectify that one, which makes more
no since n is a finite number
I'm not convinced a loop can't occur
The process of unhooking crossings could go on forever
yeah you're right, this is not good enough
My current strategy is to represent every red-blue pair as nodes in a graph which connects nodes when the pairs they represent don't share a node and don't cross
And then pigeonhole
I'm sure if I knew more graph theory or combinatorics it could work
of the representation graph, or of the original picture?
just points in the plane with no edges drawn
You could triangulate it, but that hasn't been fruitful for me
I guess I'm just trying to understand what kind of barriers there are to this
after you triangulate it what do you do
like some kind of sperner lemma type thing?
not sure how that would help lol
I guess I'm just imagining maybe if it's triangulated you have some kind of paths to enter or exit this maze like thing
and try to imagine what that looks like
since we can define doors in the triangles which have all different colors at the edges where there are two different colors
Maybe some useful information: it's trivially easy to do this for pretty much any configuration you draw. Part of why it's so frustrating to prove
so each triangle with different colors has an in and out door
and is necessarily connected to anothe rwith an in/out door
There are configurations that can't be triangulated without tons of triangles all with the same color
In your method would every triangle be 2-1?
no I am saying just triangulate it however, doesn't matter
then look at the corners
let me draw a little pic
Sure
I drew points
did an arbitrary triangulation
then imagined that edges where there are different color vertices on each end are doors
so then you can walk through it
since by design every triangle will have an in and out door, as long as the colors are different
this is not the best example I should have triangulated so there are closed rooms
it doesn't matter, it's just some kind of idea that's probably not helpful to consider
What about a huge configuration such that there are closed rooms that are completely bordered by closed rooms?
that's possible
My other biggest strategy has been trying to show that the unhooking process can't loop on itself
Idk, some food for thought. It's not very deep but it's been really fun to do
good problem, nice and simple to say but annoyingly hard
Hi I have troubles understanding this question
I thought the induction step would be something like 'if P(k) holds, then P(k+1) also holds'
but what kind of induction is it? I'm trying to understand it, but I don't see it. 🙂
MemyselfandI
I'm not convinced a loop can't occur
The process of unhooking crossings could go on forever
MerosityToday
yeah you're right, this is not good enough
Any pair of opposite edges in a rhombus is shorter in total length then the two diagonals, so the total length after "uncrossing" decreases. Since it's monotone, bounded below (by 0), and discrete, it must obtain a minimum, and that minimum must have no crossings.
gaiameansearth:
hello folks, I'm learning an intro to discrete mathematics and I'm having trouble understanding why this set means the set {0,1,2,3,...} base on the book I'm reading. Currently, I'm interpreting the set given above as the set where x is an element of natural numbers such that it is all natural numbers plus 3 which should mean {3,4,5,6,...} right?
@weary tiger
You have a mistake in your statement in "any natural number"
The first part means to consider the set of natural numbers
Now the : means such that, so you are now putting a rule on then elements of your set (naturals so far)
So if the element x is in the naturals and x + 3 is part of the naturals, x is in your set
So here 1 is natural and 1 + 3 is natural, so 1 is in your set
gotcha, so the x + 3 part just means I substitute x to natural numbers (as implied by the precondition) and that when x + 3 is processed it should also be an element in the natural numbers, correct?
Better way to state it is the set of x where x is an element of the natural numbers such that x+3 is also an element of the natural numbers
The set of all elements x belonging to the natural numbers such that x+3 is also an element of the natural numbers
^ much nicer
Anyways if it were me, i'd be anal about it and write:
${ x \in \bN : (x \in \bN) \land ([x+3] \in \bN) }$
Abhijeet Vats:

ew
Still kinda confused why 0 is there, but I guess the book is including it
$0\in\bN$
CaptainLightning:
this is not arguable
thank you @last sigil && @sleek swallow
Sure
shit now I can't argue with that @glossy adder
Hello,
How is that ~P is true? i mean woudn't it make more sence if it was the first one? Since it would make P and Q be true, and therefor the first implication true, and since P is true R is true aswell.
P & Q wouldn't be true necessarily with the first option, btw
P would definitely have to be true
but either of Q or R could be true
Anyways, if both Q & R are true, then the conclusion is true. That's pretty easy to see.
If Q is false and R is true, then you have the entire conclusion being true by ex falso quod libet.
If Q is true and R is false, notice that your entire antecedent is true but your consequent is false. That is, P -> R is false but the antecedent is true by virtue of P and Q being true.
Now, suppose that not(P) is true. Then, P is false.
If P is false, then P and Q is false. If P is false, P -> Q is automatically true by ex falso quod libet. So, the truth value of the antecedent, whose truth value, mind you, only depends on not(R) and Q, is inconsequential to the truth value of the entire implication. Hence, the conclusion is always true when not(P) is true.
@slender skiff Ask questions if I haven't been crystal clear about what I've said.
Im not sure how you got to the conclusion that Q is false if P is false?
there is no implications for that?
Huh where?
"If P is false, then P and Q is false"
Yea that's correct. A conjunction is true only when both propositions are true.
Since P is false, P and Q is false. Q can be either true or false on its own.
Yeap. Look at the argument I've made.
So, not(P) is true. Hence, P is false.
If P is false, then P and Q must be false.
Hence, the truth value of the antecedent is only dependent on that of not(R) and Q
Now, if P is false, then P -> Q is true, regardless of the truth value of Q. So, the consequent is true. You have an undetermined antecedent and a true consequent. Hence, the undetermined antecedent does NOT affect the truth value of the entire compound proposition.
ex falso quod libet is the principle that you can prove that any given proposition is true from a false premise.
ah
Something that's 'true by default' would be more appropriately described by the word 'tautology'. So, a tautology is a proposition that is true regardless of the truth values of the elementary propositions that form it.
Understand everything?
🙂
With logic, always try to break things out into smaller arguments. That will help you quite a lot. Actually, that's a strategy that works for math in general as well.
Hello, how is nr 3 the answare? dosn't c have 3 degrees? my definition of degrees says "Equals the number of edges that are incident on v, with an edge that is loop counted twice."
and im reading that "A simple path is a path with no repeated vertices." and "A path in a graph is a sequence of vertices connected by edges, with no repeated edges."
so if a simple path is a path with no repeated vertices how is the 3 answare true? since the only way to get a length of 4 from a to e is to take the loop on a, which means that it is repeating a.
Let's go through each of the statements, from "truest" to "falsest":
D is obviously true, there is a bd edge.
B is also certainly true, but you have to remember a loop counts for 2 in the degree computation.
A is true, here is one such path: a - a - a - d - e
C is not true. One way to see this quickly is that there are only 4 vertices in the connected component containing a and e, so the longest possible simple path in that component is length 3. So there are no simple paths of length 4, much less one that starts at a and ends at e.
What does E notation mean?
Abhijeet Vats:
"E notation"?
Im a noob at descrete, im just starting to learn it and idk what EURO symbol means
$\in$?
Abhijeet Vats:
Is that what you're referring to?
ye
That's the 'belonging' symbol
please elaborate
So, for example, if $x$ is an object and $S$ is a set, then we say that:
$x \in S$ if x belongs to S.
Abhijeet Vats:
so x is in S
so like an array
ye
Array kind of implies that they're arranged in an order. Sets do not have to be ordered.
Well, it's used quite a bit in set theory because you're always talking about objects and sets and objects belonging to sets.
yeah, $\in$ can be read as "is in"\ or "belongs to"
Ann:
thanks
It's useful as a notational shorthand, i suppose
Yes, but why is it useful information, couldnt u just say its some variable
me?
yes you
oh
Lmao i can't be asking Ann right?
Yes, but why is it useful information, couldnt u just say its some variable
what are you talking about here
What do you mean by 'couldn't you just say its some variable'?
Why use the notation, it hasnt been defined, so couldnt u appose is as some variable such as, x,y,z
huh
Well, you're not wrong
lol
The notion of belonging technically is primitive in set theory
Im difficult
set membership is the most basic relationship out there
Ye
like
"this object is in this set"
is used overwhelmingly often in math
often enough to warrant its own symbol
Give me a simple example please using the notation and i will explain more intuitively
Yeah, simply COULD u say, A is all even integers
A is the set of all even integers.
so yes
Okay, see, you could just say that 18 is an even integer in that situation
what's your point

However, you could not properly talk about the existence of, say, the empty set without the 'belonging' relation
I havent got a point, its my interpretation of understanding the symbol
you sounded like you were arguing against something
∈ is in some sense similar to = or < or > as a symbol
it's a relation symbol
meaning it connects two objects
and the notation as a whole, like "x ∈ S", is a statement
which can be true or false
Let A be any given set. Then, the empty set is just:
$\phi = { x \in A: \lnot{x \in A} }$
Abhijeet Vats:
^That's something you can only get if you introduce the 'element' symbol
also phi is not the symbol for the empty set
Sorry, was just trying to give an example
it has its own symbol
"\phi"
So, would contain consecutives and sequences , but in it couldnt contain a random integer
Lol fuck it
oh my god
So, would contain consecutives and sequences , but in it couldnt contain a random integer
what?
no
no like look
vladislav
a set is just a collection of things
like
without getting into all the formalisms
yes, im overcomplicating things.
(laugh)
the idea is so general it can take a while to grapple with
but like
the only thing that defines a set is what's in it
I understand it, i just want to understand, now, what u can and cannot within the set
E
??
bruhh, im to ignorant
You mean determine when an object belongs to a set?
no @sleek swallow
Then?
You said that within the set, there can contain : all even integers including "18", or, all prime etc.
bruh get a discrete math book and give the set theory section a read
no
vladislav
there is no such thing as "the set"
wtf am i on about then
YOU TELL ME BRUH
please
it's quite an abstract concept yes
Ive read one chapter on this lol
Just go back to your textbook and read it again
give that chapter another read
^
define set(s)
Informally, a set is just a collection of objects. The objects are the elements of the set.
Very naively, that's what you can use as a basic definition
Let x be an object and let S be a set. When x is an element of S, then we write $x \in S$.
Abhijeet Vats:
That's all there is to it.
yes, so how was i wrongly using the word set
you were talking about "the set" as if there's one single mathematical object out there named The Set™️
So, E is "belongs to/ apart of"
Give that chapter another go. Then, ask questions if you're still confused.
Then have your use of phi as the symbol for the empty set be made fun of
then your use of the definite article "the" was inappropriate
...
Abhijeet Vats:
ugh
x is an object, S is a set
_<
x belongs to S
nonononono
That is a proposition that literally reads 'x belongs to S'
_<<
how do u wrote it like that ^^^
there's a bot here
Oh the element symbol? \in
thanks
which uses a certain markup language called LaTeX
in which there are commands for various mathematical symbols
and other things
it'd take too long to explain
No, its fine, I understand now. Thank you @stray reef @sleek swallow
Sure
I understand, to an extent lol
.-.
I don't blame you, it's not easy stuff.
I dont study this stuff at school yet, but I just want to know it
Certainly not if you don't have some propositional logic to assist you with learning it.
You learn it on your own?
ye
That's wonderful!
Ive just decided to work on it today
Continue doing it, it's very cool and interesting stuff
Recommend any website?
I'd recommend working on propositional logic a bit before you go to set theory.
I mean I use a few, but im naive
Introduction to Mathematical Thinking by Stanford on Coursera
Try that, just to get yourself introduced to basic propositional logic. Then, set theory will become easy to grasp.
Certainly. You'll get a good grasp of what a proposition is, what a quantifier is, what a logical connective is and what the laws of propositional logic are.
^^^ with Keith Devlin?
Yes.
Thanks
I generally dislike content made by american creators but this is one that i can recommend, because it's good.
lol, i dont usually watch math lectures but ill give it a go!
I'm not in a university so I can't speak of math lectures in general. These ones don't have a lot of material packed into a 50 minute class.
so it begins...
Rather, they are just trying to introduce you to basic logic. Basic logic is actually very easy.
Is it a good connection to other maths?
I'm probably gonna get pranked for this but i feel learning propositonal logic properly will lead to a better understanding of other things in math.
Nope.
Havent started or not going?
I have not yet started. I will be going next year.
so u doing A levels? Or already finished
If Ann has better advice on how you should approach your basics or if anyone else has any other advice, then you should listen to them. They are in university right now.
I finished IB in 2017. I'm in the military at the moment but i'll be getting released soon.
Compulsory military service
I'm not even close to becoming a mathematician.
I'm actually very crappy but I'm trying to get better.
Thats good
That's why I told you to listen to the advice of the uni students if they're gonna give any. I can give my 2 cents but that isn't worth anything, coming from someone like me.
I mean, im still in secondary school. But i want to pursue physics or math. Not sure yet, both very interesting.
Thanks for the talk @sleek swallow
It's admirable that you're learning this on your own. Keep your interest alive and pursue what you want in uni.
Not a problem at all.
Does this have a closed form? $\sum_{k=0}^{n-1}\frac{(n+k)!}{k!}x^k$
Merosity:

oh nevermind I think I got it, I must be blind
https://en.wikipedia.org/wiki/Menger's_theorem#Short_proof When they define what an AB-connector is, it should say internally vertex-disjoint instead of vertex-disjoint, right?
@obtuse lance What was it? The open upper bound makes it complicated



no I didn't get it, but it turns out it doesn't matter for what I was doing since I left out terms in a preceding recurrence relation that led to those coefficients
Combinatorics: 46 cards numbered from 1 to 46. You have to choose 11 cards. What's the chance of having number "1" in one of those 11 cards. 10C45/11C46
Would that be the right answer?
no because that's 0/0 lol
you might have been looking for 45C10/46C11
...which should simplify to just 11/46
yes
er
no you fucked up again
45C10/46C11
if you're using the choose function, most of the time your second argument should be smaller
Yep, thanks.
And another thing related to combinatorics. Have to choose a number from 0-98 (including 0 and 98). Event A = "Divisable by 3", Event B = "Divisable by 2". Proof formula for independent events is P(A) = P(A|B) => P(A) = P(A and B)/P(B). Are the events independent? ```P(A) = 32/99 = 0,323(23).
|A and B| = 16, 98/6 = 16.333
|B| = 49, 98/2 = 49
P(A|B) = 16/49 = 0.32653061
Since 0.326 /= 0.323(23) events are related.
Would that be right?
= 0,323(23).
ouch please don't write that
generally don't turn fractions into decimals at all unless you need to round something
anyway
besides that
you are correct, A and B are not independent here.
though "proof formula" is a wording i perceive as sort of weird
If P(A) = 0.6, P(B) = 0.2, P(C) = 0.5. Chance of all events happening, chance of at least 1 event happening., chance of 1 event happening. All events are independent```
I'd assume chance of all is 0.60.20.2
Chance of at least 1 = (1-0.6)(1-0.2)(1-0.5)
Chance of only 1 happening I have no idea.
Perhaps,
P(A)(1-P(B))(1-P(C))+
P(B)(1-P(A))(1-P(C))+
P(C)(1-P(B))(1-P(A)) = 0.46?
For all events, it should be 0.6 * 0.2 * 0.5. For at least 1 event, what you did was find the probability that neither A, B or C happen. So you need to subtract that from 1 and get 0.84 which is the probability of at least 1 event.
Ah, right typo on the first one. You're right about the second one.
But only 1 happening?
Lemme think 😛
I think you're right for part C, i was busy with my own thinking until I saw how you did it
whatsup
can someone help me, im trying to prove that every 3 numbers, n, n+1, n+2 there must be one number divisible by 3 aka 3k
^
they are asking me for doing it direclty
Oh, directly. How silly of us to not consider a direct method
how often do numbers divisible by 3 occur when counting anyways
1/3
weird, so like if you were to count 3 numbers in a row, one of them would be divisible by 3 I guess
That's exactly it though. Consider the case where n and n - 1 are not divisible by 3. Then, n + 2 must be
n+1 not n - 1
my intuition tells me that, but they are asking for some crazy formulation and shit
Oop yes that's what I meant
watch this: assume n is not divisible by three, then n = 3s + t by good old division with remainder
clearly t is 1 or 2
and because of this, either n+1 or n+2 will cause t to be a multiple of 3
qed
this is just mod with extra words tbh
but division with remainder is pretty direct and should be usable
what was it, euclidean algorithm?
thanks you @ivory badge thats a pretty complete answer
hey guys how would i go about converting ab* l b*a into an fsa?
@tawny hollow what have you tried?
yes I know
to construct ab* | b*a it's easier if you can construct ab* and b*a separately, then join them together
wait
what you wrote is different

write what "all the as appearing before all the bs" looks like
the regex I mean
take it one step at a time
so in my regex i should have all a's or all b's?
yeah
so for instance you should include aaab, aaaabb
also aaaaa or bbbb would also be accepted
write the regex for "all the as appearing before all the bs"
if that's what you're answering
those are two examples of accepted strings
but there are infinitely many strings your fsa will accept
yes
tell me why it's wrong
give an example of a string accepted by:
that would not be accepted by ab* | b*a
babab would be rejected by both
now you're on the opposite end haha, those would both be accepted by both
make one that's only accepted by
https://cdn.discordapp.com/attachments/496785905474994186/662635870049927178/unknown.png
but is NOT accepted by a*b | b*a
maybe the concept of what an FSA does is not clear
imagine it's a little machine, you give it a string, and it tells you "yes" or "no"
can you do VC?
depending on if it matches one of the possibilities
sorry can't, I'm going to be going soon
oh ok no worries
11 questions. Student knows only 2. Stundent has to randomly pick 3 questions. Probabliliy of knowing atleast 1 question? ((2*1*9)+(2*10*9))/11C3
So with 11C3 the answer should be right?
The denominator will be 11C3, because that's the total number of ways for choosing any 3 questions from 11.
Think about the numerator now
So that's wrong then, eh..
(2*1*9) Would be. 2ways to pick known * 1 way to pick known * 9 ways to pick the unknown.
(2*10*9) 2Ways to pick known * 10 ways to pick unknown * 9 ways to pick unknown.
That sounds like variations.
Shloud ve been 11A3?
Uh try Fundamentals of Mathematics by Bernd Schroder
Hey! Any tips on what i should do know? i dont see how i can get a function with the same variable to be a function with 2 different variables.
uh 
what on earth is that
I can see a quantifier in there, some letters that, presumably, are variables and the predicate R
lol
no u
no u
is that jape?
no u
@slender skiff But that one with the two variables is only the premise.
If you can prove A, then you can also classically prove B->A for any B.
Hello, Im sitting with this problem, I know that I need to use conditional probability, but I really don't see what A/B is and P(A)/P(B) is. How would i go about determining this?
@slender skiff have you heard of the bayes theorem?
@slender skiff Try starting with something concrete, like a filesystem with 100000 files.
and then calculate the number of each type
I'm pretty sure this is straightforward application of the Bayes Theorem
yes it is
but intuition for Bayes may be easier explaining through an actual population
@primal sun
@reef thistle using that way of thinking made it so much easier
@slender skiff have you got it?
I usually do a branches diagram and that is more often than not sufficient to have a grasp of what's going on
but if it helps, do it!
We have to switch the red and blue wagons using the yellow locomotive
(from my Graphs hw)
The locomotive can pull and push the wagons
At the top is a bridge, the locomotive can go under it but not the wagons
And at the last state we want the wagons to be switched and the locomotive to be back to its starting position
I can't come up with a solution, don't know what the graph is
well there seem to be only four key points here
the current locations of the wagons and locomotive, and the intersection point of the circle rail and the straight rail
Yup, they have defined three areas of the track: east (red), west (blue), and south (yellow)
you also need the intersection as a separate point
so let's call that the center
so we have four points: C, W, E and S, with the locomotive at S, the blue wagon at W and the red at E
Yes but the author says 'We want a solution with fewest moves, where a move is every time the locomotive goes from one section of the track to another' (i.e. the 3 sections)
We shall use State spaces, also
Here each state is a situtation of where the locomotive and wagons are, and when more than one are in the same section then their order also matters
And the graph will 'draw' the state space: the edges are the states, and the vertices are the moves between them
how can I find the DNF of (¬p ∧ ¬q) ∨ (¬r ∨ ¬q) ?
DNF?
Disjunctive Normal Form\
I assume that that's just you writing that as a disjunction of conjunctions?
yes exactly
Okay, so what have you tried?
I know I can write it as (¬p ∧ ¬q) ∨ ¬r ∨ ¬q
Okay, then?
then i get stuck
Well, first of all, how would we typically get the DNF?
well we can use the rules of inference?
to rewrite the statement
I think it might be more fruitful to consider the combinations of the truth values of p,q and r where the entire statement is true
That's, after all, the basis of the proof that any logical statement can be written as a disjunction of conjunctions
A box has 52 balls. 47 are red, 5 are blue. 4 balls are removed from the box. Calculate the probability all 4 red. It's just Binom(47,4)/Binom(52,4), right?
@stray reef Can you confirm that I'm not being stupid?
If there is a probability of 0.075 that something is broken independent, then the probability that 8 of those things being broken from a 110 total is (1-0.075)^102 * (0.075)^8, right?
@stray reef ?
Oh right
Oops
$(1-0.075)^{102}\cdot(0.075)^8\cdot\binom{110}{8}$
This is correct, yes?
defective:
How do I calculate the average if at least like 9 are broken and 140 are made?
I don't want to do casework for that many.
well you can calculate the probabilities for 0, 1, ..., 8 being broken and subtract the total from 1
Lol
otherwise there's kinda no way around doing the sum for values "in the middle" if you want an exact answer
wdym the average
do you want to calculate the expected number of defects given that each item is broken with probability 0.075
110 balls are made. A ball, independent from the others, has a 0.075 probability of being broken.
If more than 9 balls turn out bad, what is the average number of balls that turn out bad if 140 balls are made instead?
Yes
But at least 9 are bad
uhhh
hm.
i mean just going off of intuition it's got to be 9 + 131*0.075 but i may very well be wrong and it's close to midnight
Why 131 * 0.075?
How is the GCD 5, isn't this person using the algorithm in a wrong way? for step 2 arent u supposed to say 309 = 20 * 15 + 9, why did he say 55 = 3 * 15 + 10?
This is what i do:
a = b * c + d
a = b
c = d
And this method works for everything else,
expected number of defects in the 131 that aren't known to be broken @weary tiger
@slender skiff you want the GCD between 55 and 17010, not 309 and 17010, which is what you'd be doing at step 2
okay got it, turns out i was doing it right before, but just got confused for some reason now
@primal sun thanks
alright!
yo
i need help with repeated squaring
i have to calc 3^383 in my head
google doesnt help



i am pretty sure that it would be impossible to do such a thing mentally
do you need 3^383 itself or 3^383 mod something
i know to divide the exponent by 2 then floor to get my calc exponents
then i just tried calculating mod 7 on that
you... what?
Are you allowed to use Euler's theorem
"divide the exponent by 2 then floor" what
uhh
that's
gotta be THE worst way to describe repeated squaring
why not write 383 in binary, compute 3^(2^k) mod 7 for as many k as needed, and then multiply the required ones together to produce the final answer?!
i have no idea how to do that
which part do you have no idea how to do
if i had to calc 383 in my head into binary
i mean obviously i'm not expecting you to do that mentally
are you being held at gunpoint and being yelled at to compute the value of 3^383 mod 7 in your head? or what
its an exam without help
but surely you have some paper with you
right
converting 383 to binary isn't an insurmountable task as far as hand calculations go
has anyone done finite state automata ?
a) and the solution to it
no
just no
is there someway to get out of this course during this lifetime?
huh?
the fact that I don't even know why they are stating the obvious
which is also irrelevant
they're showing a counterexample to transitivity.
it is 100% relevant.
IF your relation was transitive, THEN from (b,c) ∈ R and (c,b) ∈ R you could conclude (b,b) ∈ R.
do you agree?
not really grallak
@unreal berry
could also conclude (c,c)
ok yes sure
you could also say "(c,b) ∈ R and (b,c) ∈ R but (c,c) ∉ R, therefore R fails to be transitive"
but do you or do you not agree with what i said above
IF your relation was transitive, THEN from (b,c) ∈ R and (c,b) ∈ R you could conclude (b,b) ∈ R.
do you or do you not agree with that
is a function not transitive if I can find a loop or just a parallell?
FUNCTIONS can't be transitive. RELATIONS can.
and what is this talk of loops or parallels in the first place??
ANSWER MY QUESTION.
lol
DO YOU OR DO YOU NOT AGREE WITH THE FOLLOWING STATEMENT:
IF your relation was transitive, THEN from (b,c) ∈ R and (c,b) ∈ R you could conclude (b,b) ∈ R.
because b,c c,b looks like a parallel
DO YOU OR DO YOU NOT AGREE WITH THE FOLLOWING STATEMENT:
IF your relation was transitive, THEN from (b,c) ∈ R and (c,b) ∈ R you could conclude (b,b) ∈ R.
@unreal berry answer my question.
I see the second half, but I do not see why the first part is true
IF your relation was transitive based on something which I am not sure can prove something is transitive
a transitive function is 1 goes to 2, 2 goes to 3, 3 goes to 1 so 1 goes to 3*
this is not a function man
NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO!
its a Relation
YOU DON'T EVEN UNDERSTAND WHAT A TRANSITIVE RELATION IS, THEN!
NO WONDER YOU'RE CONFUSED!
YOU DON'T KNOW WHAT IS BEING TALKED ABOUT, DESPITE HAVING CONVINCED YOURSELF THAT YOU DO!
I never said I was convinced of anything
(a,b) means a is related to b
if I was, then I wouldn't be here
u know this right

that IF a relation called R is transitive
AND (b,c) ∈ R, AND (c,b) ∈ R
THEN (b,b) ∈ R
do you understand this or not
yes or no
give me one word
do you understand this, yes or no
don't ghost me now, i can clearly see you're online
...
if you need some time then say so explicitly
then no
sigh
ok
we call a relation transitive if and only if, whenever (x,y) and (y,z) are both in R, (x,z) is also in R.
this is the definition of a transitive relation.
do you understand this. yes or no.
so if both xy yx are in R it's transitive?
(x,y) and (y,z) are both in R, (x,z) is also in R.
dont miss the last part
managed to OMIT THE KEY FUCKING WORD
CONGRATU
FUCKING
LATIONS
YOU'VE CONTEXTOMIZED THE FUCK OUT OF THE THING I WROTE
JESUS FUCK
YOU MUST'VE TRIED REALLY HARD TO DO THAT
chill ann 😂
whats the problem
the problem is the problem
as it's not clear what it is, how it is solved, and why it matters
whats the problem
lol
I suppose the correct definition of transitivity in relations
I think
in layman terms
'we call a relation transitive if and only if, whenever (x,y) and (y,z) are both in R, (x,z) is also in R.
'
go ahead
if you have a relation R such that:
(x,y) is in R and (y,z) is in R implie that (x,z) is in R
we call R transitive
thats it
yeah
he doesn't understand the word "implies"
makes sense
XD
and grall just had to check if the following property hold on that set
you can just cut out the middle man
