#discrete-math
1 messages · Page 115 of 1
"p only if q" = p—>q
same as saying if p, then q
looks like the answer shouldve been b there
that’s what I’m thinking, but I argued with the prof on it for like 10 minutes and he still disagrees so idk. It’s the only question I missed anyway
Actually, he said it could be either because only if can mean “is necessary for” or “is sufficient for” (which I disagree with), but he’s only accepting d even though b is also correct by that logic.
sure, you can say that q “is necessary for” p, but just because q is true, that doesn’t guarantee that p is true. We could say, for example, “You are eligible to become president only if you are a natural born U.S. citizen.” So being a natural born U.S. citizen is necessary for becoming president, but just because you’re a natural born U.S citizen doesn’t mean you are eligible to become president (there are other requirements to become one such as your age).
i do disagree with your professor as well. "only if" implies p->q, but not the other way around
In response to Skyler's query, when it says "p only if q" that is referring to "q --> p". It's the same as saying p happens only when q is true. So your premise is q and conclusion is p.
it's the other way around, p --> q. If p happens, you can conclude q happens.
Think about it like this, "p only if q" says that p can only happen when q has happened. So q is a necessary condition for p to happen. This lets us see that if p doesn't happen then q doesn't happen, which gives the following expression: "~p -> ~q". Take the contrapositive of this to get expression for "p only if q": "~~q -> ~~p" which is equivalent to "q -> p"
it’s still the other way around. you stated that q is a necessary condition for p to happen, which is true. but this means that if q doesn’t occur, then p doesn’t occur either. this gives the expression ~q -> ~p, which is equivalent to p -> q
Have a look at the following stackexchange answer
https://math.stackexchange.com/questions/617562/conditional-statements-only-if
Take the following expression:
a <-> b which means a if and only if b
Which is equivalent to saying "a if b and a only if b", so in terms of equivalent expression we get:
a -> b & b -> a
This is a well known equivalence relation
which part in particular from that website? they all seem to agree that p only if q is equivalent to p --> q
Look at the top answer
and yes, we can take a look at the biconditional statement, a if and only if b. so theres 2 parts
- a if b, which is equivalent to b -> a
- a only if b, which is equivalent to a -> b
yeah i read that
are you referring specifically to the last paragraph of it?
Yea
in the last paragraph, they're considering q only if p, which leads up to q->p
Yea, you are right. Did it on paper and it makes sense now
Does anyone have a comparison or opinion on discrete math textbooks for self study? I have the latest Ken Rosen Discrete Math book and latest Suzanne Epp Discrete Math book in pdf form.
I don’t remember the author of the discrete textbook published by Springer, but I’m using that textbook to suplement the textbook we’re using for my actual class and I much prefer the springer one. It’s more detailed and it flows well, which I’ve found helpful for self study.
The textbook we’re using for class rn is the zyBooks textbook and it’s nice because it has problems you can work and see the answers for in real-time, but it’s $58 and you can just work practice problems in a regular textbook and google answers
But if you need that feature to help you keep on task for working lots of problems, the zyBook is fantastic.
anyone good at boolean algebra?
now thats epic
How to show two equations are the same without an equal sign
what
but that only tells you H is true when M is true
it doesn't tell you what happens if M is not true
yes
"unless" usually means "if not"
that's a very very unusual way of interpreting unless
it would seem so
according to that explanation in your notes
but damn if that isn't completely messed up
usually "Q unless P" means !P => Q
I'd just caution you to be really careful in the future about it, once this class is over, that that's really nonstandard
does not look correct
Whats wrong?
what's the negation of a < b?
a>b
no
what if a = b?
the negation of a < b is a >= b
a is greater than equals b?
yes
hmmm, not sure i understand the logic
yea
what about 1 >= 1?
True
you can reason about it
if it helps
(a < b) <=> a is less than b and a is not equal to b
negating gives
(a >= b) <=> a is greater than b or a is equal to b
Hello
Anybody can explain how they go from first red arrow to second red arrow?
Please
because V is the identity for ∧
p ≡ p ∧ V by the identity law
its like saying, x + 0 = x, or x * 1 = x
well, i should point out that V is a tautology here. that V always has a truth value of true
I am so stumped on this one gang. Can anyone provide some insight into how to tackkle this problem?
If we are trying to prove the proposition “if x is a non-zero real number and 1/x is irrational then x is irrational” by contrapositive then what should be assumed?
do you know what proof by contrapositive is
if we have a set A = {1,2,3} and we take its power set P(A)
then $$P(A) \cap \mathbb{R} = \emptyset$$
rocco:
Yes
yes as in ask in questions or i am right
You're right
Hi im very new to discrete math, can i get some pointers on this question https://media.discordapp.net/attachments/496964187101331458/671394365033414679/2980x162.png?width=2688&height=147
Well, there's no problem with regards to that.
$(p \implies q) \iff (\lnot{p} \lor q)$
Abhijeet Vats:
Nope
You have to turn the implications into disjunctions first
Then you can use de morgan’s law to simplify
So i need to turn the q->r into disjunction after that?
$\neg(p \to q) \neq (\neg p \to \neg q)$
Ann:
x is students, y is courses
A(x) means they're part time student, M(y) = the class is a math class, and T(x,y) that x student is taking y class
Does this show that there is some part time student who is not taking any math classes?
whoops, M(x) should be M(y) in the picture
I assume knights always tell the truth and knaves always lie?
I mean break it down: A's statement is true if either ABC are knights.
B's statement is true if he is a knave.
C's statement is true if A is a knave.
If A is not a knave B would be wrong and C would be wrong#
@teal latch they all speak the truth=
?
@faint narwhal would you assume all speak the truth? i mean you are most likely more into formal logics than me. how would matrice like of truth look like
I mean as someone that wasnt that much expose to math since hight school i would check all of the their statements agains each other to show which statements make contradictions
say 1 is truth -1 is lie 0 is indetermate and i is knave and b is a knight
A(1i) = B(1i) and C(1b)
I think the point of the question is that knights always tell the truth and knaves always lie
So having all three of them be knights doesn't work since then C would be lying about A being a knave
Would I shade in p and the all the intersecting ones in the middle?
would 2b be false for (e) as the converse doesn't hold or am I wrong?, sorta confused on it since it would be written as "If x = sqrt(x^2) then x e R", but is that for any possible x?, and is x e R just always true?
For whatever values it holds for x
Is x a real number
I guess it's easier to think when/if it can be false
But we're talking about the converse
That is the converse?
??
uh
For the converse
"If x = sqrt(x^2) then x e R"
is x just all real numbers still?
Is there a non-real number such that x = sqrt(x^2)?
Uh
Think of the simplest possible example
I'm confused on the "non-real number" part
Try i
So i would work?
Yes
And obviously i is not real
So the converse implication is not necessarily true
So the converse is false
Okay wait I'm sorta lost
is x = sqrt(x^2) is false proven to be false as you said right
doesn't that mean its impossible for the converse to be false
cause of the truth table
?
Yes
So we're saying that P, (x = sqrt(x^2) is false
Wouldn't it mean the converse is true
Correct
Q => P is false whenever we have a Q true, P false situation
We've found both of these situations
Okay wait,
So the original statement is False correct?
If x e R then x = sqrt(x^2)
So the converse means we flip the P and Q basically right
Yes
That depends what value of x you pick
Alright so thats where im confused
how do we dictate that
its obviously easier to prove its false
but like before it said the number has to be x e R
The converse is basically asking
Whenever x = sqrt(x^2) is true
Does it then hold that x is a real number
so the P is the hypothesis
ahh
Okay so
the overall statement is false
gimme a sec
So can we compare this converse to the truth table is what I'm wondering?
What im lost on about the truth table right, we're assuming that P implies Q, so when do we dictate if P is false?
Like this example
It's true right?
Hol on
Yes
Could I just ignore the truth table and think about these implications logically?
Sure
So in the pic I posted, we're saying that 0 = 1 then 8 is odd right?, are we stating that 0 = 1 is true?
or is it just a test
Ehh
Cause my brain is thinking like
I would not state that is true
so on a truth table would P be false then
It's a false implies true situation
Ye
Which is true
Mhm
If I went about the question like
assumed that 0 = 1 is true for now
and then test the 8 is odd
and obviously its true
well actually nvm that lemme jus
go back to my question but not e
Yee
Okay so for 2(b) for 1(a)
If -1^2 = 1 then (9 is even or 5>=5) < converse
It is a true converse correct
-1^2 = 1
isn't that true
even if it was true or false
the statement is true cause 5>=5 right
Alright so then for 2(b) for 1(b)
I said it was true
but im confused on how to go about it logically
when the k e N or x e R comes after I sorta get confused on what to test
Hmm
the converse being (If x^2 + kx + 1 > 0 then k e N)
I said the original would be false
Assuming you had like k = 100 then an x like -1 it would be less then 0
But going with the converse I don't really get how to go about it
That seems valid
Since the k e N comes after
Like the way you went about the 1(e) converse how would you do that for 1(b) converse
Hm but like
isn't k all natural numbers
or are we saying if we chose k as that
it means k e N is false
since its not the hypothesis this time
No
So it would be false then?
but like im confused
cause obviously you can pick a k which makes it true
but you can pick one that makes it false too cant you
so it has to be true
since there is a possibility of always being true
but it could be false obviously
Correct but the statement is only false if Q is false tho
but yea
we want to make P true alright
It's only false if Q is false when P is true
Yes
Alright okay so
for just the regular 1(e)
It's false right
obviously if you chose a negative number when you square and square root it, it won't be negative
hence x = sqrt(x^2) is false
Yeah
Now for the confusing 2(b) 1(e) one more time oof
What is the best approach to test it?
Just make a guess of whether you think it's true or false
If it's false
Try find a counterexample
By true/false you mean the overall statement right
Yeah
Alr
I get the imagery part now kinda
so you're forcing Q to be false to test if P is true right
I'm trying to find any true implies false situation
Yes
I mean
Yes
Yes
to b
Yes
i'll give it a try one sec
I'm sorta confused whats the point of the "if and only if"
does that mean the n has to be the same?
No
It's a bidirectional implication
a if and only if b
Is the same as
if a then b
And
if b then a
uh hm
So are we saying that n is the "b" tho right?, and "b" can be any natural number
"b"
I mean
wait
oh ok I get what you mean
I mean uh
like diff variables then
for 16 | n^2
16 is say c in this case and n is d
Yes
Is that all I need to prove its false
No
What else do I need to do?
a being false doesn't tell you about the whole statement
Hm
unless b is true
so the if and only if
Then you would have true implies false in the backwards implication
means two implications?
Yes
So I need to prove both are false implications
so if I prove one of the implications is false then I'm good because of the "and"?*
Yes
two false make a false for "and" right
Yes
a and b is false
If at least one of a and b is false
It's only true when both are true
Alr back to the question now uh
The forwards implication is much easier to work with
the what now
if 16 | n^2 then 8 | n
ahh ok
So if I make
16 | n^2 true and 8 | n false then I've proven its false right
hm
Think of the simplest counterexample
So what would be the other way to go about it tho
That one is just kind of dumb
LOL
so its saying x and y real numbers but both greater then 0 then uh
oh
if I just pick large x and y value
its false then
Yes
This one is just finding such an x where it doesn't hold
Or just knowing about how polynomials grow
Logically it should make sense as well
so x is any real number
E.g. think what happens when x = 456789
Yes
and is just 456789^5
yes but not really
Yes
which is bigger then alr
well I just need to prove its false right
and if that side is bigger its false then ye?

