#discrete-math
1 messages · Page 9 of 1
Anyone able to explain the last step, I get that they used property (2) here, but I'm not sure how to use it when there is an exponent involved? Why is the exponent ignored?
By repeatedly applying property 3, if n is an integer and a=b (mod c), then a^n=b^n (mod c)
Are you able to help me here? I'm trying to prove that 3^41 - 5 is divisible by 7.
I'm not sure if I did it right though
i found it 🥲
You'd say there does not exists x in A such that P(x)
∄ x∈A | P(x)
or are you asking for a way to prove this?
so basically no element in x in A could make P(x) true
yeah
oh ok
∃ x∈A ¬P(x)
does this say
there exist atleast 1 x in a so that P(x) is false?
¬ ∀ x∈A P(x)
there exist no x in a which makes P(x) true
This is right
No, this is wrong. This says "not every x in A has P(x)"
So this is equivalent to saying ∃ x∈A ¬P(x)
so in our script it says every number n in N and geater or equal 2
is a product of prime numbers
what is with 3
how is 3 a product of prime numbers
isa 1 a prime number
e.g. 3 is a product of 3 * 1
3 ia a prime number but 1 is not a prime number
how can 3 be a product of prime numbers
3 is the product of one prime number, namely 3 itself.
how can a product have only one number
By convention, if we speak of a product of a list of numbers, then for a list with a single element, we get that element itself.
It's not particularly deep, just makes a lot of results (such as prime factorization) easier to state.
3¹.
In fact the convention is very often extended to saying that the product of a list of no numbers is 1, so 1 has a prime factorization too: the empty factorization.
Actually makes good sense. It corresponds to a straightforward way of computing the product of a list:
a = 1
for n in listOfFactors:
a = a * n
return a
and the products of lists with no elements or one element is the natural consequence of that.
(Assuming you'll be comfortable with programming since you're classifying your question as "discrete math").
are you familiar with the satz of bezout
that the greatest common divisor of 2 numbers can be written as a liner combination
Usually known (for odd reasons) as Bezout's identity, yes.
why is it the min of that set
do you maybe have a concrete example
i i have 4 and 6
ggT(4,6) = 2
what would be the linear combination of that
2 * 1 + 4*0?
No, because you're looking for 4·(something) + 6·(something else) = 2.
For example 4·(-1) + 6·1.
isnt 2 · 1 + 4 · 0 =2
Yes, but you said you're looking for gcd(4,6) not gcd(2,4).
and another question how you go about learning stuff like this
you treat those sentences as an abstract concept
or you try to translate them into real examples
like 4 and 6
Definitely keep concrete examples in mind, as much as you can.
and why is it the min of that set
The point is that the numbers that can be written as ax+by are exactly all the multiples of the gcd.
ahhh than that makes sense
¬(p ∨ q) this ¬ covers p and q both right ? without parentheses it would be ¬P∨ ¬q
yes
¬(p → q) what about this
→ would change with what ?
or just p and q would swap places
(p → q) means (¬p ∨ q)
how is that im bit confused
Are there any good discrete math resources online?
can anyone teach me how to solve this without truth table
#3 and #4 is that not Modus Tollens
@stray galleon Here is the solution:
~t and p->t => ~p
~p => ~p v q
~p v q -> r and ~p v q => r => ~p /\ r
~p /\ r -> ~s and ~p /\ r => ~s
~s and s v ~q => ~q
for the 2nd step with addition, can we pull anything to ~p?
that's not explicitly negated
in other words how did you come up with vq
That's "or introduction" If something is true, then it or something else is also true trivially
the or could have been anything?
Yup
example t, even if it was stated as a premise ~t?
or do we need to take the ~t into consideration
I'm not sure what you mean
Sure, but that wouldn't advanced the proof
similarly, could I have picked ~p v ~t?
Sure, it's still true because ~p is true (or deduced rather)
thanks
so really for an or-introduction (or addition as i've learned) the v can be ANYTHING even if the premise says the opposite
it makes me feel a little uneasy how easy i can make something appear out of nothing
if it is true that "I'm a mathematician" it is also true that "I'm a mathematician or I'm the president of the United States"
Well, you always have p v ~p because of the Law of the Excluded Middle (LEM), so you can always get something out of nothing (unless you're an Intiuitionist)
makes sense!
does the or HAVE to be something false?
No
you could say I'm a mathematician or I'm a mathematician
Or is inclusive in mathematics
- pVq=>r premise
- sv-q premise
- -t premise
- p=>t premise
- -p^r=>-s premise
- -p (3,4 modus tollens)
- -pVq (6, addition / or-intro)
- -q (6,7 disjunctive syllogism)
i came up with this
would that work?
6 and 7 alone cannot prove ¬q.
If ¬p is true, then ¬p ∨ q is satisfied solely by ¬p, with no requirements on q.
q could be true or false and 6 and 7 would be true.
fallacy of confirming the conclusion!
Hey I am trying to figure this out, I have already turned it in, but I am just wondering how to get sum of product form from the reduced form given
It looks like they circle the 1s instead to get the sum of products. Like the bottom half circled gives you y in the sum at the top.
I'm sorry, I'm not following 😦
wait
okay, so pretend I wasn't given the map, like just the function, that's what I was supposed to figure out, it doesn't matter now because I already turned it in, but I just wanted to see how I did it wrong
given F, find the kmap were the instructions
You mean take the top line and get the table in the middle?
yes
OK, so you have an empty 4×4 table.
Then, you go term by term.
First term is y. So, you mark all slots where y = 1 as 1.
That's why the bottom half is all 1s.
Second term is x'z', so you mark all the spots where x = 0 and z = 0 as 1s.
okay, yeah got that, and then do the same for w'xz
Right.
wow, okay, that makes more sense, i think it was the way it was given to me in the instructions, im just nervous I won't be able to learn it in time to pass the course, prob gonna need to study discrete on my own to help out, is the Rosen book a good start?
Oh, I'm not sure on books.
Your 2 min explanation helped me more than the professor did in 2 lectures
To get the minimized forms from the table, you know how in some games, the board or map wraps around?
yeah
OK, it's like that.
If you go up from the top, you end up at the bottom. If you go left from the left side, you end up on the right side, and so on.
To get the sum of products, you want to create the biggest rectangles around 0s that you can.
That will tell you the reduced form at the top that you started with.
Oh, sorry, surround 1s with rectangles to get the sum of products.
So, the entire bottom half can be handled by one rectangle.
Similarly, the corners of the grid are 1s, and they can be handled by a 2×2 square that wraps and hits all the corner slots.
I think I read where groups can only be powers of two correct? so 1, 4, 8
Yes, the dimensions of the rectangle must be powers of 2, but they don't have to be the same power of 2.
So, the bottom half is covered by a 2×4 rectangle.
and instead of looking at it in terms of minterm since its product of sums, it would be maxterms
I forget what those terms mean, but covering the 1s with the largest rectangles possible does the sum of products and covering the 0s with rectangles gives the product of sums.
So, for the 1s, you've got the bottom half, the corners, and the last 1 is covered by a 2×1 rectangle (make the rectangle as large as you can, so don't do 1×1).
And you can't do 4×1 there, so you're stuck with 2×1.
okay, so I understand how you made the map, now how do I get the product of sums from the map, okay covering the 0 with rectangles and then what? group the 0s according to the rules, but then how do I get the actual terms?
OK, it's similar.
The map you have already has the 0s covered by the biggest rectangles possible.
So, you look at the three rectangles. Let's look at the one in the top row.
What variables don't change in that rectangle?
Well, w changes, but nothing else does. x y and z are all 1, 0, and 0.
So, you do (x' + y + z).
It's sort of like DeMorgan's.
gotcha, and we're saying that x' == 0 in this case
Right.
we want our term to equal 0
With a product like before, you'd have xy'z'.
Then you do DeMorgan's on it to get (x' + y + z).
And the same with the other two rectangles.
huh why does the one in the second row have a rectangle around 3 0s?
It's two 1×2 rectangles overlapping.
Right.
welp, I'm a day late and a dollar short on learning this, but honestly better late than never, I definitely understand a lot better now. I will probably fail this exam, but maybe I will at least get these type of questions right thanks to your help.
If you want to get more confidence, you can create some 4×4 tables like that one and fill them in randomly with 1s and 0s. Then, get the two reduced forms from that.
And then, copy the reduced forms to another page and get the table back from it.
If you want to.
True, that is very smart and great practice. I will definitely need to try that
Just make sure it's really random, so that you'll occasionally have some big blocks of 1s or 0s to practice on those.
,w Table[RandomInteger[{0, 1}], {i, 1, 4}, {j, 1, 4}]
Wolfram Alpha can give you some practice tables.
yeah I think that's a great idea that I didn't think about,
wow that's impressive
what are those second and third parameters?
Those are the dimensions of the table.
So, 1 to 4 for width, then 1 to 4 for height.
Just remember to use the 01 and so on labels on the top and left sides from your example before.
The ordering of that is important.
One bit changes as you go forward.
00 → 01 → 11 → 10 has one bit change each time.
If some other number of bits change, the Karnaugh table doesn't really work anymore.
gotcha, cool I will practice with that, and yeah I remember that was an important thing we were taught
It is interesting stuff it's just very challenging, and I'm prone to beating myself up, when really it's just something else to learn, especially discrete math because it applies directly to what I want to be: software engineer
Yeah, the only thing you can really do is try to get a decent understanding and practice it if you have time.
Yup, working on that discipline, because I know that a lot of algos and data structures have their foundations in logical proofs, which are covered in discrete
If you're interested in going further in learning proofs, there are math courses like discrete math beyond calculus that tend to require proofs.
Also, the math or philosophy department might have a course in first order logic (though make sure ahead of time that it covers that, some courses don't), which deals with symbolic logic skills useful in creating and verifying proofs.
SamuraiJack just above your original question was doing a bit of that.
I've heard it's a good way to understand math, or have a better appreciation for what's going on, I'm just trying to break my own personal mental block of giving up when things get tough, because I can't really grow and learn with that attitude, especially math
hey, does anyone knows where did the 4 came from?
Anyone know any useful relations between undirected Eulerian graphs and directed Eulerian trails?
Let $\vec{G}$ be a digraph that is not Eulerian, but where its underlying (undirected) graph $G$ is Eulerian. Show that $\vec{G}$ does not have a directed Eulerian trail.
The only related result I know of is: a weakly connected digraph $\vec{G}$ has a directed Eulerian trail if and only if at most two vertices have their indegree and outdegree unequal in which case for one of them $u \in V(\vec{G})$ : $d^+(u)-d^-(u)=1$
e57721
Absolutely lost with this one:
Show that $(0, 1)$ and $\mathbb{R}$ have the same cardinality by showing that $f(x) = \frac{2x-1}{2x(1-x)}$ is a bijection from $(0, 1)$ to $\mathbb{R}$
Haticus
what have u tried?
@spring hound thank you so much, there were like 3 kmap questions on my test and I got them right because of what you explained to me
This is not very discrete, but the exercise seems to give clear instructions about how to proceed. Have you sketched the function it tells you to prove is a bijection?
What are some prerequisites to understanding discrete math?
can anyone help me determine what maze generation algorithm I am using
okay so I have some grid of x by x
11x11
then the first step
create "neighbors"
pick any random neighbor to start the maze generation
Then randomly dig in a given direction
and keep the process going randomly digging until you find all the neighbors, back tracking if required
and it can only dig through to walls that connect non connected "neighbors"
so it can dig through itself
and then it is done
idk what this algorithm is called though
Hey, I was wondering on how to reduce this,
F(abcd) = (a'b + ab')(cd + c'd') + (ab + a'b')(c'd + cd')
What do you mean by "logically equivalent" exactly?
like if I had set A and set B, and I already know A=B, I mean logicially equivilant in the sense that saying "I have set A" is the same as saying "I have set B"
Sure I guess, but I've never heard of such a thing.
That is just the definition of A = B.
ok thanks
that clears it up, I was struggling to find the right words to finish the proof
is (d) considered to be well ordered?
I would say yes because the minimum of any subset is just the smallest combination of m/n.
Also could the set of rational numbers greater than let’s say 2 for example, be a subset of the rational numbers greater than or equal to sqrt(2).
well-orderedness is not a matter of consideration
however, G is finite. so yes, it is well-ordered.
G may be stupidly large (about a googol^2) but finite it still is
I see thank you 🙂
how is it finite? 😕
I think it has a smallest element possible (1/googol). So we can't have an infinitely small number. But it has an infinite maximum
Wuff
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
That doesn't look like a power set to me, you're missing a few subsets.
how can i set up a recurrence for climb stairs problem with a condition such a person cannot climb 2 stairs in a row?
i know without condition its t(n) = t(n-1) + t(n-2) with t(1) = 1, t(2) = 2
could you provide an example of what you mean for n = 3 or 4?
do you mean M = {0, {A}, {H}, {K}, {I}, {K, I}}?
so a person can climb either 1 or 2 stairs at a time, but cannot continuously climb 2 stairs. for example, for n = 4, a person cannot climb 2 stairs + 2 stairs, for n = 5, cannot climb 1 + 2 + 2 or 2 + 2 + 1 but 2 + 1 + 2 works
okay
i actually found the relationship T(n) = T(n-3) + T(n-1), but how can I find the solution for the recurrence?
sorry i got distracted. yes this is the correct relationship. do you know what the characteristic polynomial is?
yeah i was trying to solve using that
but uhmm
tbh i found that relationship by trying to find patterns
so i dont rlly know why that relationship works
and is x^3 = 1 + x^2 the characteristic polynomial for this?
cuz then the root is a bit weird
i can't quite put together a good explanation as of now, however, the way to think about it is to look at how the number of ways to get to the last step is determined by the number of ways to get to the second to last step (n-1), the third to last step (n-2), and the fourth to last step (n - 3)
i got roots like 1.146557123187677 lol
there are three roots, two of which are complex
oh then i have to involve complex roots as well
yes but finding the roots to this polynomial seem a bit difficult
oh
the question didnt ask me to solve the recurrence
lol
if f(x) is smth like (x-a)/(x-b) and g(x) is constant, then is f(x) = O(g(x))?
im pretty sure that f isn't just a linear eq so
Whenever you reach a step you can either choose to move 1 step or 1+2 steps, and once you set the right start conditions that's the only context you need to consider twos in.
yes. lim f(x) = 1 as x --> infinity
thanks!!
can some one explain this to me
Can someone explain why I was wrong in these?
can I say $x^2 - y^2 \equiv 0 (mod p)$?
Opify
Yea sure
I dont understand the solution for 6d
do you guys know what this is asking? i’m kind of confused
@haughty peak part a asks you to draw two weighted graphs which are isomorphic if you ignore the edge weights but aren't if you don't.
what do they mean by weighted graphs tho? the number of degrees a vertice holds ?
no
...you could have said "I don't know what a weighted graph is", honestly. would've been clearer what your confusion is.
my bad
a weighted graph is a graph in which each edge has a number attached to it.
that number is, as the name suggests, often called the weight of its edge.
I had a random thought the other day that "self similarity" might be formalised in terms of isomorphism.
Today, I tried sketching out what a formalism might look like (I stuck to sets because I don't know any other mathematical abstractions well enough to play around with them in interesting ways).
It's kind of bare, but I think it's comprehensive enough (any notion of similarity can be encapsulated in our choice of equivalence relation) and unambiguous given an explicit specification of said equivalence relation.
https://www.lesswrong.com/posts/zhhYwM7gk8LZsDzxj/dragongod-s-shortform?commentId=sLC9ANwAGCiYtCDng
Comment by DragonGod - A SKETCH OF A FORMALISATION OF SELF SIMILARITY
INTRODUCTION
I'd like to present a useful formalism for describing when a set[1]
[#fn93yfg9lmcso]is "self-similar".
ISOMORPHISM UNDER EQUIVALENCE RELATIONS
Given arbitrary setsX,Y, an "equivalence-isomorphism" is a tuple(f:X→Y,f−1:Y→X,∼
R⊂X∪Y×X∪Y), such that:
∀x∈X,∀y∈Y((...
makes sense. so i can basically draw two triangles for which they have 3 vertices and are isomorphic, depending on how i draw them, and just add different weights to the edges?
your graphs don't need to be triangles specifically
though with 3 vertices there is not much to do on that front
but yes, draw two copies of the same (unweighted) graph and then add different weights to the edges
i understand but yea drawings are limited when it comes to 3 vertices is what i know for sure lol
and ight
theres only four different graphs on 3 vertices up to isomorphism i think
triangle, path, edge w/ loose point, or 3 loose points
@stray reef
can someone explain why this is false?
I'm imagining 2 small circles joined together inside a bigger circle. Doesn't this imply that everything outside of the 2 smaller circles, is bigger than everything outside the bigger circle?
Just thinking again... is it because A, B, and C can be the same size?
so >= would be the more valid response?
am i on the right track? im a bit confused here
You were so close until the fourth line, starting "Suppose we have ..."
Also just want to point out that you need to write \{ and \} to make braces appear in TeX. Also be aware that you're not using math mode in some places that you should.
Anyway, onto the actual argument
You should simply say "if a R b, then by definition b is in [a]".
However you start to go off track
You begin by assuming x is some arbitrary element of [a], but this is totally extraneous
im listening.
Why do we have to consider an arbitrary element of [a]? We're not trying to prove anything about all elements of [a]
As I pointed out here, this is enough.
There are some further issues though
It is worrying that you say x \in b... this is not meaningful
You rang?
Some new guy trying to be funny
@outer kayak can you explain what your thought process was when you wrote x \in b? It concerns me that you put this down
yes @coral parcel @young oriole entire comment history is him being not so nice
one second catching up to your comments
As you wish.
you mean as my if then template? or at the suppose part
true
I don't know what you mean by that, but I mean that what I said there finishes the argument after the 3rd line. Everything after "Suppose we have..." is not only unnecessary, but incorrect
this was following the line of thought of that arbitrary element, you pointed out its not needed
will remove.
OK it concerns me that you're saying this, because the issue I have with the statement x \in b is not the line of logic, it is the fact that b may not be a set, and may not contain anything at all
What do you mean precisely by x \in b?
what i was trying to do was show if [a] = [b] from part 1, and x is an element of[ a], then x is also an element of [b]
Right, so this was just a typo and you meant x \in [b]?
I should point out that this is just what it means for two sets to be equal
yes
[b] not b is what i meant
i guess my question is how can i go from what i have now to my conclusion
You haven't argued why [a] = [b] properly
But it really doesn't matter
I'm not going to walk you through this because I think you can do this entirely on your own. Try to argue why it's sufficient to show that a \in [b] implies b \in [a]. (as I have helped you show)
ok thank you
Can someone please explained in detail why this answer is correct?
does anyone have any ideas here ?
@brave rock ?
Hi, please don't ping me to ask for help. I'm not always available or willing to help.
I have a life outside of this discord server!
got it, sorry
You have a group of n physicists. Among these you want a subgroup of size k that get to inhabit Mars. One of the chosen physicists has to fly the spacecraft.
See if you can write this in two different ways as the product of a number of choices.
thank you i took care of it
what about this? the RHS seems straightforward but the lhs....
you want to pick n things out of 2n things
imagine dividing your 2n things into 2, n things
once you get good at seeing a bunch of additions as just one sigma, it wont be so overwhelming
Hi, can someone advise me on this problem? I'm not sure how to approach it
the k is throwing me off
Can you compute the probability that the card you see in step n has not been seen before, independently of which other repetitions there might have been?
(It might be easier to think of the probability that the card you see in step n will not be seen in any of the steps n+1, n+2, ..., k).
ok so step 1 would be 52/52 , step 2 would be 52-1/52, step 3 is 52-2/52.... step k 52-k/52
wait i think i read your statement wrong
Try the second formulation instead.
i'm not sure what you meant in the second sentence
Suppose you draw a card with replacement 17 times.
What is the probablity that whichever card you draw as number 8 is the last time you see that card?
Huh, why?
I mean the 8th draw.
ok so basically all cards up until the 8th draw
No.
draw 1 card with replacement?
oh wait
we're not looking to draw a specific card
yes so 1
and after the 8th draw would be 1 - 1/52?
That fraction is certainly part of the calculuation, but it's not the final probability I asked about, right?
(1 - 1/52)^9
Yes.
Now imagine we're drawing cards with replacement 17 times, writing down what we get on 17 separate lines of a piece of paper.
Afterwards for each card we've seen, we put a star next to the last time we saw that card.
Notice:
a) The exercise is to find the expected number of stars on the paper.
b) What we've just computed is the probablity that there's a star on line 8.
so in this case, we're putting a star at every step
Only the steps where we see some card for the last time.
If some card appears multiple times, we'll only put a star the last of those times.
how do i convert 25 into a log with base e??
give me tips or advice to master graph theory (from a programmer's perspective)
how can I prove the correctness of euclid's gcd algo using induction?
for verifying its an identity can someone let me know if my argument is correct?:
f(A, D) = A for a unique D. This means A=emptyset and D=Not(A). Since A is an element of P(U) this can only be true if U is empty. But it is given that U is not empty therefore it does not have an identity
anyone can solve C?
I mean if you show why it means that A = \emptyset and D = A' then sure
You could approach it differently with a contradiction
we need to show $\overline{A \cup D} = A$, but also $\overline{A \cup D} \subseteq \overline{A} \not\subseteq A$ which contradicts it
peaceGiant
A is empty set and D = A' because there is no other way I can get not(a union d) = a
is this not enough?
why is there no other way to get not(a union d) = a?
you need to formally prove that
ahh
how is this a contradiction? (why is not A union D a subset of not a)
ohh
no wait actually i dont see it..
how would the proof by contradiction start? its like we assume not (A union D) = A?
im not sure how id formally prove this
We need to check given $f(A, B) = \overline{A \cup B}$ whether $f$ has an identity element.
I'll assume the answer is no, and prove by contradiction.
\
With contradiction, you have to show that given "$f(A, B) = \overline{A \cup B}$ and $f$ has an identity element is false.
\
We are given that an identity element exists, say $D$, and that the following is true
$f(A, D) = f(D, A) = A$ or $\overline{A \cup D} = A$.
\
But if we assume this, we get a contradiction because $A \neq \overline{A \cup D}$ which I showed above.
For $A$ to be equal to $\overline{A \cup D}$, the first has to be a subset of the second, and the second has to be a subset of the first, but we know that $\overline{A \cup D} \not \subseteq A$.
peaceGiant
so not(A union D) = A can't happen if we assume an identity element D, which means our assumption is wrong and an identity element doesn't exist (assuming non-empty U)
thanks! This makes sense now
isnt the answer to this question going to be the first one since all natural numbers have to be defined in A(x)
since natural numbers are just positive integers?
Yeah.
Can the greatest common divisor of 2 integers be symmetric and antisymmetric?
Glad to hear it 🙂
Good day, I am new to the server. we started a new topic on congruences i am struggling to understand, can i post the question here?
What do you mean by symmetric and antisymmetric with regard to a function with two inputs and one output?
@celest drum you can and should post your question.
something like this where two integers are related if they are co-prime
its definitely symmetric so its not asymmetric
Ahh, to be both symmetric and antisymmetric, I think only items that would help make the relation reflexive are allowed, as in (a, a) (though it doesn't need to be fully reflexive, as it can leave some out).
if its symmetric here, doesnt that contradict antisymmetric here
since gcd of two integers can be co-prime and they dont have to be equal
If you have some that have (a, b) with a ≠ b, it can't be both.
If there are no items or the only items are (a, b) where a = b, then it will be both.
so its not antisymmetric then
got it thank u for the clarification
No problem.
one quick thought, if co-primality is not reflexive, we could say its not irreflexive either since the gcd(1,1)=1 right?
I dont understand how this is working.
it is from the topic of congruences so the equal sign is meant to represent congruent
Yes, that's correct.
thats kind of interesting how something cant be reflexive or irreflexive
Yeah, irreflexive doesn't mean not reflexive in the logical sense of not, because "not" means "every other possibility except this".
In this case, there are lots of ways for relations to not be reflexive. For example, it can be missing only one (a, a) element and fail to be reflexive, without losing (b, b) and so forth.
Irreflexive, on the other hand, is an opposite, which isn't "every other possibility except this", it's "the one possibility that is farthest away from this" or something along those lines.
Like, on a traffic light, the opposite of red is green, but the "not" of red is either yellow or green.
@shut bolt
is it the "how" that escapes you, or the "why"?
good way to put it
The why... why do we use to the power 3. why not any other power like 2 or 4. How do i decide which power to use
does not really matter
they went with repeated cubing but honestly repeated squaring would have worked just fine, maybe being more laborious
if you want to be fancy you could examine the representations of 333 (the exponent) in bases 2, 3 and maybe 5(?) to see if one of them has significantly more zeros than the others
hahaha baby steps please i am still trying to grasp what is happening here
this is why i asked you if you wanted the how or the why
i.e. the mechanics of the steps that are happening or the overall motivation
i guess both. The topic was introduced yesterday that was the example after going through the theory of congruences so my knowledge is a bit foggy
the mechanics
okay so the how
right. so do you know some basic properties of congruence?
such as the fact that it respects addition and multiplication
namely if a = a' and b = b' (both mod m) then a+b = a'+b' (mod m) and ab = a'b' (mod m)
yes, well i learnt that yesterday but yes i understood that
right
then do you understand up to and including the line that says "find the remainder"?
yes
the 1st part i did not get is why we choose the power 3 which you explained that it doesnt really matter
I guess that is mostly what i dont get. What is happening on the righ hand side i understand. why we chose 3 thats what was the main question. If i encounter a different question like: Show that 6^321 - 6 is divisble by 123. Which power do i start with
well you are going to compute 6^321 mod 123
you cannot really go wrong with repeated squaring
ok let me attempt that then get back to you give me a few minutes. Thank you so much for the help so far
Can I say this isnt symmetric cuz of V(1,2) and V(2,1); and this isnt asymmetric and antisymmetric cuz of V(3,7) and V(7,3) right?
What do you mean with 3 and 7?
3 and 7 are integers in the relation
Why do you say that?
cuz 3/7 is not related and 7/3 is not related so its symmetric
How would you describe the relation in simpler terms than they give?
well V(x,y) is symmetric is V(x,y) is related and V(y,x) is related
but that cant be true because V(1,2) and V(2,1) makes it false
No, I mean, if I were to ask you what the relation describes, what would you say?
the relation is if two integers can evenly divide
No.
There are several things that can mean. They both divide each other, one divides the other but it doesn't matter which one, the element on the left divides the one on the right, the element on the right divides the one on the left.
Which one do you mean?
for symmetric?
No, to describe the relation.
i mean this is the relation
Yes, and what is it in simpler terms?
the one on the left divides evenly with the right
OK, the left divides the right.
Another way is that it's an integer on the left and an integer multiple of the left on the right.
Now, how do 3 and 7 fit into that?
I used 3 and 7 to prove that the relation is not asymmetric and not antisymmetric
yes but x and y are defined to be any two positive integers here
they dont have to be a multiple of each other
No, that's incorrect.
The definition isn't that x ∈ ℤ⁺ and y ∈ ℤ⁺.
It's that y/x ∈ ℤ.
That's a stronger requirement than them being positive integers.
I mean thats what the instructions say
They say several things.
They say both that they're positive integers and that y/x is an integer.
You can't leave part of it out.
3/7 is not an integer.
7/3 is not an integer.
(3, 7) is not in the relation.
(7, 3) is not in the relation.
yes what i'm saying is that both are not related in both ways
what channel should i go to for quaternions
if both arent related in both directions then they are symmetrical
That's incorrect.
Symmetric doesn't mean that you need at least one for every pair.
It means that whenever you have one, you also have the other in a pair.
You don't fit the "whenever you have one" part with that.
You can either have (a, b) and (b, a) or neither for all a and b.
If that's true, then it's symmetric.
For example, (1, 1) being the only thing in a relation would be symmetric.
yes but the relation isnt necessarily symmetric for other integers
so we cant say that the relation is symmetric for all x and y
You need to show a counterexample.
yes
Where one is in the relation, but the reverse isn't.
Yes, that's a good example.
ok now for asymmetric
u said i cant use (3,7) cuz they need to relate in one direction and not relate in the other right?
so in that case it is asymmetric meaning its also antisymmetric right?
No, it's not asymmetric.
Asymmetric means if you have one way, you cannot have the other way in all cases.
(3, 7) doesn't help because it doesn't fulfill the "have one way" thing.
You need to show that, for everything in the relation, if (a, b) is in, then (b, a) isn't.
Neither of them being in is fine, because the if part is false, so the statement is true.
but when u say we need to have something one way, cant that one way be not related, and the other way just cant be related also
No, for if X then Y to be false, you need X to be true and Y to be false.
It's like an insurance thing.
If your house burns down, then I pay to rebuild it.
If your house doesn't burn down, I'm fulfilling my end.
If I pay to rebuild it, I'm fulfilling my end.
I hope you able to read past the handwriting 😅 . i tried to the power 2 then also to the power 4 is this correct?
The only way for me to not hold up my end would be if your house burns down and I don't pay to rebuild it.
,calc 6^2 mod 123
6^4 mod 123
6^8 mod 123
6^16 mod 123
6^32 mod 123
The only way for an if then to be false is if the if part is true and the then part is false.
I just cant think of any integers that relate in one direction and also relate the other direction
Results:
36
66
51
18
0
There is one pair.
are we assuming x and y are different integers?
Does the problem require that?
@shut bolt @spring hound could you perhaps take your convo to #proofs?
er
that one
OK.
it's a little hard to have 2 convos in the same channel
,w (6^4, 6^8, 6^16, 6^32, 6^64, 6^128, 6^256) mod 123
hope this works
okay
let's check against yours
@celest drum ok your arithmetic checks out
Can you explain what you meant by this
do you mean semantics or intention
Semantics. How would i actually do it to make achieve the same thing but faster. repeated squaring works but it is pretty long
right so ok
let me try to demonstrate on 333
idk if itll be a good example
,w 333 in base 2
,w 333 in base 3
in binary, 333 is represented as 2^8 + 2^6 + 2^3 + 2^2 + 2^0
meaning that to compute a^333 mod m youd need to multiply 5 things together at the end
i.e. a^(2^8), a^(2^6) etc.
while in ternary 333 is represented as 3^5 + 3^4 + 3^2
which means only 3 things need to be multiplied at the end
so it's a tiny bit of cost savings
Oh i see. very well let me work on different examples then. Again thank you for your time you really helped me a lot
def need some verification, but given these conditions, I think its still possible for both sides to co-exist aka be true at the same time right?
since co-primality doesnt have to be two prime numbers, it could be a prime and a non prime number that can still be co-prime
hey all, i been working on this proof for hours and can't figure it out.. any one wants to give it a shot? Must be proof by induction.
Without using the Tree theorem (which we will see in the next couple of days), prove that if a
graph G is connected and |E(G)|≤|V (G)|−1, then G is acyclic.
(G is acyclic iff G has no cycles).
Please don't spam your question across channels. Keep it to #proofs-and-logic now.
Alright, I am sorry.
I think a proof by contradiction would be enough.
If I'm not mistaken, something like: ||If a cycle of length k <= |V| exists, then the cycle requires k edges. ||
||But then all other vertices that are not a part of that cycle (in total (|V|-k) vertices) also require at least one outgoing edge towards another vertex to be connected (since if a vertex has no outgoing edges, the graph can't be connected)||
||Thus in total you must have at least* |E| = k + (|V|-k) = |V| edges which is the wanted contradiction (we had assumed |E| < |V|.||
,tex \emph{How can i approach this problem?:} \newline
A = {1,2,3, ..., 8} \newline
\emph{How many different surjections are there from A to A that always send even numbers to an odd number?}
Magnus
,tex \emph{Would this approach be correct?:} \newline 4\cdot4\cdot3\cdot3\cdot2\cdot2\cdot1\cdot1
Magnus
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
Looks good to me
Although you should try to justify how you reached that exact number
I would recommend graphing the function f(x)=2x^4-x^2-2. Check the subset for which the graph lies below (or on) the x-axis.
Maybe it could be found out directly as well, I'd just be too lazy to do that
i tried solving the inequality
but
would it take too long to solve the quartic?
Yeah, I think you can avoid it altogether
I don't think the point of this exercise is to be able to solve quadratic inequalities anyway
ok ill have a go
would u still draw a graph here?
guys my answer is 0.005 is it correct?
can someone help with this
I can't see why this is also strictly increasing and strictly decreasing.
f(x) | y
1 1
2 1
3 1
4 1
I can see f(x)≤y and also f(x)≥y, so that should only satisfy increasing and decreasing. But I don't understand strictly meaning > or <
am I looking at it wrong?
By f(x): 1, 2, 3, 4 do you mean the values that x can take?
if that's the case look at the domain of the function again, f: {1} -> {1}
This time the expression can be worked with directly: x(x^2-sqrt(2))<=0 or x(x+sqrt(sqrt(2)))(x-sqrt(sqrt(2)))<=0. You can check for which intervals you have a negative sign for the expression
There's one thing you overlooked 👀
What is x supposed to be?
Oop my bad
I processed your answer incorrectly
It's correct 
thanks. Either way, I don't see how it can be strictly increasing or decreasing
1 is not > 1
and 1 is not < 1
the definition of increasing and decreasing is whenever you have two inputs x, y such that x < y,, then the for the values of the function it should be true that f(x) < f(y)
however, since you are working on a domain with only one input, that first part of the implication is false, there is no other element y you can choose that is going to be greater than one
so this would be an example of a vacuous truth (I think!)
So by definition of conditionals if the premise is false then the statement is true?
yep, if x<y then f(x)<f(y) would be of form: F -> F which is always true
Thank you!!
yall think this is a contradiction based on these conditions? I think it isnt cuz other integers outside the subset S could work for A(x) right?
ms says inf A does not exists
rip
how
Oh, I didn't notice closely before
But for x sufficiently large, x^3>\sqrt(2)x
For negative x, the inequality flips
Notice, for instance, that for $x=-10$, [x^3-\sqrt{2}x=-1000+10\sqrt{2}<0]
?
Why is TeXit down now
Anyway
The point is that the function f(x)=x^3-sqrt(2)x is negative on (-∞,sqrt(sqrt(2)))
Which means you don't really have an infimum
icl im still confused why inf A isnt -sqrtsqrt 2
Note that the function is also negative in the region I marked
Not just the yellow part you highlighted
yh
And over here we don't really have a lower bound
It just keeps sinking to negative infinity
It's positive on (sqrt(sqrt(2)),+∞)
Note that the graph is above the x-axis on that interval
How?
Well sure, here it is below the x axis
But after that it is strictly positive
Which is why it won't be a part of our set
And we do get a sup


so could we say this function is 'bounded above'?
It is not
The point is that we were only interested in those values of x for which f(x) was non-positive
That subset is bounded above, yes
But the function itself is not, as you can see from the graph
ight cool that makes sense now cheers
lastly i have this problem
my max is correct
but everything else is wrong
1
Why did you put sup(f(x)) as π/2 then?
i thought the interval notation was between pi/2 and -pi/2
That's the domain, yes, but the sup/inf/min/max are being sought for the function f
Which refers to the range of f with the given domain
i see
This would be too much filler if they only wanted to ask the details for (-π/2,π/2) lol
Check the function definition: they defined f to be sin(x) on all points but π/4
What is sin(π/4)?
You have your answer 
yh that makes a lot of sense
gotta be careful with these questions
thanks
No worries, goodluck!
can anyone help please
im looking to finds solutions of predicates turned into english
The Problem is: Use the Well Ordering Principle to prove that every finite nonempty set of real numbers has a minimum element.
I came across this solution but I am having trouble understanding what is meant by {x₀}
counter example. Can i say for x {1, 2, 3}, consider p(x) to be x is an even number and q(x) to be x is an odd number. the first statement will always be true but the second statement can be false if we take x=1 for p(x) and x=2 for q(x)
A^2 means that R is a subset of (AxA)x(AxA) and A is an element of P(R) where P is a powerset?
but if thats the case this wouldnt make sense. i cant add sets
Where do you have to add sets?
is what I said about R right?
The relation R is defined in a way such that two pairs of numbers in A are related iff they satisfy the given inequalities
Yes, that is correct
Are you conflating $R$ and $\bR$ here?
Chaigenvalue
(The first symbol refers to the relation on A, the latter refers to the set of real numbers)
no. A is a subset of real numbers right? so A would an element of a powerset of realnumbers
Yes, that is correct
so isnt a subset of the relation what i said above?
No, this isn't right
(a, b) is an element of AxA right?
but A is an element of a powerset
ohh so since a is an element of A it would get the value...
Yes
alright i see now. Im gonna attempt to solve it now again.Thanks

for asymmetric would I need to show (a, b) (b,a) implies a=b?
if i take (2, 3) R (3, 2) this would satisfy both conditions but it isnt asymetric right?
wait no id need (a, b) R (c, d) and (c,d)R(a,b) and id need to show that (a, b) = (c, d)
tho idk how to do that
this one is correct
generally speaking, when proving something asymmetric, (a,b),(b,a) implies a=b yes
but for the exercise above?
which exercise? sorry
^
I'm assuming you're tackling part b, which in that case you need only draw a diagram
oh sorry for being unclear. I am still doing part a
need to prove its poset
so i need to show its asymmetric
anyways what I did is :
take (a, b) R (c, d) and (c, d) R (a, b)
(a, b) R (c, d) is true if a-b <= c-d
(c,d)R(a,b) is true if c-d<=a-b
therefore a-b=c-d which means (a,b)=(c,d)
that's perfect, yes. sorry, after reviewing your previous comment and the exercise itself that's an excellent proof
now you just need to prove that the relation is transitive and you're fine, assuming you haven't already. use the same line of reasoning by considering pairs as elements rather than just a,b etc
thanks!
Can you place infinitely many queens on an infinite chessboard so that each queen threatens exactly six others?
The answer is 'yes' when six is replaced with five (and anything below), but I'm unsure about this case
i know it cant be the last one cuz 1 isnt a prime factor, so how would I approach the remaining two choices
<@&286206848099549185>
how does one approach B?
do you have an idea whether it is true or false?
pretty sure is False
yeah
so you want to find a counterexample
just wondering what kind of hint I could give that wouldnt reveal an answer outright
basically, you want to think in terms of prime factors
where a has a lot of one factor, b has a lot of another factor
i already know a counter example but i feel like i have to prove with contradiction or contrapositive or something
uh
if you want to show a conditional p -> q is false
suffices to show an example where both ~~not p and q ~~ p and not q holds
in fact, a counterexample is how you are supposed to prove it is false
so you are confused
mb
p and not q
i see
if you know how to work with quantifiers, basically (b) is a statement about 4-tuples of natural numbers
,,\forall (a,b,m,n) \in \mathbb{N}^4 P(a,b,m,n) \implies Q(a,b,m,n)
lems
the converse would be equivalent to
,,\exists (a,b,m,n) \in \mathbb{N}^4 \neg(P(a,b,m,n) \implies Q(a,b,m,n))
lems
if you know $\neg \exists \neg$ is equivalent to $\forall$
lems
is there a way to prove that the converse is true?
if the converse is true it means the original statement is false right?
wait mb
I'm using converse incorrectly
I mean the negation
and yes
if the negation is true the original statement is false
and the negation is this
how do you show this is true
of course, by finding a 4-tuple that satisfies this
aka a counterexample
yeah, so that is sufficient
to be super clear, if someone makes a statement such as "all apples are red"
to show this is false it suffices to exhibit an apple that is indeed not red
the problem is that expression could be divisible by ab
to see a concrete example, write this out in terms of your counterexample
like 3 = 2*1 + 1 and 8 = 6*1 + 2
Ok thanks
please help me
@weary tiger how are U and R defined ?
@warm ferry yes
im going through past exams but they dont give solutions :/ what are the T/F values for these? (and how)
Can you show a concrete Hamiltonian cycle in (c)?
hamiltonian means it just reaches every vertex, right? unless my understand is incorrect
A graph is "Hamiltonian" if it has a Hamiltonian cycle. What you show is just a Hamiltonian path -- it has ends that don't connect to anything.
ah so it would be a hamiltonian cycle if it could do this illegal move and it ended on htat adjacent vertice?
Yeah.
Can someone describe a graph with radius 4 and diameter 6
I am trying to generalize to graphs with certain kinds of radii and diameters but cannot think of a such a graph to get started
The circle with a radius of 4, has a diameter of 8
Can you explicitly state what you don't understand
Can a graph be labelled as both irreflexive and complete, or do i need to refer to it with a different term
An example may be "is not equal to" over the set of reals.
Is primality testing NP hard true? Or is it open?
You might want to see this article: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/primality_journal.pdf
This is known as the AKS primality test.
,,\exists (a,b,m,n) \in \mathbb{N}^4 \neg(P(a,b,m,n) \implies Q(a,b,m,n))
blank.....
Minimal Elements: {6,7}
Maximal Elements: {1,2,4,7}
Minima = Empty Set
Maxima = Empty Set
Is this correct for this hassediagram?
seems so!
how would I start proving this
You could show it with simple algebra, noting that n Choose m = n!/[(m!)(n-m)!] and using that for all binomial coefficients, or you could give a combinatorial proof showing why both sides count the same thing with different approaches
if there is no restriction on the method you need to use, go with the algebraic way
(even though the combinatorial one is briefer)
combinatorial one is more fun to write imo
you are a mad man then lol
well it's more fun than swapping around n's and m's
did you get the algebraic one?
For the algebraic proof, expand one side into factorial form
Franz
yea
Think about how the right hand side of the equation looks like, in expanded form
I just mean factorials, like this one
???
So you have ^ from the left hand side
try writing the right side of the equation, in this form
Like this????
uhhh
I'm trying my best
._.
You can't write n! 3 times like that
1 sec I have to google how to latex the combination thing
oh ik how its like matrix n\k or something like that
$\begin{pmatrix} n \ k \end{pmatrix}$
arrow891
btw you're required to add parentheses for the factorial, so the first line isn't notationally correct
2nd line is fine
3rd line, could you explain what you did
I broke up the fraction
I mean you can't write $\frac{n!}{n-m!m-k!k!}$ for $\frac{n!}{(n-m)!(m-k)!k!}$
Franz
arrow math? o_o
yea
but what do i do after the second line
first I think we really should talk about the 3rd line here
So for proving equalities, you can try simplifying from both sides, and see if you can arrive at the same formula
ur missing some \ i think
You have ${n \choose m}{m \choose k} = \frac{n!}{(n-m)!(m-k)!k!}$
Try doing the same for ${n \choose k}{n-k \choose m-k}
Franz
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
how would one do that for n-k and m-k
You know what ${a \choose b}$ is, so you plug in a = n - k and b = m - k
Franz
c'mon just expand the combination thing
idk how to expand something with 3 letters
my professor didn't say how
wikihow doesn't teach it nor does youtube
quora can't even help me
and u best believe wikipedia didn't help at all
you assume both letters are like one single letter
heh
You can do that!
You're basically expanding two letters as usual and saying "oh, but this one letter I actually mean these two letters"
exactly-ish
so like n is n and m is both m and k?
n is n-k and m is m-k
it's not a theorem
you just take ${n \choose m}$, then substitute n-k for n and m-k for m
Franz
okay let's rewind a bit, do you know what you're doing with ${n \choose m}$?
Franz
like what it means
yea
How do you prove that two sets are equal?
Two sets are equal if and only if they both contain the same elements
could you describe it?
The type of proof defends on the problem,
For instance you could suppose there exists an element unique to one of the sets and build a contradiction
Or, prove A is a subset of B, and B is a subset of A
A ×(B ∪C) = (A ×B) ∪(A ×C)
These would equal right?
The first one would be like for example:
(A1,B1),(A1,C1)
And the second part would be:
(A1,B1), (A1,C1)
So they would be equal?
Ok
okay these are clearly equal, proof tho....
yeah so for proof i guess I would just do what?
actually I'm not sure how to formally write a proof for this
I mean I could come up with some notational proof but that's probably not what your professor's expecting
@hollow tartan
I just need justification, so i could probably just go with an example or something right?>
I think the method you descibed would suffice
wait I got it, If you want to prove this rigorously all you have to show (sentence by sentence) is
$x \in A × (B ∪C) \Rightarrow x \in (A ×B) ∪ (A ×C)$ and $x \in (A ×B) ∪ (A ×C) \Rightarrow x \in A × (B ∪C)$
Franz
ok
lemme look at my notes
Ok i think i understand now, tysm ur awesome
Is the following relation reflexive?
R1 = {(a, b), (a, c), (a, a), (b, a), (c, a)}
And
A = {a,b,c,d}
its not right? because it's missing (b,b) and (c,c)?
Indeed it isn't, for the precise reason you give
yoo, i got an induction problem in a quiz can anyone help me?
id appreciate it a lot
<@&286206848099549185>
how do you find the maximum antichain for this?
just a bit of trial and error is enough
(and by dilworths theorem its easy to check whether thats the largest size. although you only need the easy direction, so you dont even need the full theorem)
i dont actually know what antichain is so what is the tiral and error process
step 1: look up the definition of antichain
how do you expect to find something without knowing what it is
mm yea i was looking at it in my uni notes and they never really explained it
so woukd {1, 2, 5, 7} be an antichain?
{2, 3, 5, 8, 9} is maximum antichain?
Can someone help me solve this?
This is what I tried I dont know how to take this forward from here
{1,2,5,7} is not an antichain because 1 < 7
{2,3,5,8,9} is not an antichain because 5 < 8
those diagrams are transitive. 5<6 and 6<8 implies 5<8
so are you suggesting the maximum antichain would be {2, 3, 4, 5}
hmmm, alright ill put the full question here because the students answer is different - most people are saying the max antichain is of size 5 (they could be incorrect), which makes it a bit more confusing, unless there's something i missed
there is a very obvious partition into 4 chains
and {2,3,4,6,7} is not an antichain cause 3<7
ah ok you drew the diagram wrong
maybe that graph i sent was wrong
clearly 3 is not comparable to 7
yeah look that was also taken from a different students notes i was trying to figure out. but then from this graph, a
max antichain could be {2, 3, 4, 5, 6} ?
5<6
but 5 isnt connected to 6 is it
Should be