#discrete-math
1 messages · Page 18 of 1
the idea is that if you have a function from X to Y, and an element of X, you can then get an element of Y by applying the function
so for these two sets, X = {1,2,3} and Y = {1,2,3} what is an example?
f(1) can equal any element from set Y?
you may want to read an intro to functions here https://www.mathsisfun.com/sets/domain-range-codomain.html
Learn about the differences between Domain, Range and Codomain. In its simplest form the domain is all the values that go into a function ...
hi
when doing mods
for example (-133 mod 23)
do you do - (133 mod23) or (-133) mod 23
bc they give different answers
and idk which is the proper way to write it
In programming languages, mod generally behave like a multiplicative operator, so it will parse as -(133 mod 23).
However many programming languages also define the operator such that a mod b is always either 0 or has the same sign as a, so (-a) mod b and -(a mod b) actually gives the same results in that case (unless the negation overflows).
This is relevant because mod as a binary operator is fairly rarely seen in mathematics. Mathematicians prefer to speak of the three-place relation a ≡ b (mod c). It is not completely unheard of for a binary mod to be seen in a mathematical context, but it is rare enough that there are no strong convention about its operator precedence.
In practice, write the parentheses no matter whether you mean one or the other. That way you won't risk any misunderstandings.
o.o i dont get wht you said
this is my problem
so im trying to do it in parts
bc if i do one part wrong
then the entire thing is wrong
i put it in a calculator but it shows me a different answer so idk if im doing it wrong
or if its being typed incorrectly online
i can show you my work so far?
excuse me?
This mostly seems to be a problem about knowing which convention the person who wrote the problem is using.
Your guess about that is as good as mine, I'm afraid.
hi
ok um
i have another question then
am i reading this correctly
like these numbers...
is she saying i have to multiple all of the exponents
from each set
.. like those are huge numbers
do i have to do tht?
You're probably supposed just to show the result as a product of prime powers, like the starting numbers are given to you.
So in the first one you would answer $3^5 5^3$ rather than $30375$.
Troposphere
hi
srry
i dont understand wht you mean
can i show my work?
ill show it..
@coral parcel
Yeah, that's definitely not the way to go about it.
You should have been taught how gcd relates to prime factorizations.
omg i think i get it
ill show you wht i did
ryc told me about it
acutally i dont get it
ill just show wht it hv
@coral parcel
You have at least five 3's on each side.
yes
Then why are you only writing 3^3?
srry i wrote 3^3
i meant 3^5
so i have 3^5 and 5^3
in common
idk wht to do next
There's nothing more to do than write 3^5 · 5^3 down as the anser.
wait so i just do (3^5)(5^3) and whatever i get is my answer?
No, you literally write $3^5 5^3$ and call it a day.
Troposphere
oh
wait so im stuck on the second one now
second bullet
can i just like
multiple the first set
the issue is like if i find the lcm, itll be the same numbers
Well, there is no prime that appears on both sides.
But you can also write the given numbers as $2^0 3^0 5^0 7^0 11^1 13^1 17^1$ and $2^9 3^7 5^5 7^3 11^0 13^0 17^0$.
Troposphere
2^0 is just 1.
well yeah but why did you do that
Because now you have the same primes for each number.
oh..
And you can just take the minimum exponent for each of the primes, like you did before.
Right.
You should be getting $2^0 3^0 5^0 7^0 11^0 13^0 17^0$.
Troposphere
ohhh
bc i should have started at 0
not 1
i see wht you mean now
tysm
wiat
how can tht be right
can i show you my work
bc i still dont get it..
@coral parcel
Well, first state clearly what you mean by "that" when you ask how "that" can be right...
?
I'm assuming that when you wrote "tht" you meant "that", but I still don't know what "that" is.
oh tht means tht for short
bc i like to type fast, i tend to shorten words even if its unnecessary
its a bad habit
Why do you have each prime appearing two times in the result?
2 is the same as 2, though.
Sorry, I'll bow out here. I seem to be unable to communicate.
I really don't have the best idea of what is going on here, but it seems possible that what Troposphere was getting at is that in a prime factorization of any number, you decompose it into the primes that make it up (raised to whatever powers are necessary). For example 10 would be 2^1 * 5^1. Or 27 would be 3^3. What you wouldn't write is that 10 is 2^0 * 2^1 * 5^ 1, because although true it is unnecessary to include 2^0 which is just multiplication by 1, as you can add exponenets with common base to create
AustinU
referring to this
well, that doesn't make much sense because 2^0 is just multiplication by 1. So if your goal was to write each of the primes uniquely with their own exponents it wouldn't make sense to write the two twice. Either you have a 2, and write 2^1 or you don't and write 2^0, not both.
wht is wht i mean
I would help more but I am not sure how
for 4b
bc he said i should get this
which is wht i got
unless youre saying he's wrong
I'm definitely not saying that, I don't know how to do your problem or help with it
And all that just multiplies out to ... 1!
I hope the final 53 was not omitted in (d). A number's gcd with itself is always that number itself.
(f) is a bit of a trick question, because 0 doesn't really have a prime factorization.
isnt it 1 and 0..?
I don't understand that question.
Your question.
That doesn't give the right result, though because 0 is not a prime.
yeah its not
What I'm saying is you cannot use the same procedure that worked for the other cases, because 0 doesn't have a prime factorization.
No.
Yes, but why?
I would much rather you used words. It is hard to understand the very brief posts you make.
i cant use my words bc im mentally slow, i dont know how to articulate my thoughts very well
Take more time, then.
nor do i do well with reading comprehension, thats why i'm a "visual learner"
0 has no factors other than 0, and 1111 has no factor of 0, so they can't share any factors.
right..
I don't think that is right
honestly i dont want you to run away, so im going to pretend that i understood what you wrote and put zero
To the contrary, everything is a factor of 0.
i have 2 more questions but they're word problems
my hw is due in like 2 hours so
i cant retake this course or ill be kicked out of the major
And since everything is a factor of 0, the "common factors of 1111 and 0" is exactly the same as "the factors of 1111".
sorry for misleading, I didn't know that
And it shouldn't be hard to see what the largest factor of 1111 is.
its okay austin, at least trope came back to correct you
so this is my next problem
after tht i only have one more problem
i did mod questions before but i never did a word problem, i think i need help setting it up first
(Good luck with that. It's almost half past three in the morning for me, so I definitely won't be able to engage with that).
someone else may come and help you, you should thank him for spending his free time helping you already
you dont know if trope is a he
he has his pronouns on his profile
wait
is this for my question
or a different one
bc this is due at 11:59pm and its 9:27pm rn
and ty
idk if trope is still here
even though i see youre online
i think it would be nice if you would please help me with number 5
..hm
this is not an AI art server.
hi
lmao, also such a weird channel to do it in
Hello, I am working on generating functions, and the textbook did this, could someone explain what is happening in this?
From first line to second
I see, thank you
this might be the best channel to ask this on? or number theory, im not sure which
i was recently stuck on a proof in abstract algebra and realized that i'm sorely underinformed concerning gcd and lcm, so are there any properties, both popularly and esoterically used, that i should know about?
recently just found out that two relatively prime integers m and n that divide some k also imply that mn divides k (did not know that)
also found out that we can write lcm(m,n) = mn/gcd(m,n)
but i wasnt sure if there are any other additional identities that are worthwhile to read
Look at prime factorization and consider gcd in that light
If $x = \prod_p p^{e_p(x)}$
gcd$(a,b)=\prod_p p^{\inf{e_p(a),e_p(b)}}$
Sharp
And lcm is takes the max between e_p’s
Yeah pretty much the two main bits
ah ive seen that yes
also bezout’s the linear combination right?
i.e $\gcd(a,b)=d\implies ax+by=d$ where $x,y\in\mathbb Z$
blanket
For equations that do not have variables can you even do induction proofs on it
Just show us the problem you're struggling with
Your question doesn't really make sense
its a homework problem i dont think im suppose to share but its effectively trying to prove something like
1^2 = (1+2)/3
inductively
Then just calculate it
which i find kind of dumb cause cant you just.. solve it
well I mean you can kinda vacuously induct on a true statement
yep [true] is true for n = 1, and [true] -> [true]
but I feel like that's probably not what it's asking
@past lynx why don't you think you are supposed to share the problem? does your school expressly forbid that?
probably cause im technically suppose to do my homework myself
but its whatever i just turned it in already
ill just pray and cope]
For this, can we use pigeonhole principal to prove that it is not possible? Since there are (7x5) games that are within the groups but only (7 choose 5) “spots”
No, there must actually be 7·5/2 games within each pool because 7·5 would count each of those games twice.
Perhaps you can see a more fundamental problem than pigeonholes here ...
How can they be fractional games?
I mean the way I see it, there is no way to connect the nodes in a way that we don’t over flow the spots
Exactly!
7x5/2 is fractional
Yes.
So how can there be 7x5/2 games
There can't, that's the point.
Hmm I still don’t get it lol
You seem to agree with me that it is impossible for there to be 17.5 games in each pool.
What is it you don't get, then?
How you got 17.5 games in the first place
I am not over counting because I am just counting one pool
Why did you divide by 2?
If you just multiply 7 by 5 you're couting each game twice: once for the each team that competes in it.
It takes two teams to play a game.
But there are 14 teams
There are only 7 teams in one "pool".
Np.
How would you solve this without generating functions?
The answer is 2* 3^(n-1)
I think if you just make an explicit expansion of the generating function you get using the "bi"nomial theorem, you will get the coefficients as a sum of combinatorial things, so probably suggests a proof
guess its fine, because its like proving $3^n=\sum_{k=0}^n 2^k\binom{n}{k}$
Croqueta
,rotate
B^c is the complement of B, it contains all elements not in B.
A \ D contains all elements in A that are not in D
So A \ B^c are all elements in A that are also in B
Which is what A ∩ B
Boytjie
Oh right 🙂
answer is n!, which is straightforward from generating functions
Let h(n) be that number, then consider h(n-1) and add one person N. The person N will sit to the right of one of the 1,...,n-1 persons or either be alone in a table. So h{n}=(n-1)h{n-1}+h{n-1}=n*h{n-1}
I was gonna ask if there is a combinatorial and noninductive proof... but I guess this is already good enough? 
like it is not at all obvious at first glance that the answer is n!, it would be cool if there was an explicit bijection or something
Would you like a hint for this? There is a very nice explanation
sure
This already a proof, but I was looking for something non-inductive
ah
Nice huh?
np, that's a cool question