123 * 456789^4 right?
Which is clearly less than 456789^5
ye
just cancel the x^4... what r u doing
🤔
123•456789>=x^2
so is false for any x greater than the square of that
u dont have to do all that
Is there any examples of these statements my notes got like none LOL
I wanted to avoid reasoning out of the division by 0 problems
Uhh examples of those statements?
well its asking for an explanation not just a counterexample
so you need reasoning not just "look at this big number it doesnt work"
🤔
idk thats just me
A single counterexample is a perfectly fine way to disprove a for all statement
i mean yeah technically, but it asked for explanation
yeah, and show the inequality
idk, just the reasoning for why big numbers break the proposition
Isn't that what I did though?
ima take a break ru gonna be here still kang?
Sure
alr
i genuinely dont know what this is asking
do i just guess and check to find the first aEN?
then how tf do i use MI
You want to find the first a where the inequality holds
The prove its true for all natural n > a
Hmm
Should that be a strict inequality
Meh
no one in my class understands this question
do you think this question is valid? like do you think you would possibly work it out
i honestly cant trust my discrete math prof loool this guy makes so many mistakes
so this is just regular induction, no strong induction or anything
Regular induction should be fine
I don't get why that inequality is strict inequality
But I don't think it matters too much
You don't
Flip the inequality around
Try n = 1, n = 2, and so on
Until the inequality is true
That becomes your base case
honestly, im just gonna come back to this question later, i have so many things to do rn
Ok
That's kind of sus as well
It's not necessarily the first a that guarantees good results
I can vouch for cali that this question could be wrong
We have the same prof and he always makes mistakes
Idk I don’t understand why there are 2 inequality symbols
I can’t even translate that question to English aha
What even is a
Ik it can be a natural number
But like wat, how do you know what a is xD
All n greater than a but a is any natural number wtf
That's why the question says find the first a
Finding the first a is literally just testing numbers
But
There is an issue
It can't be the first a
So essentially the question is asking us to find the base case using induction?
No
You find the base case just by checking
And then prove the inequality holds for n > a by induction
But there is a small error
The smallest a isn't going to give a good result
Pick the next smallest a
Does anybody know what I am doing wrong here?
I know for sure that -10+12 is not 18 :/
You didn't flip all the bits when you went to -10
thanks :)
Union and intersection on sets are associative as well as distributive right.
Then why am I getting different answers
Pls mention me @long forum if you reply
Associativity holds as follows:
$(A \cup B) \cup C = A \cup (B \cup C)$
Abhijeet Vats:
@long forum what you have written is not correct because there are two different set operations at play
Like, in the bottom half of the image
You’re welcome.
Is it correct to view a tree as a mapping from N²?
from N^2 to what
A boolean set i guess if it's just a graph with nothing on it. Or if it's a tree that assigns an object to each edge or vertex, to the set of all those objects

