#discrete-math
1 messages ยท Page 17 of 1
hmm
Do you think that $p \wedge \top$ can be simplified?
RSB
to just T ?
Is that true for all p? What if p is false?
Sounds like recognition ๐
probably should start with demorgans law on this too right?
like distribute?
I just mean, if you see a thing with parens that's negated, use demorgan to move the negation inside
like $\sim(p \wedge q)$ to $(\sim p \vee \sim q)$
RSB
The latter has more negations! But they're inside the parens instead of outside
$$ \sim p \land (q \lor \sim r)) \land \sim q $$
Pingu
correct first step ?
or should I actually distribute the ~ into the (q v ~r) first
before doing the one on the outside
Either way I think
wait am I just done here ?
But be careful with that demorgan
because it looks basically the same as the one on the right
shouldn't you get or not and for the first connective?
Pingu
$$ {\sim}p \lor q \lor {\sim} r\land {\sim}q$$
Pingu
maybe I messed up somewhere
Are you sure you have the question right?
Try filling in p=false, q=true, r=true
Then I think the left side of your question evaluates to false (because it has an "and not q" at the end)
But the right side evaluates to true because (~p ^ q) is true
so they're not equivalent
oh
let me see
oh right
they aren't
so when they aren't logically equivalent only way to show that they're not equal is truth tables?
Ah is this a 'show they're equivalent OR show theyre not' problem?
Like "determine whether they're equivalent"
Aha I see
I guess I just gave you the answer instead of leading you to it, sorry
I can show you how I got there though
Which is that I tried to prove them equivalent using demorgan and the same techniques as before
And if you do that, you'll come down to $(\neg p \wedge \neg q) \vee (\neg q \vee \neg r)$
RSB
Which you'll notice is a little bit different than the original right hand side, so from that I said, let me find a way to make one true and one false, since they only differ in the first clause, I want to make the second clause false (hence r true), and continued with that kind of reasoning
hmm
I believe you guys deviated from the right answer at this step ^
T or !r is indeed just T
that yields that ||both statements are logically equivalent||
oh wait nvm
different problem now ๐
lol
yeah, got confused, my bad
np
This is an interesting question
I would say, it's enough to show a single row of the truth table that differs
That's what I constructed above
But the problem statement seems to want you to write out the whole thing
IDK, if I were asked that I would probably just write the single row of the truth table that shows they are inequivalent and write "..." above and below
like this is what I did for the ques before this
but I really dont wanna do another table lol
You know the graders better than I do
All I can say is, from a mathematical standpoint, one row should be enough
but for this question is it even possible to use equivalence laws to show that they aren't equal?
Not reeeeallly
or for any two statements if they aren't equal wouldn't you always want to use truth tables and not equivalence laws
hmm
Like you can show that $p$ and $\sim p$ are not equivalent by showing their conjunction is equivalent to $\bot$
RSB
Well, hang on, there's another way maybe
They're not equivalent because there's some values you can substitute in for p,q, and r so that they differ
You could plug that in directly, then use "equivalency" rules to reduce one down to $\top$ and the other to $\bot$
RSB
That sort of answers the question
And sort of uses equivalencies
Again, if I were grading I would give that full credit, but, you know your course staff better than I do
What kind of class is it
university or high school? for math majors or for everyone? how big?
uni cs
discrete structures
id say only cs and math majors take this if not only cs
you could ask I guess
this is due tn so ig ill just play it safe and do the truth table
"hey professor butthead, do you really want the whole truth table, or is just a row enough"
well you could do the whole truth table and also ask
the thing with truth tables I'm supposed to do them like this
so it's even longer
smh
ah
well
you could write a latex macro that you just fill in the formula and it will make the truth table in that format for you
that will certainly take you much much longer
but it would be more fun
i'm mostly joking
lol
you could do that in latex but it would take forever
wait for what values did you say they were not equivalent?
I can just test that first and stop
yes that's what i'm hoping you can do, leave the rest blank
I just need to know how to create the table now
because I just copied these tables sfrom my professors tex file
and filled them in
incidentally, math and cs people write truth tables the way you do
my father studied formal logic as a philosopher and they start from all trues on the top to all falses on the bottom
(which is terrible)
he was actually kind of disturbed to find that we do it "backwards"
but we do it the right way, imo, because that left hand side is counting up in binary
BUT it was a philospher, not a mathematician, who invented the truth table!
but...
i'm rambling now
just kinda need help w making the table
sure, why don't you show me what you've tried already over in #latex-help
๐
can someone help me with breaking the problem down
could someone help me with
hey guys i found thesis papers entitled Optimal labelling of their respective chosen graph, i cant check the thesis papers. Iโm wondering what is the definition of Optimal labelling in graph theory?
hi anyone know what this is pls
For the right sum, you can develop the five on all terms, so you would obtain the sum of 20-5k, and since both sum are from one to n, you can add each k-th term of the first sum to the k-th term of the second sum.
is there a way to prove this? or is it by definition?
since D is the domain for both predicates, i believe that they're equivalent...
The left side does imply the right side, but the converse doesn't generally hold. So they're not equivalent
but the conditional does hold, right? so wouldn't it be equivalent since we're only considering the conditional not the converse?
I'm not quite sure what you mean.
$\forall x(P(x)\to Q(x))$ does imply $(\forall x P(x)) \to\forall x Q(x)$, but the two are not equivalent
Neverbloom
they both do have the same truth value given the domain D, right?
No, suppose D = {0, 1}
And suppose that:
P(0) holds, but both Q(0) and P(1) don't hold
i meant if the LHS is true, then the RHS will also be true and if the LHS is false, then the RHS is also false
right?
so they're equivalent i believe
if the LHS is true, then the RHS will be as well, yes. But the situation I explained above gives a counterexample to your other claim
yeah i don't really understand that part
can you explain that in more detail?
anyone here familiar with harmonious labelling in graphs?
If the domain consists of two elements (namely 0 and 1) and we know that
P(0) is true, Q(0) is false and P(1) is false (the truth value of Q(1) won't matter for our argument, so let it be whatever you want), then what can you say about the following propositions:
- P(0) -> Q(0)
- โxโD [P(x) -> Q(x)]
- โxโD P(x)
- [โxโD P(x)] -> [โxโD Q(x)]
Notice that (2) is the left side of your proposed equivalence and (4) the right one
the statement (1), (2) and (4) would false then?
(1) is false (why?) and that (2) is also false follows from (1) being false (why?)
(4) is actually true, but it's worth thinking about (3) first as the proposition (3) occurs in (4), namely as the premise of the implication
right, (3) will be true, but how is (4) true?
(3) will not be true
oh right, my bad ๐ญ
so is (4) true?
i don't think so but now i'm kinda confuesd
P(0) is true, but P(1) is not, so P(x) can't be true for all x in D (as it isn't true for x = 1)
Well what you can say about the truth of the implication A -> B when you know that A is false
we can't say much but we take it as true?
vacuously true
now that you say that, does that mean when we have
โxโD [P(x) -> Q(x)]
the value of x in each predicate must be the same right? as in we'll have
P(0)->Q(0) AND P(1)->Q(1)? (i used AND since universal quantifier is a generalization of AND statements)
but it's not the same with (4), right? for (4), we could have
P(0) -> Q(1) right?
that is correct, A -> B will be (vacuously) true when A is false
the idea of writing โxโD P(x) as P(0)->Q(0) AND P(1)->Q(1) (when D = {0,1}) is a good idea, but
the value of x in each predicate must be the same right?
Is not what the connective->tells you, i.e.A -> Bdoesn't mean "A and B have the same truth value"
Oh wait I think I misunderstood what you were trying to say. You weren't claiming that the truth values are the same for each x, but making an argument for why you may rewrite โxโD P(x) as P(0)->Q(0) AND P(1)->Q(1)
yeapp
Not quite, rewriting [โxโD P(x)] -> [โxโD Q(x)] would lead to
[P(0) AND P(1)] -> [Q(0) AND Q(1)]
i see
so the (4) will also be vacuously true then?
since the hypothesis is false
namely, P(1) is false
Yes
So you were claiming that
LHS false => RHS false, or equivalently (think about contrapositive if that was covered in your class)
RHS => LHS
but we found an example where the RHS is true and LHS is false
LHS will be false when x=0?
x isn't a free variable (on either side) in your original question so that doesn't make much sense
What you were claiming was that
If [โxโD P(x)] -> [โxโD Q(x)] holds, then so does โxโD [P(x) -> Q(x)]
But our example (with D = {0,1} and truth values of P, Q as before) made [โxโD P(x)] -> [โxโD Q(x)] true and โxโD [P(x) -> Q(x)] false.
i see
so they're both not equivalent then
[โxโD P(x)] -> [โxโD Q(x)] this means (P(0) AND P(1))->(Q(0) AND Q(1))
while โxโD [P(x) -> Q(x)] means P(0)->Q(0) AND P(1)->Q(1)
they aren't equivalent; summing up:
If โxโD [P(x) -> Q(x)], then [โxโD P(x)] -> [โxโD Q(x)]. That direction works out just fine (and is a good thing to know about)
But we generally do not have that if [โxโD P(x)] -> [โxโD Q(x)] then โxโD [P(x) -> Q(x)] (as we found a counterexample that makes the premise true and the conclusion false)
alright, thanks a lot! that clears up a lot of things
are we supposed to substitute here?
I think so, you might try forming the function E^2(f) first to make sure you understand what's going on.
In how many ways can you choose eight coins in a piggy bank containing 100 identical one hundred coins and 80 identical five hundred coins?
would someone be able to explain vacuous logic to me?
to get specific, the problem I've encountered this on was figuring out the properties of the relation where it's just the empty set
I don't quite understand additively indecomposable limit ordinals
what exactly does the definition mean?
This definition? https://en.wikipedia.org/wiki/Additively_indecomposable_ordinal
Sure. What is your question?
Although "harmonious labelling" is really context-specific
so if a number only have 3 divisors, would the only numbers that satisfy this have be a perfect square? 1 * itself and SQUARE_ROOT * SQUARE_ROOT which would make the divsors 1, SQUARE_ROOT and itself
it has to be a square, yes
you can limit it even further
not all squares have 3 divisors
eg 16
basic properties of real numbers
if a is not zero then a^(-1)=1/a exists and is a real number
R is a field
Z_26 is the integers mod 26
(Z_26)^m means that you have the cartesian product of that with itself m times
so m coordinates where in each one you are in Z_26
tbf the definitio nof P and C were confusing
it says they are the set of all plaintexts and cipher texts
what does it mean the set of all plaintext
well the set that contains all possible plaintexts
the plaintext can be so many things though
and?
how can it be encoded with just alphabet
do you know the caesar cipher
yeah they mentioned that
if you have a word ABCD for example, it shifts each letter by a fixed amount. eg 3 letters to get DEFG
sure
the examples for the encryption make sense just dont get the notation really
like this is the vigenere cipher
yes
math likes numbers over letters, so instead we use those
so instead of ABCD we write (1,2,3,4)
and then shift to (4,5,6,7)
what does it mean to raise the power of plaintex by m
well yeah in caser it aint
A^m means the cartesian product of A with itself m times
do you mean RSA or something
I'm trying to understand from the original image i sent
what the notation even means
its describing the vigenere cipher which i understand but dont know what the maths is saying exactly
but yeah
do you know what cartesian products are
vaguley, its just the set of tuples i think
of length m
in our case, yes
if our key is RPI , plaintext HELLO, it gets encrypted using RPIRP etc
but i still dont get what it means the set of all plaintexts
that doesnt mean anything
hello is not length m though
m=5
well in that notation the key and plaintext need to have the same length
so RPI wouldn't be a valid key
RPIRP would be tho
but what does the notation say about RPI then
or the phrase that repeats
thats whats confusing
nothing in this notation says anything about keys that repeat
RPIRP is a key
RPI isn't
AGUAT is a key
all 5 letter words are keys
what does it even say then if its not describign the vig cipher
how does it relate to the graph though
what graph
where you map 2 letters to 1
what
thats the cipher
if we have plaintext HELLO
key RPIRP
we read H and R > obtain a letter which is the first letter of the ciphertex
so HELLO gets translated to (8,5,12,12,15) and RPIRP gets translated to (18,16,9,18,16)
then you add them mod 26 in each coordinate
so (26, 21, 21, 30,31) = (26, 21, 21, 4, 5) which gets translated back to ZUUDE
(x_1, x_2, x_3, x_4, x_5) = (8,5,12,12,15)
(k_1, k_2, k_3, k_4, k_5) = (18, 16, 9, 18, 16)
okay so each of those letters + the corresponding key
so RPIRP is acc denoted as being a set of keys
not a single key
surely not it says its a set
no
curly K is the set of all keys
but each key is just a single tuple
not a set on its own
all keys of exactly length m
it says k1, k2, km so it would have 3 keys if we have length m
does not mention the length tbf
thats so confusing to say
what so K is the set of all keys length m, but does not mention anything about what the characters of the key can be
regarding the numbers they are
yeah that is bad notation
the plaintext is length m and 0 - 25
it should also say K = (Z_26)^m
but then the guy mentions further that a phrase is used generally
such as RPI
which repeats over the plaintext
from the phrase RPI you can generate a key, here RPIRP
how would that be expressed formally
but RPI is not a key in itself
yeah sure
that would be slightly painful to express formally
but two people need to know the letters being repeated
but yeah so how does modular 26 come into all of this
key_gen(a1, a2, a3) = (a1, a2, a3, a1, a2, ..., ai) where the ai is whatever you end up with
stuff like that
like I did here
with the numbers over 26 I reduced them
take a letter from original plantext > read the key > use that as the offset
repeat for the entire keystream
yes
but yeah thats fair the notation doesnt technically need to mention how the key works
just that its length m
its implied that its in Z_26 but yeah surely should be clear about that
but i guess it techncially doesnt need to be 0 - 26?
if the key was (1255455,356356,35757) it would still work for (5,14,23) lmao
yes
okay yeah and obv Z_26 is like
(0,1,2,...,25,0,1,2, ...)
or 1 26 whatever
and (Z_26)^m is like {(0,1,2),(0,1,3),(25,21,0), ....} etc
which is finite , but surely if it wasnt modulo this set with m is infinite
obv
what kind of proof should I use for this? I've tried doing contradiction, but I've reached a case that I don't know if I can prove
yes
you could show it's monotone
and calculate the limits for x-> +- infty
as in strictly monotically increasing? And if I do that, why would I need to show the limits?
ohh hey there, im wondering if thereโs an easy way to label a graph harmoniously. Iโm working with Z mod 20 graph n=11
hi, i've got a question about predicates. when can we say that two predicates are equal and when can we say that two predicates are logically equivalent?
can someone explain this proof for me? I dont understand it.
the question is Show that
0 + a โก a + 0 โก a (mod n)
for all a โ Zn
I do understand the thing on top (so the thing before kn+a โก a+kn โก a)
but i am lost when they use the division algorithm.
the way I tried proving it was different. I said that since 0+a and a+0 give the same remainder a they are congruent. (a < n)
The word "predicate" is used in a number of contexts, for slight different purposes. In some of these contexts it is useful to distinguish between "equal" and "equivalent", in others it is not.
In general "equivalent" would mean that the two predicates have the same truth values on all inputs.
It varies more whether one needs to speak about a more discerning kind of "sameness" where we might want to consider two predicates to be different "things" even if they agree about their answers.
For example, in a context where a predicate means a concrete string of symbols, "x>5 or x<3" and "x<3 or x>5" are plainly different strings of symbols, but they will be equivalent when interpreted for their meaning.
Yeah, on the face of it, this proof makes little sense. If ___ == ___ (mod ___) is a relation between three concrete integers (as the notation strongly suggests), then the only proof a + 0 == a (mod n) needs is to say that the left-hand side a+0 is the same as a according to plain old integer arithmetic, and we hopefully already know that a == a (mod n).
I think what the author must have been trying to show was [a] + [0] = [a], where the + is now an addition operation defined on equivalence classes modulo n, and the point would be that the equivalence class [0] is a identity for this new addition operation. But then apparently they got confused by their own (lack of) notation or something.
But even in that case, the proof is rather strange. Speaking about kn seems to be pointless if you have proved that the outcome of addition of equivalence classes is independent of which representative of the class you calculate with. And if you haven't proved that fact yet, then I think what your screenshot does is not enough to work around the lack of it.
thanks! I did find it confusing. For the question"Prove that there is a multiplicative identity for the integers
modulo n:" a ยท 1 โก a (mod n). is it enough to say that for a*b โก a mod n this is true for b=1 because LHS and RHS will give same remainder?
It should be enough, if your arithmetic operations have been defined in a sane way.
And you could even say: because LHS and RHS are the same number and therefore of course have the same remainder.
yeah and i could add that its gonna be" a " because a<n (because a is an element of Zn)
That is not necessary for the proof, though.
but shouldnt the remainder be a?
It doesn't matter what it is. We could equally well say, for example 17ยท1 == 17 (mod 5) -- and that's true because the remainder of 17 divided by 5 will surely be the same both times we do the exact same division. We don't need to actually figure out what that remainder is in order to be sure it won't change.
P and Q are Logically equivalent if P implies Q and Q implies P
DarQ
Now I'm not sure if I've ever heard of a notion of equality of predacates
This could very well mean they're equal, for the record
But it's prolly just some semantic jargon non sense that you needn't worry about
is my proof here enough? I canโt tell if my proofs have enough substance unless theyโre more direct
I donโt know if I can readily claim my โif, thenโ statements. But if I need to show more work to make those claims, then I donโt know how to do it other than a direct proof, which I had gotten really far on, but there was one flaw I didnโt know how to fix
If x = y, then f(x) = f(y)
This is true for all functions, and does not show anything about whether or not f is one-to-one.
I cannot tell what you're proving here.
It would be true that if f is strictly increasing, then it would be injective, but you don't seem to have proved that either.
I like the drawing tho :)
I was trying to make the statement to show the strictness based on the definition, because it felt the need to specify that fact in there
lol thanks ahah
OK well you have stated that it is increasing, but not strictly
and you have not proved it
do I need to show it algebraically?
I'm not sure why you're defining the relations P and Q when you already have the symbol <
You need to show it.
because in my lecture notes monotonicity is defined by partial order relations
and < is not a POR
But <= is 
correct, which is why I used it
But you redefined it as Q
which is exactly why I'm saying any of this