can anyone help with a hill cipher
so i know how to encrypt if its a normal 3x3 matrix but this confused me
or do i just encrypt two letters at a time
actually i think i just forgot how matrices work
But doesn't that mean that the entire A should be the answer, not the intersection of A n B?
As all elements of A not in B include the Set of A as well?
B^c can contain elements of A
,rotate
You could also use the element relation and write it out
could someone explain this
how is C subset of D
when i plug in numbers
c = {-23,-17,-11,-5,1,7,13,19}
d = {-8,-5,-2,1,7,10,13,16}
could someone explain?
How do you get these
Also notice subset just means anything in C is also in D, and they’re not equal to the sets you wrote there
does anyone understand discrete math at all and can like tutor me?
i figured out what i did wrong
could someone please explain this proving this with element arguments
Im so confused on the solution
when is x in the left side
we suppose that x is in the set of AU*(B and C)
then we prove that (AUB) and (AUC)
i get that
when exactly is x in the left side though
but i dont get the cases
what
wdym
wot
A is a subset of the left side
yea
so what I said is right
x in A u (B n C) iff [x in A or x in (B n C)]
if we get an iff version
ohh thats what u mean
so when is x in B n C
x in B n C iff [x in A or x in (B n C)] ?
A isn't involved here
there is an A term
x in B n C iff ???
x isnt in A
yes
you can do something similar for the right hand side
So if you get two expressions and show they're equivalent, then you should get the same set yes?
that is pretty much the right hand side
ok
so now show the left & right side are the same
thats the part i wanted help on
💀
im confused on they get this
like if x is in the set of A
then idk
how
what do you not get
how does x in the set of A make x in the set of A or B and x in the set of A or C true
oh
therefore the intersection contains A
then wb case 2
how does that make it true
b and c
are not in the subset
of each other
$x\in A\cup(B\cap C) \iff x\in A\lor (x\in B\land x\in C)$
$x \in (A\cup B) \cap (A\cup C) \iff (x\in A \lor x\in B)\land (x\in A\lor x\in C)$
Sharp
B n C is a subset of B and C both
ok what about a?
why do we care about A
they split it across that U operation
because you're in the set iff you're in A or you're in C n B
that's literally how they split the cases
if ur in a or ur in a and b?
typo
oh
ok then
how about this
why didnt they do
B or C
for case 2:
A or (B AND C)
x in the set of A
x in the set of B AND C
where do they get x not in the set of A from
if you're not in A you're in B n C
where did u get this from
(but it ends up being the same because you have to be in that B n C anyway)
because it's not said to be empty? 
they're not quite distinct cases since you could have overlap
what does that even mean
how does that make
a or b and a or c true
Parenthesis matter
But 
Just look a bit above to see that they say let x be in the set
ik but
i dont get
how it makes a U B and A U C true
idk this really confusing to me
That’s the assumption
x is in (A or B) and (A or C)
But x is not in A
It’s in there by definition
so x is in b and c?
what about part 2
here
i get the fisrt part
when we need to prove (A-b)or(c-b) is subset of (AorC)-b
will case 1 in this case be x is in AUC
and case 2: x is not in B
- is defined as a conjuction, not a disjunction
What about you actually try to write down the proof?
What kind of teachers do people have these days? I see multiple people that have multiple choice and fill-in the blanks kind of questions. What about using pen and paper?
can someone tell me if my proof for the below question is good?
Write down a formal proof of Theorem 4.8: If a, b, c are positive integer numbers,
then diophantine equation ax + by = c has an integer solution (x, y) if and only if
gcd(a, b)|c
my proof:
LHS:
ax+by = c (given)
let d = gcd(a, b) then d|a and d|b
assume d does not divide c, then c=dq+r 0<r<d
then ax+by = dq+r
but d cant divide dq+r unless r=0, thus for an integer solution to exist gdc(a,b)|c
i still need to prove the other way around but is this one good?
other way around would be
gcd(a, b) | c (given)
then (ax+by) | c => c = (ax+by)*m = a(xm) + b(ym)
so there exists an integer solution.
since the gcd | c, gcd | a and gcd | b
Hello,
aren't questions 1 and 3 equivalent?
Yes, pretty much.
So in the first one:
Let G(V, E,f) be a graph, let V be a set of vertices V={1,2,3} and E set of edges E={a,b,c}, and a function f: E to V (f assign element from E to two elements in V)
f(a)={1,2}, f(b)={1,3}, f(c)={2,3}
Let V'={1,3} (subset of V) and E'={a,c} (subset of E)
f' is the restriction of f with respect E and V, thus, f'(a)={1,2}, and f'(c)={2,3}
however, G'(V',E',f') is not grap because 2 isn't in V'
is this correct?
can someone tell me how i would go about writing this in closed form?
cuz i think there might be a type cuz ive no idea haha
u're summing 2 n times, rather $\underbrace{2+2+\ldots+2}_{\text{$n$ times}}$
peaceGiant
ahhh that makes sence that youuu
Let j
be even. Evaluate 2+4+6+⋯+j=
how do i evalute j?
i thought it would be like j(j+1) but its not
You're supposed to write an expression that receives j as input and gives the sum as output.
So "evaluate j" is not something you're supposed to do -- you can assume someone already know how to do that, but what should they do then?
does anyone understand modular arithmetic and can help me out
ask an actual question and someone might come in and help you
Let k be a fixed positive integer and let G = (V, E) be
a loop-free undirected graph, where deg(v) 2: k for all v E V.
Prove that G contains a path of length k.
is this correct?
start at v1, you have k incident edges that you can use for a walk, then for v2, v3, ..., vk you have k-1 incident edges that can be used (except the first), thus a path of k exists.
what does 2: mean
Unless I'm mixing some wires up here that should work?
this question feels very weird to me though
thanks! what about this one? i am kind of stuck on how to approach this
should i split it to cases?
case 1: all have even degree
case 2: there are some with odd degree?
couldn't you get a k path just from deg(v)>=2?
that depends on the value of k
if k <= nr of vertices yeah that would work
well how do you draw a loop-free graph with deg(v)>=2
do you know that |V| is finite? I forget graph conventions
if its exactly 2 then sth like this right? and i think it assumes V is finite
can anyone explain to me how you go about decrypting a hill cipher generally?
(for mod26 a-z, n block length (unsure if size matters for this), and a plaintext (unsure if size matters for this, either)
very new to the field and did not understand the given explanation
how do you go about obtaining a key, and how do you apply said key to encrypted characters?
so if k <= nr of vertices this would work if deg(v) = 2
but that ain't loop free yeah?
it is. its a cycle but its loop free
loop free just means a vertex doesnt loop to itself
I hate graph terminology
ok |V| is finite and it's connected
deg(v)>=1
and clearly deg(v)<|V|
I'd say <= but no immediate loops
Is this a sufficient hint?
im assuming this is for the second question i sent right?
yes
If I make a bad reading of bad graph language lemme know but I'm pretty sure 1 <= deg(v) < |V|
yes thats true
ill attempt it from here
ye
ahhh i see
yeah and since we have V vertices one of them will have the same degree
makes sense thanks!
I hate that loopfree is not acyclic tho
yeah i agree, this terminology was confusing for me as well
would j(j+1) not be right then?
well, it says it isnt but idk why its not
oh wait
times 2
no divided by two
bro ive no idea
hahaha
j = 2n
and to get the sum from 2+4+6+...+2n = n(n+1)
so
That looks righter.
^^ can someone tag me if they have the answer to avaj also please
pls help me this #help-0 message
can someone verify my proof:
Let T1, T2 be 2 spanning trees with (V1,E1) and (V2, E2) respectively and there exists an edge ei in E that is in E1 but not E2. Since both are spanning trees, an edge ei' must also exist in E2 but not E1.
All edges have distinct weights meaning that either ei or ei' have higher weight. A minimum spanning tree will always include the lower weight thus there can only be 1 minimum spanning tree.
Mind reminding me what a spanning tree is before I start thinking it means something in line with normal interpretations 
each vertex is connected and there is no cycle
Well the argument you make seems to be insufficient for if you have multiple changes in edge between them?
what do u mean?
im only replacing the higher edge with the lower edge
what?? dont these 2 contradict each other?
corollary 13.3 why is it <= ? shouldnt it be instantly equal?
maximum flow = minimum cut
Five cards are dealt off of a standard 52-card deck and lined up in a row. How many such lineups are there in which all the cards are of the same suit?
What do they mean by suits
The suits are the like classes of cards (clubs, spades, hearts, diamonds)
would anyone be willing to tutor me in discrete? ive been having trouble with this class for a while.
Can anyone help me w this
When is the original statement true
if u do one or the other
"The difference of the squares of any two consecutive inte-
gers is odd." If I'm to prove this universal statement, do I use the direct proof method?
Sure yes
ok see thats what i dont understand about the direct proof method, since this is a universal statement, if i prove it to be true for lets say (a = 24 and b = 25) how can i prove it for to be true for all the integers? do i just assume it's true if one part is true?
You can't prove something is true by taking a single example
But you can do things like "Let n be an arbitrary integer. Then ..."
but the directions say to take 1 particular but arbitrarily element and prove it for both P(X) and Q(X) (consecutivity and a^2-b^2 = odd)
Yes, that isn't just taking a single example if the number is arbitrary
This proves it for all x, whereas what you said was proving it for some x
ur saying my example where a =24 and b =25 is proving it for some x?
yes
well
Obviously necessary changes must be made since you're talking about two things but ygm
ok i don't understand. i followed the steps. i supposed a = 24 and b = 25 which is true for P(x) (consecutivity) and then i proved it for Q(x) which equals -51 which equals odd since 2(-24)+1 is odd.
is that not a proof of the statement? what else would i need?
Note that this document says arbitrarily chosen
Perhaps you're misunderstanding what is meant by that - it doesn't mean you can arbitrarily choose them, it means you can take any consecutive integers a and b and then show the statement holds for them
Otherwise you can prove that every integer is less than 10 by saynig 9 < 10, for example
Basically you need to prove it in a way that doesn’t rely on the specific value of x
so ur saying i have to prove a^2-b^2 = 2(k)+1 without plugging in any numbers?
You know f(x)=mx+b? You substitute in 2 for x and get 2m+b
Similar principle, you want to be able to substitute in any value and still get a proof
but i can though like 54 and 55 works as well
It works for all of them but you have to prove it
You gotta basically have a function that sends x to a proof that (x+1)^2-x^2 = 2k+1
hmm i get it now. since its consecutive its even and odd and vice versa, so i should just substitute the definitions of even and odd into the a^2-b^2 right?
wow ur right. but i can use even and odd right. it just takes more work
Since you have no idea which is even or odd, you’re better off just running (b+1)^2 - b^2
So calculate that out
ok thx. also say i get a universal statement and i need it to find out if it's true or false. do i begin with finding the proof or finding the counterexample?
If you can recognize something that makes it false that’s a counter example
But it’s hard to say how to do it in general
yea but what about equations that is complex so it's know if it's true or not. do i just start with proof?
Just look at it and see if you can find a way
Determine whether ∀x(P(x) ↔ Q(x)) and ∀xP(x) ↔ Q(x) are logically
equivalent. Justify your answer.can anyone help me with this problem?
In the second, is the right x a free variable?
yeah
So the truth value of the second one can vary according to what x is.
Is that also the case for the first formula?
Those pictures are quite hard to read. Do you have them in a better resolution?
But just as importantly, can you give a more specific description of what confuses you than just two text heavy images where readers have to guess what you're stuck on?
hi all i got a problem
we are given the inequality x1>x2<x3>x4<x5>..... upto kth variable xk, my question is how many ways can this inequality be written correctly in the form a<b<c<d<....
If it's not immediately clear to you how the algorithms work, dry-running could be a good way to try to build some intuition.
what do you mean?
Does anyone know what is meant by the use of both : and |
Do they both mean “such that” in this case?
This looks hard. Do you have evidence that there should be a simple answer?
The colon here seems to belong to the ∀x; it serves to delimit the set x ranges over, from the property all x should have.
i got for some inital values
say we have x1>x2<x3 then we get 2 combinations like x1<X2<x3 and x3<x2<X1
for x1>x2<x3>x4 we have 5 combinations
for uptil x5 we have 16 combinations
so i wanna generalise for x_k
If you can compute 4-5 nontrivial results by brute force you can try typing them into OEIS and see if anything pops up there.
WHATS oeis sorry i dont know
Ah, 2, 5, 16 was enough to find https://oeis.org/A000111 as the first hit!
hey the site seems complicated may i know where the exact formula is written?
The OEIS entry doesn't look like any nice closed formula is known.
The best it has to offer seems to be some recursive formulas that are not themselves particularly nice.
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
does this seem right?
Ah yes, that hid in the wall of text from OEIS too:
2*a(n+1) = Sum_{k=0..n} binomial(n, k)*a(k)*a(n-k).
thanks a lot sir
got to know about this incredible site !!
I understand fourier tranformations in continuous time very well, but now im taking a discrete class where the discrete fourier transformation appears, and I am very confused. Does anyone have helpful resources to understand DFT, DFS, DTFT? Also exercises if possible
Can power sets have their own subsets?
I understand the power set is the set of all subsets but those subsets are considered elements
Yes
You can take the power set of a power set
You can even take the power set of a power set of a power set 
does an equivalence relation always partition a set into equivalence classes of equal cardinality?
No
There's actually like
A bijective correspondence between partitions of a set and equivalence relations on a set
So you can get any partition you want
hm, so in the proof of lagrange's theorem (sorry i know this shoudl be in abstract algebra but regardless) don't we have to assume that a given equivalence relation partitions a group G into cosets of equal size? and how would we prove that?
(Just take your partition of the set and say x ~ y iff they're int he same subset)
oh okay
In Lagrange's theorem you can just show that all the cosets are the same size
H is the same size as gH - can you see a bijection H -> gH ?
It should be clear if you think about the definition of gH
sorry i'm struggling to see how that shows that all cosets are the same size, doesn't that only show that a subgroup H of G and its coset are the same size?
well all cosets are of the form gH for some g in G
So if all the cosets are the same size as H, then all are the same size
@novel ore
"A subgroup and its coset" sounds like that's the root of your misunderstanding.
There's not one coset associated with each subgroup, but many. And all the cosets of each particular subgroup have the same size.
In Lagrange's theorem, you fix one particular subgroup H, and all the various cosets of that subgroup then partition G. These cosets have the same size, because each of them has the same size as H.
Good catch Tropo
ohhhh, okay that makes a lot more sense, thank you!
oh ok gotcha
thanks guys!
If you know certain values of cos and sin, you can simply use the fact that e^i*x = cos(x) + i*sin(x).
i'm currently doing set theory and i have to prove or disprove using counterexample
how would i go about doing that
Have you drawn a diagram?
yes
and i know that its false from it
but i just dont know how to use counterexample to prove it
Pick an element that is either on the left or right, but not in the other
Can you show the diagrams?
the diagram, if correct, should be a counterexample, no?
just say "consider these subsets of R^2" or some shit lel
Let $f: \mathbb{R}^n \setminus {0} \rightarrow R$ be a continuously differentiable function that is homogeneous of degree $\alpha$. Show that $f$ can be expanded to a continuously differentiable function on $\mathbb{R}^n$ if $\alpha > 1$.
In a previous question I showed that the ith derivative $D_{i}f$ of $f$ is homogeneous of degree $\alpha - 1$, and there is a theorem in the syllabus I was provided that says $f$ can be expanded to a continuous function on $\mathbb{R}^n$ for $\alpha > 0$. But I'm still having trouble formulating a proof.
I assume it has something to do with the homogeneity of the derivative of f, could someone please help?
O2daP
How do you describe this RE: baba ?
I know what it allows but cannot figure out how to explain
Do you have a bad explanation?
If one of the elements of a Power set of A (P(A)) is for example, {a}, would {{a}} be a valid subset of this power set?
Yes
Would the pattern also continue for a subset of {{a}}?
Like the subset would be {{{a}}}
No
Let's simplify what you're saying
if x is an element of a set X, then {x} is a subset of X
you specific example sets X = P(A) and x = {a}.
{{x}} is not a subset of {x} since {x} is not an element of {x}.
Oh alright I see
Also for a question like this, ( ) and { } aren't interchangeable for Cartesian products right?
(a,b) != {a,b}?
Uhhh this is probably gonna have to be a mistake
Without more context it's hard to say whether or not it's a mistake
It could be a trick question
But indeed, () and {} are not interchangeable.
maybe if this is like a specific construction of cartesian products lol
but i doubt that
can we see the context
Well then it was indeed a trick question :)
Yep
Is every element of the left an element of the right?
I don’t care about kinda here
alrights thanks man
Is 2023 an element of the left?
And is 2023 an element on the right
If not, it’s not
Let $P_{2,1}$ be the set of lattice paths with two types of steps: 2 units up or 1 unit right. Find the number of paths in $P_{2,1}$ from $(0,0)$ to $(2n,2n)$ that are never below the line $y=x$.
I realize that when we're dealing with regular lattice paths it's just the Catalan Numbers, no idea how to approach this one though. Tried to create a recurrence relation and it became ugly very quickly.
TheUnTamed
Hey guys, I'm really struggling with my school's discrete math and proof class, so I'm just wondering if you guys can recommend a question bank with solutions for discrete math and proofs. While the textbook my class is using has questions and solutions, they just aren't hard enough for the exam...
Remember that $f(x) \in O(g(x)) \iff \exists x_0 > 0,C \text{ s.t. } \forall x \ge x_0,, f(x) \le C \cdot g(x)$.
TheUnTamed
can i get some help with this?
so im trying to prove the first part so proving that f(e) = c(e) while assuming the before is true
will this be of any use?
Solve the recurrence relation subject to the basis step. Wondering if this looks correct. TIA. ❤️
Its same question so hope tagging <@&286206848099549185> is fine.
Can someone verify if my proof is correct?
Part (1)
Part (2)
can someone help explain this case to me. This is to prove -|r| <= r <= |r|. I understand the absolute value definition and how |r| = -r if r < 0. But I don't understand where we get -1 from and what he is multiplying
I think theyre just multiplying both sides of the equation by -1 to prove the fact?
by the equation u mean -|r| <= r <= |r|?
no
-1 * |r| = -r * -1
The equation they were talking about in the previous sentence
so u mean the one i wrote. i don't see any |r| anywhere else
Wait where's the question and where's what you wrote 😭
this is a proof within the textbook. the question i asked up there
They give the equation: |r| = -r
They multiply both sides by a scalar, -1, keeping it consistent to get the equation: -|r| = r
they got the equation from the fact that r being negative, taking the absolute value of it is the same as negative-ing it
sorry i may not be understand the question 😬
oh i get what u mean now.
Any applications for a graph with any number of vertices but no edges?
So a set? Yeah I can think of a few places where sets are useful lol
Like what
what is a quick way of donig (15C2)+(15C3)+15C4)+(15C5)+........+(15C14)+(15C15)?
(1+1)^15-(15C0)-(15C1)
where are you getting (1+1)^15 from?
the answer to this is 7^12, but im not sure how
this is the explanation it gives, but im still not understandding it
could someone explain it for me please in different words
If you expand (1+1)^15 with the binomial theorem, you get exactly all the terms in your sum, plus just a few extra.
ahh ok hahaha thank you XD
that was straight forward actually now that you say haha
A "way" can be described with a list of 12 numbers between 1 and 7, saying which envelope each of the 12 cards go in. Each such list describes a "way", and two different lists count as different "ways", so you're really just counting those lists.
ohhhhh so you need to use up all the cards
so fill the envelopes such that you have no cards left in the end
and they could potentially all go into on envelope?
Yeah, that would be my immediate interpretation.
given the following:, how would i compute lets say $f^3$?
MildCurry
if we wrote it in disjoint cycle notation, then we'd have:
f = (128)(35)(79)
so f^2 would be:
f^2 = (128)(35)(79) (128)(25)(79)
??
which would simplify to:
(97)(53)(28)(12)?
but then theres two 2's
uhhhh idk
if there are 100 cities between city A abd city B,
In how many ways can you travel from city A to city B without visiting any city twice?
very confused, what is a "way"?
find shortest path in the given graph using dijkstra shortest path algorithm but they haven't given the destination vertex ?
its a university question
or do i just draw the shortest path tree for all vertices at the end
if I had to pick one to do, I'd probably find the shortest path from 1 to 5, since those are source/sinks
Could someone verify if I calculated the DFT correctfully?
Would appreciate it alot
@ me if u respond 😄
I would i proceed to find a RR of a_n = n^2
Let G = (V,E) be a graph. A subset C ⊆ V is called a vertex cover C of G if every edge in G has atleast one endpoint in C. Consider the following 2 problems.
MinCover:
Input: A graph G = (V,E)
Output: A vertex cover of G of minimum cardinality, i.e., a Vertex cover C of G such that |C| is minimum among all vertex covers of G.
VCover:
Input: A Graph G = (V,E) and an integer k.
Question: Does G have a vertex cover of size less than or equal to k?
Prove that VCover is in P iff (if and only if) MinCover is solvable in polynomial time
Guys help with this proof please.
Im quite stumped
have you ever seen a proof like this?
like have you ever seen an NP-reduction proof or something along those lines?
^^
cause if you have NEVER seen one, I can give some resources and such, but if you have then I can maybe help you with this
I have seen one proof which was done in class
I went along the lines of proving one problem as a instance of another
an*
for this vertex cover question?
no
ok all good
for a different one
yes please
so the idea is we are going to use one problem as a polynomial time blackbox to solve the other problem
what is a pt blackbox
so like a polynomial time blackbox for MinCover will take in an input graph G = (V,E) and output the minimum cover
it'll do it polynomial time
and it's a blackbox meaning you have no idea how it does it
but just that it does
yes got it
so lets pretend you have a pt blackbox for MinCover. Can you come up with a polynomial time algorithm to solve VCover given a graph G = (V, E) and an integer k?
find all possible covers
aah
so your algorithm should be poly time, assuming you have access to this black box
hmm
which you do for this direction of the proof (we're proving MinCover is solvable in polynomial time implies VCover is in P)
use the blackbox, your algorithm won't be pt if you don't use the blackbox
a few mins please
ya take your time
kinda confused here
Ok can you give me a high level english explanation of what your algorithm does
Yes
I want to solve VCover
I give you a graph G = (V, E) and an integer k
what does your algorithm do, in english
Ok so I make an array of all zeroes on the size of V
what does this array represent?
Initialize all of it as 0s
To track the vvertices not in the vertex cover
ok
so i'm using the blackbox algo now and if it is a vertex cover i'm swapping out the 0s in V with 1
then i'm incrementing a counter c for every 1 in V
if what's a vertex cover?
Yes
that was not a yes or no question
so i'm using the blackbox algo now and if it is a vertex cover i'm swapping out the 0s in V with 1
what is "it" in this sentence?
if the Vertex is not a vertex cover>
if that lone vertex is a vertex cover?
yes
that doesn't work
why so?
a single vertex may be part of the vertex cover
but not make up the whole vertex cover
aah
it returns a subset C with contains the vertex cover of G
not just contains, it is the vertex cover
Yes
how about setting a lower bound and upper bound and doing a binary search on the possible values?
we don't really need that
VCover is asking "does a vertex cover exist of size <= k" right?
yes
and you have a way of finding the minimum cover right?
via the black box?
it's black box for MinCover
MinCover is the blackbox
yes got it
and if the smallest cover is <= k?
we have what we want
VCover?
yes
ok so now try the other (admittedly harder) direction on your own
you have a black box for vcover
try to find the mincover
yea so you gotta use the black box
well we want to build it a vertex at a time
since we want the actual cover itself
so try to think of way to tell if some given v in V is in the cover or not
what happens if you remove a vertex from the graph?
It depends on the vertex right
If it only has 2 edges it dis joins the graph?
Might*
@agile magnet
Hint 1: First find the size of the minimum vertex cover (this is where your binary search idea would come in handy, or just linear scan doesn't matter)
HInt 2: Using this, pick a vertex and remove it. What do you now know if the remaining graph now has a smaller minimum cover size or the same minimum cover size?
If it has the same min cover, then its the part of the vertex cover. Else its not.
It is still VCover right
also I think you have something slightly off?
draw some examples out yourself
examples are good, drawing is good
okay
Wait just tell me this, If i keep removing vertices until I reach the size I found in Hint 1 using the search, will that be MinCover using Vcover?
no
Assume VCover is in P. Then you can find mincover in O(n) iterations of Vcover by checking from 1 -> n and finding the first yes.
Assume mincover is in P. Then you can answer Vcover in O(1) iterations of mincover by comparing k and size of mincover
Like iterationg from 0 to |V| and using mincover?
no here you're proving mincover is in P if Vcover is in P. So you're using Vcover a polynomial number of times to find the answer for mincover
repeating a polynomial time algorithm a polynomial number of times is still a polynomial time algorithm
Yes I understand that, but we have MinCover as an algorithm, meaning it will give me a result.
But VCover is given as a question
Vcover is a decision problem where the result is true or false
Yes
So what's the confusion?
how will calling VCover a number of times give me MinCover
it has to be at least 0. so start with 0 and keep increasing by 1 until you find the first true. that number is your mincover answer
aah that makes sense
but let me get one mroe thing clear as well
VCover inherently uses MinCover
to get its answer right
So will that be a valid approach
not necessarily. If you know mincover it's trivial to know vcover. That doesn't mean the actual algorithm involves finding mincover first then evaluating vcover
So I assume I know mincover
The question simply asks you to prove that these two problems fall in the same class if one of them belongs to P
Yes
if P was replaced by constant time it would not be true
because they cant be solved in constant time
not for that reason
then?
there is no known solution for polynomial time as well actually
but if vcover were constant time, there is no proof that mincover is constant time because it takes a polynomial number of iterations of vcover
the other way around works
Ig that's what you were asking
no no i wasnt asking that
its fine
ok let me get this
I can prove MinCover is solvable in poly time by writing a poly time algorithm for it
that would be proof but no such algorithm has been found
Basically this is the P=NP question. They are complexity classes
but they cant be proved right
If you have a P algorithm and you use it a polynomial number of times to get the answer for another algorithm, the other algorithm is also in P
Yes
that makes sense