I was thinking of the Caulkin-Wilf tree when thus question occured to me
I can never remember how to spell "occured"
Two rs it should be okay
Well are graphs in 1-1 correspondence with matrices?
That would answer my question
finite ones, yeah
i guess if you have a graph with vertices a subset of natural numbers you can assign to each tuple a 1 if there is a edge between them and a 0 if there is not
and that is your mapping 🤷
Aight thanks
Yes, those matrices are called "adjacency matrices".
but a graph can have uncountable many vertices
are there any graphs which cannot be embedded in R^3 with every edge of length 1
how do you embed |2^R| many vertices in R^3
I'm confused on how to do 6, so for the negation I know I would flip the "all" or "exists" to the opposite but what else do I do?
So flip the x < y to x > y for 5(a)?
or would just putting the negation symbol be good enough there
No
Well
Firstly that's not the negation
Secondly, putting the negating symbol in front
Ehh
It's not wrong
But not useful
I know
It's not wrong
But not useful
Like
It's mathematically valid and correct
But I think it's better to actually rewrite the inequality
It's not wrong
What is a better way of writing it?
But I would say rewriting the inequality is better
so actually negate the inequality
So is the negation of that x >= y?
Yes
It would be x > y
So the new 6a would be false right
since we choose the x first, then y
oh wait
It would be true right
So we can choose x out of any of the integers, then we choose a y out of the rational numbers, and we can make it so y is always less then x right? which makes it true
What if I pick x = 5, y = 1?
we looking at just 5a right
For the negation
Is it?
but yea
y = 5, x = 1
false then
And since it's supposed to hold for all x and all y
And we found a specific x and y where it doesn't hold
The negation is false
ah
Alr
Now for b
it would flip to true for the negation right
cause its "exists"
OH WAIT
hol on
one sec
it would be false also
The original statement?
Wouldn't the negation also be false, since there exists an integer x such that for all rational numbers of y, x is greater then y
There exists an x and there exists a y such that the inequality holds
Nice
Okay so its negation on (b) is true
ima try this one next one sec
also going back to 4(d) from yesterday can't we just use x = 0 as an example
Probably lol
There's a neat factoring trick
So factor it all the way to x(x-1)(x+1) ?
Yes
They're 3 consecutive integers are they not?
Yea
So 1 has to be divisible by 2
And another has to be divisible by 3
Ok, the divisible by 2 part is not important
But the divisible by 3 part is very important
thinking
Still kinda lost, I get if I divide any 3 consecutive integers by 3 it will be a whole number but like
How do I prove that
Follow the generic method to prove divisibility
Induction maybe
Direct Proof, Proof by cases, Proof by the conterpositive
we haven't done induction proof
actually literally made us write "not seen this till later in course" LOL
It can't be a direct proof right
Where should I start on this
What's the definition of odd?
any number that cant be divided by exactly 2
eh
Uh
if i have any integer
In an iff, you have to prove both directions
So you’re starting with the forward direction first?
how can i create an odd number from said integer
like 2x + 1?
I'm doing backwards first
I probably wouldn't do direct proof for the forwards direction
lemme think for a second
Yeah
thats easy
theres only 3 cases
and prove only 1 of those cases
results in an odd number
aka
an even times odd
is always even
even times even is always even
so only an odd * odd can result in an odd number
@soft thorn
That's true
How do I prove that tho multiply two odd numbers i.e (2k+1)(2k+1)?
Expand it
use different variable
Refactor it
so 4ab + 2a + 2b + 1
no?
uh
Isn't it?
You know an odd number is of the form 2k + 1 for some integer k
ya
Can you rewrite your result in this form?
so factor the thing I just expanded?
Yes
uhh
I did grouping
no?
uh
unless ur talking just bout
the part excluding 1
2a(2b+1) +1 =(2a+1)(2b+1)
u forgot the +1
Well no
no?
cause I got (2a)(2b+1)
uhh
ohh
That’s wrong tho
i forgot the 1
wait
why factor it like that
where i started tho
They want it to look like 2k+1
we move the 1
x=2ab+b+a
so we're forcing it to equal an odd number
yes
Is that it tho?
yes
so I'm just wondering we proved that its odd if its a odd multiplied by an odd but we don't need to prove the other things false?
i.e the even x odd even x even
well
those are trivial
and even number is of form (2k)
2a*(2b+1) =
2*(2ab+a)
for even times even we have
2a*2b
=
2(2ab)
ah
I think there's a bit of elegance to proof by contrapositive here
But that's unnecessary
sounds like an issue for another day one left
So for 9a its false right
if I use like x = 7 it doesn't work
Well, show 7 is a counter example
Going fully through the steps justifying it is one might be a good idea
Yee did it all the way in my workings
would 4 | 0 be true is what ur asking right?
this was the definition given so I'm not quite sure
Don’t wanna accidentally make a mistake like misreading 3 as 2 or smth
Wym justify my steps?
Also yeah that would give you 4|0, just asking as a sanity check for myself, dont mind me
Should be obvious this holds, q isn’t nonzero
I’m just stupid and making sure I’m not too rarted
@tranquil jewel I’m saying it’s good you write out the steps you take so you have a proof that it’s a counter example
Also, how do you think?
Clearly the negation will disagree with the original
I was gonna switch the "All" to "exists" but I'm not sure how to deal with the x is odd, would just putting a negation sign infront of that suffice?
Well
The x odd part isn’t the proposition
The proposition is x odd -> 4|expression
The arrow is part of it
so I can't treat it separate
Here’s a hint, it’s a statement you just showed was true
I.e. shown there’s a counterexample
kinda lost
Yes
so do I change the implies to an "and"
and keep everything else the same
or is there more things to do with the negation on the last part, I'm not really sure how to deal with the 4 | (7x-x^3)
You do change it to an and, but you want to negate that expression on the right
@tranquil jewel
Can someone explain to me how we can reach the conclusion ∃x R(x) given these premises: ∀x (∃y P(x, y) →¬Q(x)), ∀x (¬R(x) → (Q(x) ∨ ¬P(x, x)), and ∃x P(x, x)?
@ivory badge How do I negate that expression tho is what I'm wondering
What would you say to negate “4 divides Y”?
4 Does not divide y?
Yes
so would I just put a cross through the line or like how would I write it
hi! uh.... can i get help?
@mint horizon https://sol.gfxile.net/dontask.html
i'm always going to ask first
There's no point in asking to ask, trust me, just ask. You're less likely to get your question answered.
eh still.
In fact it can be rude.
but i need help proving that ) ∃x∀yP(x, y) and ∃y∀xP(x, y) aren't logically equivalent using a counterexample and the limited domain of {-1,0,1}
help.
idk. look on the internet for what \ means in discrete mathematics
do you know anything abotu mine?
argh
yeah the 'uh' gave that away.
first
i just need some clarification
it's not hard i just need someone to clarify some shit for me.
,,, you don't?
Hey folks, I'm having a hard time describing what combinatorial proofs are. I've looked at many examples and I can somewhat understand what it's use for base from those but I can't really put it in a nice description. Here's what I have so far with a definition though:
Combinatorial Proofs: Is a way to prove an equality problem by finding two ways to answer the same question.
Would that be right? If not, what would be a good and objective way of describing this topic?
too vague
a combinatorial proof is a way to prove a certain equality by counting the same collection of things in two different ways each of which leads to one of the sides of the equality being proved
Perfect. Thank you very much!!!
How do I prove this by cases?
find a suitable case breakdown
I’m kinda confused on where to go, like I get it’s gonna be something along the lines of x(x-1)(x+1) which is 3 consecutive integers but like, I’m don’t really get how to use the cases to prove it
why not split this into cases based on the remainder of x modulo 3?
i.e. x can be written in exactly one of the following forms: 3k, 3k+1, 3k+2
your cases are
- x is a multiple of 3
- x is 1 above a multiple of 3
- x is 2 above a multiple of 3
x is a multiple of 3 iff x = 3k for some integer k by definition
similarly for the other cases
so since it’s a multiple that proves the x = 3k case then for some integer k
write the proof out
I’m confused on how to write it though, do you just mean write out the statement explaining thar
i feel like you're kind of overthinking it here
I am 😂
I understand what you’re saying but like I dunno how to like write it or am I just making it complicated
so i think i have an impossible question on my discrete math assignment
for n > 0: prove my mathematical induction that there are at most 2^n nodes at level n of a binary tree
well, i can prove very easy if n >= 0, the base case of n = 0, 2^0 = 1 node, then i can easily prove that for n > 0, there are 2^n - 1 nodes
am i correct?
You don't understand what level means
alright
what am i missing here, i've never learned about binary trees so im new to this
I'm not sure why you think it's impossible if you've done it
You're right in what you said actually
I mean, you didn't really give a proof but
i meant, we have to prove for n > 0
so n = 0 isnt allowed
which would be the case that would satisfy 2^n
No
explain? i am confused here
so at level 1, this is referring to the amount of nodes connected to each node of the preceding level?
no if you prove it for n>=0 then you just proved something more general than n>0
it's still valid you just proved something that's valid for more than you were asked for, which is fine
It’s more like I thought only at level 0, it was 2^0 = 1
= 2^n
And the rest is 2^n - 1
How many nodes do you have on level 1
What four nodes do you have
level 0, level 1, level 2, level 3? ive never learned about binary nodes so i seriously am vexed, bear with me here
wait, hmmmmmm i think something is clicking?
so since we dont get access to level 0
as in
n cannot be 0, the root is actually n = 1
and all i have to do is prove that for all levels, there are 2^n nodes
no you're thinking about the whole tree at once or something
each level is only what's in each box like they're labeled here
yep
How many nodes do you have on level 1
good
level 4: 8
earlier you answered that by saying there were 4 on level 1
so i can conjecture that its always 2^n for k > 0 eh??