I tried proving it with a contradiction yesterday
Sorry sir
it went really well except for one flaw that I couldnโt figure out
I wasnโt using it as the symbol to represent any specific relation
I was just trying to show the relation between two elements as <=
so what direction would you suggest?
Iโm very inexperienced with proofs so I donโt know what is considered obvious and what isnโt
i.e. how much I should show when it feels apparent. 9 time out of 10 the fact Iโm trying to prove is clear to me, but I donโt know how to represent my logic mathematically or explain it
the flaw here is the case where the two pieces in parentheses add up to zero, but donโt equal zero, so I donโt think this is enough. But the parentheses singled out are really simple to show x=y
Is there a specific name for a graph or path/circuit that is both Hamiltonian and Eulerian?
A Hamiltonian eulerian graph
Such a path is called "all the way around the cycle graph",
gcd(a, b). the question is what can u say about gcd(a, b)
as+ bt = 2?
would the answer be gcd(a, b) =2?
and gcd(a,b) would also divide 1.
as+ bt = 6
and for this gcd(a, b) would mean it divides a b and 6 (and 1, 2, 3)
but in the answer sheet its written that gcd(a, b) = 1, 2, 3, or 6. But isnt gcd the greatest common divisor? so its just 6?
gcd is the greatest common divisor for one (a,b) pair
you are going through all possible (a,b) pairs that satisfy the equation and looking at their gcd
ahh ok thanks
Pingu
nvm lol
Does anyone have any ideas?
an implication $A \to B$ can always be rewritten in the form $\neg A \vee B$ (read as ``(not $A$) or $B")
rob
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
Then negated with de Morgan's laws
The reason is because "if A is true, then B must necessarily also be true" can be restated as "A can't be true when B is false"
or $\neg(A \wedge \neg B)$
rob
are you talking about the quantifiers? (upside down A and backwards E)
the ANd and the conditional
oh
for all needs implication and there exists uses and
let me give example
if you have forall x (P(x) /\ Q(x))
that is literally saying for all of the universe, both P(x) and Q(x) are true, which is almost never going to be what you are trying to say. whereas with the implication we are saying: for all of the universe IF P(x) THEN Q(x). So for all of the universe, IF you are a mammal THEN you have hair. vs using /\ would be all of the universe is a mammal and has hair
to be clear, I'm a student in discrete math so if you are looking for a more polished answer, wait for someone else to explain it but that is how my professor explained it to us
yes
why u ask to ask
i need help with discrete math
just ask the damn question mate
are you fucking with us on purpose 
? no
im srry :/ its a genuine question i dont get it?
i thought you cant ask questions in any section
you have to ask in help
which i did
im confused what pi_s actually does tbf
like we have l bits of some string
and it defines a mapping that like jumbles up the character or sumn
but like does the A bits mean like the bits in unicode form?
or am i just thinking about it wrong way like it just takes some arbritary stream of bits with an invertible substituion operation for decryption
Any thoughts? I got 45โฆ
Anyone know what this is asking
someone german? jemand deutsch?
Just ask your question and do your best to translate it into English
for this one why cant I just fix 2 spots, leaving 6 open hence 2^6 choices then multiply by the number of ways to permute 2 things in 8 spots?
you will double count a lot
Small example: if I look at binary strings of length 3, then 111 is counted three times by your method.
how would I fix this?
Trying a different method
is the answer 2^8 - 9?
yup
ok thank you
what do they mean by cannot fold upon itself?
I have this problem for discrete math II and I wanna make sure that Iโm approaching it the right way and how I would go on from where I stopped if I did do everything else correctly
3^2 is 9 right?
I have a feeling that I may need to use strong induction to solve this one, because of that fact that there can be two cases for p. But at the same time I not sure if I am thinking about it in the correct way. Can someone give me some pointers please?
yeah gonna need strong induction on this one and not in the sense you wrote
assuming all numbers smaller than n can be written in the form 2^p * d, do the following:
- if n is even, write n/2 in this form, so that n/2 = 2^p * d; then n = 2^(p+1) * d
- if n is odd, take p = 0 and d = n.
How is the first expression correct and the second wrong,
why is there a for all x anyway, because if I choose x to be 1
and y also to be 1 in the first and the second case the implication goes haywire.
i used a slightly different approach
No, it does not refer to associativity
I don't know how to explain it better than how they've written it there.
You should try to finish the exercise to discover more about it.
does anyone know about isomorphic graph? im not sure how to think about the last question
when it says "can you tell why?"
It's asking you to think of some feature that distinguishes the two graphs
I suggest you should try to be creative and find one for yourself, then prove that the property you found prohibits isomorphisms.
maybe because theres a cycle and theres no vertex part of the cycle connected to two other vertices?
another question i had, not sure how to break this down
Pingu
for questions involving p implies q like this is it just to think of it in terms of
Pingu
like I just can't fathom it in english
like how does If you follow your dreams, then you will find happiness mean the same thing as Either you don't follow your dreams or you will find happiness
yea no
most straight forward math ive done is till calculus
only gets worse from here
any chance you understand like how does If you follow your dreams, then you will find happiness mean the same thing as Either you don't follow your dreams or you will find happiness
like idk how to make sense of these in my head
lol
I see what you're trying to say I think
like the then doesn't imply casual
but in like the real world if ur talking to someone it does
but that's the weird part abt this ig
vacuously true
can someone help for this, im trying to use the binomial coefficient. or do i not need that
How many pairs can you form with 15 greed and 15 red balls?
I remember there being some special term for converting a forall statement to something else (I believe to โarbitraryโ); is it called something like instantiation?
I feel like my prof mentioned something about when starting with a forall and ending up with a different form of saying it (all in formal writing), itโs called something special.
(It was an off handed remark and it was a few months back, so I canโt remember it very well.)
The idea is that: following your dreams will always lead to happiness, or at least it should always lead to happiness. However, if you donโt follow your dreams, you can choose to be happy or not with that choice. So not following your dreams gives you any outcome of whether you find happiness, the implication still holds. This is equivalent to the โyou donโt follow your dreamsโ. However, if youโre always happy, then it didnโt matter whether you followed your dreams or not because either outcome led to the conclusion that you were happy. This is equivalent to the โor you will find happinessโ
any advice on how to start a proof
im new to discrete math and i follow all the logic i just have a hard time knowing where to start when writing a proof
Depends on the proof
for the last 2 steps am I allowed to do that since a+b is an integer?
I k
In a large marathon, runners start the race in stages. Tim started in group E and ran at a rate of 5.7 miles per hour. During the race he was passed by Lorenzo who ran at a rate of 6.2 miles per hour and started in group H. 5 minutes after Tim started. How far did Tim run before he was passed by Lorenzo?
If the answer is not an integer, enter it as an exact decimal.
What's the answer & how to solve itโ
tim ran 19/40=0.475miles when Lorenzo was just abt to start running. Since Lorenzo runs 0.5miles per hour faster then Tim, lets say that Tim doesn't move, and Lorenzo runs 0.5miles per hour. so Lorenzo ran for 0.95hrs until he passed Tim. so the answer would be 0.475+5.415=5.89miles
Find number of binary strings of length n with w as a subsequence
My solution was total possible - passwords with no digits - passwords with 1 digit.
Correct?
easier said than done
How to go upon creating FA or CFG with certain conditions such as "accept all binary strings with at most one occurrence of 000"
I understand both FA and CFG but creating them with such conditions seems so difficult. Spending way too much time trying to solve these.
Any tips?
Hi there, I want to know, why in (math, CS) absolute value and module (or rest), often called same word?
Technically its modulus for absolute value, and modulo for remainders.
Probably just some historical coincidence
Just like a billion different things are called normal in math
thanks
hey so does anyone know some survey on (x, y) values for the tutte polynomial for different graph invariants?
i have one here that presented five properties, but it sounds like there's a lot more
anyone?
seems like subsequence of fixed length have the same count
but idk how to show that
im looking at SPNs atm and they mentioned this example
why is the key that length but each round is 4 strings of 4 bits of state
like what even is the difference between the key and the key rounds tbh kinda confused
Strictly speaking there's no such thing as "a modulo". When we say something like "38 and 16 are congruent modulo 11", the origin of this wording is not "the modulo is 11", but "congruent when we use the modulus 11". (Modulo in Latin is the word modulus declined in the ablative, or instrumental, case).
does anyone understand cryptography and can explain to me how it works?
i know it's like secret code
That's an extremely broad question.
but how is 26 โก -16 mod 3?
Their difference is 42, which is a multiple of 3.
By subtracting the two numbers?
so we do -16 - 26?
Yeah, though I did it the other way around: 26 - (-16).
and why is there a 3?
That specifies which kind of congruence between 26 and -16 we're talking about.
Any hints on howw to show this without pulling a trick out of a hat?
It's simply part of what's being claimed. For example, "26 โก -16 mod 3" and "26 โก -16 mod 7" are both true, because 42 is a multiple of 3 and is also a multiple of 7. But "26 โก -16 mod 5" and "26 โก -16 mod 22" are both false claims because 42 is not a multiple of 5, and is not a multiple of 22 either.
Note that the "mod 3" is a specification that qualifies the entire "26 โก -16" part of the claim. It does not attach stronger to the -16.
In other words "26 โก -16 mod 3" is not a claim that a particular relation exists between the number 26 and something called "-16 mod 3".
I'm a little confused with some set notation, could someone explain to me the difference
Let $S = {1, 2 ,3, ..., n}$ versus $S_{n} = {1, 2, 3, ..., n}$
phamous
well in the first case they call the set S and in the second case they call it S_n
its just a different name
so do they both mean the same?
presumably in the first case n is fixed and doesn't change, while in the second it can change
well they are the same set, just a different name
whether you count that as meaning the same, no clue
ok because im trying apply the same approach that I saw my discrete math book to another problem, I'm just confused while trying to adapt it
It depends on what you're going to use your definition for.
If you need to have different variants of the set around for different n's, you need to make the n part of the name of the each of the sets so you ca distinguish between them.
for example, the problem in the book is to find the recurrence relation for the set $S_{n} = {1, 2, 3, ..., n}$, where the subsets contain no consecutive integers. So in this problem, we don't know what $n$ is, since it can be any number greater than 2.
phamous
I'm trying to adapt approach to a finding the recurrence relation for 26 letters of the alphabet, where the subset does not contain consecutive letters. For example, ${}, {a}, {a,z}$ are all permissible subsets, but ${a,b}$ is not
phamous
so obviously the set $S = {a, b, c,...,z}$ is fixed.
phamous
...wait, what exactly do you mean by "recurrence relation" here?
ok ill show you have i have, so you have a better understanding what the problem
im just having trouble conveying a certain idea using math logic
If you want a recurrence then that means you're going to speak about both S_{n} and S_{n-1} at the same time (and for this particular problem the neatest solution also speaks about S_{n-2}). So you won't get away with simply calling all of those sets S.
... wait a moment, isn't that just asking for the answer to the previous problem when n=26 specifically? How would there be a "recurrence" if all you're interested in here it the n=26 case?
Can you show the exact statement of the second problem, exactly as it was given to you?
so im trying to use this approach from the book below:
this approach solves the problem for consecutive integers, where n >= 2
im confused because we're saying n is the size of the subset, but then we say n is also an element
its like we're assigning 2 different meanings to n
which i don't understand
well S_1 is just a set, it's not really a subset of anything in particular
ok
S_1 is {1}, S_2 is {1, 2}, S_3 is {1, 2, 3}, and so on
so basically S_n denotes the nth subset
...subset of what?
what it contains is just some elements of S
no there's no "S"
we're just considering a set like {1, 2, 3} or {1, 2, 3, 4}
the subscript n is part of the name of the set
we could have called them A = {1}, B = {1, 2}, C = {1, 2, 3}, D = {1, 2, 3, 4}, but putting the number somewhere in the name of the set is more convenient for when we want to talk about all of them at the same time
Instead of tying to replicate the proof of the situation with integers, I think your strategy should be to apply the earlier result.
Establish a bijection of {a,b,...,z} with {1,2,...26} such that the subsets of {a,b,...,z} you want to count correspond to the subset of {1,2,...,26} you have already counted.
Since there F_26 of the latter, that is also the number of good subsets of {a,b,...,z}.
ok
i wanted to say something like Let S ={a, b, c,... ,z} and their respective positions are p_1, p_2, p_3,..., p_26 such that p_i = s_i.
go from the perspective of the letters themselves
Can someone explain why 5+6+7+8+ ... + 50 is not the same as 1+2+3+4+...+46?
Cant I just subtract 4 from each term in the sequence
imagine you have a group of friends each with some money in their wallet
and you have them all pay you $4
do you agree that the total amount of money shared by them (not including you) would change
@cerulean slate
Can anyone help me with this: A sequence {an} is defined recursively by a1 = 2, a2 = 2 and an = anโ2anโ1 for n โฅ 1
Ann
Be nice.
sorry I need to find an equation for all an when n>= 1 in terms of n
As Ann says it is not clear what it is you want to do with that definitions -- but if your post means what I guess it means, most things you might want to do will become easier if you define a new sequence b_n = log2(a_n).
shouldve made that clear
And express your recurrence (which I assume means $a_n = a_{n-2} a_{n-1}$ rather than $a_n = a_n - 2a_n - 1$) in terms of the $b_n$s instead.
you mean $a_n = a_{n-1} a_{n-2}$?
it's better to see a screenshot of the problem as it was given originally
since math notation has the unfortunate tendency to get butchered if posted as plaintext
Part (a) of these, at least, should be purely mechanical.
If you've already done that, what did you get?
Not that this exercise is not asking you to "apply the standard procedure for finding the equation" -- there's no such standard procedure to apply! It's asking you to compute the first few terms explicitly and then guess based on what you see.
Yes I got 4,8,32,256
Iโm just trying to guess a formula and I canโt seem to find anything that works for all
Now you might recognize that these are all powers of 2. Perhaps if you write down which powers of 2, it might be clearer. Don't forget the initial "2,2,".
Yeah I found 2^n-1 works for all except a1
How does that work for a_6?
I gave a suggestion here, which apparently you have not followed yet.
What is the point of the Utility Graph? Is it more of a "fun" graph or does it have a general purpose? For reference, here is what I am talking about:
TheCedarPrince
Properties:
- Only one Utility Graph exists
- Based on trying to map three utility companies to three houses.
- Requires one to not cross any lines
- Cannot be done
I dont understand whAt they are trying to say here. Could soneone explain? (For more context its about color refinement and alpha i thjnk represents a vertex color)
It is one of the two fundamental ways to make a graph that cannot be drawn in a flat plane without crossing edges. (See "Wagner's theorem", "Kuratowski's theorem").
Oh perfect. I am coming up on Wagner's and Kuratowski's theorems soon in a book I am reading. It was introduced as being a common graph and it confused me as to why I should "care" about the graph specie (to put it bluntly). Thanks for contextualizing it for me.
Hmm I realize that it is the powers of two that are 1,1,2,3,5,8,13 which is a Fibonacci sequence but not sure how to put that into the equation
Excellent.
I would just write the conjecture as:
$$a_n = 2^{F_n} \text{ where $F_n$ is the $n$th Fibonacci number}$$
Troposphere
I'm pretty certain that's the level of formality the problem expects.
Okay thanks! I havenโt heard the professor mention that notation but I will put that down
The only obvious alternative would be something like substituting in Binet's formula for the Fibonacci numbers, but that would make everything horribly worse in the "prove that it works" step and can't possibly be what you're expected to do.
can someone explain how this works?
The asterisks probably stand for plain multiplication.
That makes sense. I also need help on part c. How do I prove it that using induction?
I expect you can assume the recursion formula for the Fibonacci numbers.
Then use strong induction so you can assume both $a_{n-1}=2^{F_{n-1}}$ and $a_{n-2}=2^{F_{n-2}}$ in the induction step.
Troposphere
A closure is by definition unique, right? Is there some name for "closures" that are not unique but are subset-minimum/maximum?
It would be very unusual to use the word "closure" about something that is not fairly easily seen to be unique.
(At least up to some appropriate notion of equivalence, and under common assumptions in whatever the area is. E.g. "algebraic closures" of arbitrary fields are not unique if you reject the axiom of choice, but basically nobody does that anyway).
Can someone explain me, why in this point U becames AND?
What's written there is not right
Specifically, that should be an or, not an and.
Oh wait, I misread
I thought this was an intersection not a union
Are you aware of De Morgan's law?
If you know De Morgan, this should come immediately.
Ok, thank you. I was reading about closures in the context of relations. And the closure also explained as the subset-smallest element of the family of supersets of R with some property P (paraphrased). And since the subset relation is a partial order and not total, I thought there does not have to be a smallest element but there can be multiple minimal elements. Or is there always a unique minimal element as well if it exists and therefore the smallest?
In many cases you'll be able to prove that the intersection of all supersets with property P has the property itself, and then it is obviously the unique smallest such set.
Where such a proof is not available, one needs some other argument to justify that the definition makes sense.
@coral parcel thank you very much!
Ah, this is also how they define the transitive closure
It should be your first suspicion anytime anyone says "the smallest set such that ..."
Ah I missed a theorem. The subset greatest lower bound of F is the intersection of F.
And if g.l.b. is in F it is the smallest element
Hm, had (g.l.b) after my notes, but forgot what it meant.
Hi, I want to ask a set theory question, I know the answer is N_0 but I'm having trouble proving it. I'm supposed to show w^w is equipotent to the natural numbers but how do I construct such an isomorphism? Or do I show by definition that w^w=sup{w^n, n natural} and w^n is countable so it is also countable? And I'm actually struggling to prove w^n is a countable ordinal number too, Idk if I'm missing something obvious.
set theory is so confusing 
Is $\omega^\omega$ the function space $\omega \rightarrow \omega$?
ฯ^ฯ is not countable
WanderingLethe
Function space as in? Do you mean the set of functions from ฯ to ฯ?
Probably does mean that then, this is the usual notation.
I should learn some more set theory
Guess what chapter I just reached, infinite sets ๐
could someone help me
The sum of the first three terms of an arithmetic series is 138 and of the next three terms is 255. What are
the first six terms of the series?
Arithmetic sequence: a, a+d, a+2d, โฆ
Sum of first three is a + (a+d) + (a+2d)
Sum of next three is (a+3d) + (a+4d) + (a+5d)
it is countable if it is ordinal exponentiation
since they particularly used ordinals and not cardinals for the exponentiation, this is likely
Task: For integers x, y, z, prove that if x+y+z is odd, then at least one of the three integers is odd. Should I use contradiction?
Could you explain this to me, please?
I just thought of it as |โ|=|2^ฯ|โค
|ฯ^ฯ|
And now I realise that these are cardinals
So we aren't doing 'ordinal exponentiation', I guess
ordinal arithmetic is defined differently from cardinal arithmetic, which gets confusing especially when people like to use ordinals in places where they want to do cardinal arithmetic
Yeah I certainly got confused lol
I'm not really sure how to start this one besides just plugging in 2 for Y
Where should I learn proofs? I have a quiz on friday on them but they are so confusing to me.
Like, direct, contrapositive, and contradiction.
If Q(x, y) then we have x+y=x^2-y^2. Specifically, if Q(x,2), then x+2=x^2-2^2. This is just a quadratic, so you can find the x for which it is true.
And if that x is in the domain, \exists x Q(x,2) is a true statement
Can someone explain me why these two sum are equal?
I referred to first image
the second one is just to understand the context
well in the first sum for each g you count the x so that gx=x. and in the second sum for each x you count the g for which gx=x. so in total on both sides you count all the same pairs (g,x) with gx=x
is it ok for me to use the distributive property on x(yz)' ?
dumb question what is a clique in a hypergraph
I know what it is in a regular graph but how does it generalize in a hypergraph (say a k clique)
A bounded region (say a circle) containing k vertices (roughly)
there are several different definitions for what a clique in a hypergraph is
one is that it is a set of vertices so that every subset is an hyperedge
another is that it is a set of vertices so that all subsets of a fixed size r are hyperedges
and there are probably more
My context is an r-uniform graph
So that last definition makes the most sense
hi, I want to ask a set theory question, this should be trivial to ppl but I'm not sure if this is what is intended? I'm thinking of writing a+b = sup{sup{m+n:m<b}+n:n<a}. Looks a bit strange and I'm not sure it could be simplified
Can I get some hints / guidance on this question? It's asking us to use PIE, but from what I know PIE would be:
$|A| + |B| - |A \cap B|$
phamous
yeah you mean for when you are trying to prove the LHS and RHS using some counting problem?
You don't particularly need to use the full power of inclusion-exclusion here, it would be sufficient to use the fact that $\Pr(X\cup Y)=\Pr(X)+\Pr(Y)$ for $X,Y$ disjoint.
A possible start would be to notice that $A\cup (B\setminus A)=A\cup B=B\cup (A\setminus B)$
Neverbloom
And since you need to prove an inequality, you'd also want to use the fact that probabilities are non-negative, here in particular you may want to use it as $0\leq\Pr(B\setminus A)$
Neverbloom
got it, thanks for the tips I'll go ahead see what I come up with
@grand totem thank you so much for the dots, i was able to connect them and arrive at this solution
I would say try to formulate a counting problem that solves one side, then for the other side, try to think how it is saying the same thing but in a different way
then tweak your counting problem to account for that
How hard is discrete math compared to calc?
Some find it easier, some harder. Depends on temperament and/or teachers.
Does discrete math require any prior knowledge like calc does? If so, what topics should I know about before taking it?
well depends on the course
some might require some basic logic or combinatorics or stuff
why do they increment the counter for some k if the state = expected difference
really confused tbf with chosen plaintext attack in differential cryptanalysis
like what does the expected difference mean even
I see that the next step is to show $\frac{1}{n! - 1}$ because we don't want to count the actual sequence, but can someone explain to me why that is?
phamous
since each outcome has a probability of 1/n!, wouldn't just be that the outcome for a reverse permutation is just that?
I need help with this problem:
question about pigeonhole principle
in the sol'n for problem #3, was Briar pulling 3 socks of each color a mere assumption?
nvm i think i got it now
could someone explain the first step of this? f is the fibonacci sequence
this "solution" from pearson is remarkably unhelpful lol
nevermind, it's the inductive hypothesis
which i left out of the screenshot
mb
hiiii, I'm reading the Hrbacek set theory book, and got confused by this proof. Why do they go through this length to say that N^n is enumerable? They already proved that N^n is countable by previous lemma, so why not just use the fact there is bijective f from N to N^n, so (f(i): i natural ) is an enumeration?
btw, they want to show an explicit enumeration of N^n because they are using this theorem:
You probably won't find any takers for "teach it to you" in the sense of taking responsibility for what you learn in which order, or think up exercises that will help you learn and remember the relevant facts and techniques, and so forth.
But if you have concrete questions you're stuck on, chances are good that someone will be up to answering them.
I do a mild amount of cryptography
the extent of my knowledge in that area is mostly in signals analysis, though
@covert terrace could you teach me some? i can tell you what im learning
erm I dont think im really qualified to teach but i can try to answer questions (as troposphere said)
What are you learning?
can someone help for the proof of this
im thinking that its saying G has a k-length walk from i to j <=> c_jk^k > 0
talking about part a)
i need to do part a) to understand b)
I need help with this problem:
why does the S-box go from m to n in length of input to output
i thought it would be the same surely?
well different lengths is more general
just do that for now and maybe later set m=n
Can some one explain graph theory for me
Iโm lost in bipartite and loops Iโm so lost
third column "r" looks at the case r is false, so then the conclusion would be that r is false...? What is the question?
Yeah I thought this too, but Iโm slacking in my discrete maths class ๐คฃ
Can anyone help me with this?
What's the definition of countable?
a set that is 1-1 to the set of natural numbers
I have a set A and a relation * in A. I have to demonstrate that * is a equivalence relation in A if and only if we have this 2 conditions:
a)* is reflexive
b)* is transitive
but i suspect that in the second conditional is not avaliable have the conditional, cause we dont have the simetry to proof that is not a order relation if we have antisimetry instead regular simetry
so you have to prove that a relation which is reflexive and transitive is also symmetric...?
Can someone explain the entire process of differential crypyanalysis for an SPN using chosen plaintext attack, makes no sense.
can i get this by computing total # of edges - # edges of same colour?
it says it should not equal 2pq
yes
if I saw that in the wild, I'd assume it is the positive integers cartesian product with itself 4 times
Z_+ x Z_+ ...
if it means something else it is notation unknown to me
hey guys for g i got the first answer (first line) but my textbook has the second answer (second line). i was wondering if the ordering matters here
oh i sent the same thing twice
whoops wait
11 g
And this is my andwer (first line) vs the textbooks (second line)
the ordering is very different but idk if it matters?
also for h i got a different answer from the book i cant tell if mines wrong or not
then you are asked to prove a false statement.
Can anyone construct a 2-regular and 3-regular graph with no perfect matching?
Yes. Can you?
NVM...I was able to figure out how to do it LOL
How does he get to the second step?
Cโ n C = {}
Bโ U {} = Bโ
Yeah, I don't know what the precedence is, but I'd assume that โ is like addition and โ is like multiplication, and so it's A โ ((C' โ B') โ (C' โ C)).
If it isn't, I think allthesepollitos got it.
Precedence is the same as + and *
If it is, then you just eliminate C' โ C.
And it's just a commutative jump and an associative placing of parentheses.
They just used the distributive law
[ A \cap (B \cup C) \equiv (A \cap B) \cup (A \cap C) ]
So here, we have that [ Cโ \cap (Bโ \cup C) = (Cโ \cap Bโ) \cup (Cโ \cap C) ]
im a bit confused on when you can distributive vs when you can just use the assocative property
can you think of any situations where that's invalid?
notice that the for all y is a pretty strong statement
one hint: are all these functions continuous?
I don't have any questions yet, but if it comes down to it, would this be a good channel to ask about spectral graph theory?
U is the Union of sets
A U B = { x | x โฌ A or X โฌ B}
n is the intersection of sets
A n B = { x | x โฌ A and x โฌ B}
i don't think chai was asking to explain what union and intersection were...
Depends on the ordering, right? And if you accept axiom of choice.
yea, but unless stated we'll take the default order
Yes, I know that. I was talking about precedence of the operators.
4^17 mod 100 โก 4^7 mod 100 - can someone explain to me how the two are equivalent?
4^17 - 4^7 is divisible by both 4 and 25
why are you taking them away?
Do you understand what the equivalence you referred to means?
the one on the left will yield the same result as the one on the right?
awwww
i seeeeee
cuz the mod repeats after every 10 increase in the exponent
as in the result obtained from 4^x mod 100 \equiv 4^{x+10} mod 100
idk how to get latex on discord
but
i see nowww
haha
thanks
We have a bot in the server that will usually render your posts with LaTeX if it sees dollar signs or \(...\) in what you write, but it seems to be down at the moment.
I'm having a hard time understanding how I can define a function for f
I know that each distinct element in the domain A needs to map to a distinct element in codomain B
the elements of {0,1} ร {0,1} are ordered pairs and should be notated with round brackets and not curly ones. that's a notation issue for you to fix
however, you've listed these things out explicitly.
so you can just say
define f by f({0}) = (0,0), f({1}) = (0,1), f({0,1}) = (1,0) and f(โ ) = (1,1)
(in accordance with your listing order for both of these)
ah thats right they are tuples
thank you for pointing that out
ooo i see
so i can just make up the mappings
is there a way to frame in a more general way
something like f(x) = (x, y)
There is, yes
If S is some statement, I will write [S] to be 1 if S is true and 0 if S is false
Then one possible map is f(x) = ([0 in x], [1 in x])
iverson bracket moment
The tex bot is down so I went for the easiest thing to notate lol
Does anyone have a list of useful formal definitions that are good to know for Discrete Math?
Feel free to DM if anyone would like to provide any insight, thank you!
I think exactly what "discrete math" is varies too much between institutions for such a list to be generally useful.
I see, I think I might come up with one from exercises out of the book and just see what the professor thinks or if he's willing to give pointers on what's relevant and what's not.
how many different three letter initials can people have where one initial is an A
Anyone could help on this ?
Design a DFA for language that has odd number of ones or odd number of zeros, but not both.
Is there anything I need to know before taking discrete math?
Can anyone check my proof?
,, A \cap (A^c \cap (B^c \cup A^c))
Scratch
In this case I know I can distributive to
,, A \cap ( (A^c \cap B^c) \cup (A^c \cap A^c) ))
Scratch
but does the associative property also work, like
,, (A \cap A^c) \cap (B^c \cup A^c)
Scratch
Can anyone please help?
Proof checking is tedious and boring work, and often nobody in the channel will feel they have the energy.
If there's a particular step in your proof you feel uncertain about, asking a focused question about that can have better chances of engaging someone.
i was reading a proof about conjunction of universal propositions. is there a reason why we switched from using P(x) to P(a) in step 2? i've seen similar proof from a book and they also switch the symbol for the predicate variable.
That is fair enough; I will do just that. I did highlight the section of the proof that I was the most unsure of, though.
Can anyone check my proof? I have highlighted the section of the proof that I am the most unsure of. Thank you.
dang i had the same question
although mines is probably far easier
how could i have this proof better?
im not sure that what you have written is a proof of anything...
would the codomain become the domain when taking the inverse of this function?
or is it only the range
This function does not have an inverse. It only has partial inverses.
You'll have to clarify what you mean
when you take the inverse of a function do you swap the codomain and domain
or the range and domain
If the function has an inverse, then you do swap the domain and codomain, yes
This can be seen as a reason why the function you have above does not have an inverse
ok i see, so the function above is one to one, but taking the inverse is not one to one because it is not a valid function?
I would say that's a valid reason, yeah
Let's abstract to the case where we're counting the number of functions from a set X to a set Y
To define a function, you choose an element of Y to assign to each element of X
This means you have |Y| choices for every element of X
Hence you have |Y|^|X| possibilities in total.
if X = {1,2,3} and Y = {1,2,3}
then |Y|^|X| = 27, how are there 27 possibilities?
1 -> 1, 1 -> 2, 1 -> 3, 2 -> 1, 2 -> 2, 2 -> 3, 3 -> 1, 3 -> 2, 3 -> 3
Or am I completely misinterpreting the meaning of set "to" another set
1 -> 1, 1 -> 2, 1 -> 3, 2 -> 1, 2 -> 2, 2 -> 3, 3 -> 1, 3 -> 2, 3 -> 3
that's not "functions", it's just pairs
a function doesn't have one particular inputs, it has one output for each possible input
so "1 -> 1, 2 -> 1, 3 -> 2" is one function
in general they look like "1 -> ?, 2 -> ?, 3 -> ?"
if "1 -> 1" was a function then,
let's say f = 1 -> 1
what's f(2)?
ah i see. im confused as to what "to" means
