#discrete-math
1 messages · Page 159 of 1
It should x T(1) in the second step
oh, right!
Other than that it's fine
Now just move the the terms which contain G(x) to the lhs
(1-x-x^2)G(x)=2c-xc+sum(cx^n)
Simplify sum(cx^n)
And then divide both sides by (1-x-x^2) to get your gen function
Yes
the numerator doesn't have real roots 😕
ok so
should i try decomposing the fraction now?
Yes
well they simplify
like, phi*psi = -2?
psi^2 = psi + 1?
that's the cool thing about phi and psi
😮
p^2 - p - 1 = 0, right?
so just apply p^2 = p + 1, etc.
φψ = -1
wow finally I found a discrete-math discord server hurah
do you recommend any e-books for discrete math
please recommend if only you tried it yourself
pls
@unreal stump Im confused in finding a pattern in this
So would it be for all 2n?
its been over a year since i took Discrete so im very rusty
Yes,You can only find a pattern for the even integers,for odd integers it will be determined by T(1) which is not given
a friend of mine gave me the solution: T(n) = 2^((n-2)/2) + 2^((n/2)+1) - 1
it works, but i have no clue how he got to that solution
so im trying to figure it out myself
That is,only if n is even
generatingfunctionology says, for solving recurrence relations:
- Make sure that the set of values of the free variable (say n) for which the given recurrence relation is true, is clearly delineated
by delineated does it mean it needs to be in a linear form?
i also dont understand what it means in this step:
- Multiply both sides of the recurrence by x^n, and sum over all values of n for which the recurrence holds.
People who actually enjoy this class are masochists
You seem pretty salty today
you'r'e' mom
i simplified from there and put A, B, C back into the G(x) and got this:
im not sure where to go next? how do i turn this into a summation
hold on
ok im not sure what to do
no wait hold on
ok i rewrote the first term and replaced the numerators with symbols and divided terms by phi and psi, is this OK?
yoooo i think it works >:D
generatingfunctionology says, for solving recurrence relations:
- Make sure that the set of values of the free variable (say n) for which the given recurrence relation is true, is clearly delineated
by delineated does it mean it needs to be in a linear form?
i also dont understand what it means in this step:- Multiply both sides of the recurrence by x^n, and sum over all values of n for which the recurrence holds.
<@&286206848099549185> (i asked a while back but didn't get any answer i hope its OK to ping?) 
ok nvm i think i get it now! sorry!
trying to implement 4 sets with generalized inclusion-exclusion,
i got a part missing and i dont know why it's needed: this is what i have
|A∪B∪C∪D| = |A|+|B|+|C|+|D| - |A∩B|+|A∩C|+|A∩D|+|B∩C|+|B∩D|+|C∩D| + |A∩B∩C∩D|
i know it should be
|A∪B∪C∪D| = |A|+|B|+|C|+|D| - |A∩B|+|A∩C|+|A∩D|+|B∩C|+|B∩D|+|C∩D| + |A∩B∩C|+|A∩B∩D|+|A∩C∩D|+|B∩C∩D| - |A∩B∩C∩D|
but i dont understand why
okay so due to inclusion-exclusion we know that by adding |A|+|B|+|C|+|D| we are adding several elements multiple times but we doesn't want to do so
so as you did you then substract all of the |A n B|
now you substraced several things again multiple times
it would be better shown on a picture
ok sorry for my drawing skills
you can see that after substracting all of the |XnY| terms you are actually substracting AnDnC AnBnC DnBnC twice
DnBnA is empty in that case
@turbid meadow sorry. last bother. its exactly as pekaro says. here is the general argument (oops 1. the count "2^n distinct regions" should be "2^n -1"; oops 2. the set subtraction by U should be the subtraction of "the rest of the elements" in U for each of those calligraphic A's. The argument is fair though.)
Also i have a problem with generating functions, maybe someone can give me a hint on that
how to describe generating function of (n under m)
newton symbol
m is an natural number
A 5 digits numbers divisible by 3 to be formed the numerals 0,1,2,3,4 & 5 without repetition. The total number of ways this can be done is?
Hint: A number is divisible by 3 if and only if the sum of its digits is divisible by 3.
I am trying to solve this question.
The sum of the number has to be divisible by 3 and we cannot put 0 in the start.
The number of ways to form a 5 digit number using the given numbers without repetition would be: 5*5*4*3*2
How do I find all the numbers which are not divisible by 3 and have the given digits?
Found another way
1,2,3,4,5 will sum up to 15, so 5! numbers will be divisible by 3.
If I take 0 as one of the digits then, I will have to choose 4 numbers out of 1, 2, 3, 4, 5.
Let's exclude 1, 2, 3, 4, and 5 one by one the respective sum would be 14, 13, 12, 11, 10.
So, 1,2,4, and 5 is also a combination that would work.
0, 1, 2, 4, 5 are 5 numbers so, 5! ways to arrange them, but 0 cannot be in the starting so, 5!-4! would be the ways to arrange these numbers with no 0 zero in the start.
Total ways = 5! + 5! -4! = 120 + 120 - 24= 216 numbers
Moosey
it's like the typical union of sets except you force $A\sqcup B$ to have cardinality $\abs{A}+\abs{B}$ regardless of whether $A\cap B$ is empty or not. Sometimes it's also used as notation for $A\cup B$ when $A\cap B=\varnothing$
derivada.schwarziana
so if the sets are already disjoint, it wouldn't matter for either definition?
I'm mainly asking this question to help define axiom of choice
and does this mean there's multiple possibilities for what the disjoint union could be??
@drifting sail
would it be the case that you repeat them? I"m confused by wikipedias use of 0s and 1s in second one
oh wait
yes, you can repeat them. The notation in Wiki is b/c you can't just go and define a set as
$$
{5,6,7,5,6}
$$
derivada.schwarziana
ahhh
if the sets were already disjoint to begin, say $A={1,2}$ and $B={3,4,5}$, then using Wiki notation we'd have
$$
{(1,0),,(2,0),,(3,1),,(4,1),,(5,1)},
$$
but obviously there's a bijection between this set and
$$
{1,2,3,4,5}.
$$
derivada.schwarziana
AHhhhh
as for this no; a properly defined disjoint union would be something like what Wikipedia does.
however the abuse of notation ${1,2}\sqcup{3}={1,2,3}$ is commonplace lol
derivada.schwarziana
is it a fancy way of getting around repeating elements in the set, sorta?
or like labeling it
so like this 5 belongs to THIS set, and this 5 belongs to THAT set
they are different 5s
ahh...
then order matters for disjoint set?
i.e. $ A \sqcup B \ne B \sqcup A$
ffs
I'm still rusty at LaTeX
it shouldn't?
ahhh
it's just the assigned indexing that's different?
Suppose a graph is k-vertex-connected and has at least k+1 vertices. Show that by removing k-1 vertices, the graph stays connected.
I've tried to solve this using the alternative definition: If G is k-vertex-connected, then for any pair of vertices u and v there are k disjoint paths from u to v. My initial guess was to first prove this for a graph with exactly k+1 vertices and then to deduce a general pattern. Especially, if a graph G has k+1 vertices and you remove k-1, then we have 2 vertices u and v left. So this boils down to prove that initially the edge {u,v} existed.
I've been thinking about this for 3 hours now and I can't come up with the solution
Isn’t this just the definition
In some textbooks yes, in my problem set no
Okay then is your definition what you have up there
right, that every vertex is connected to any other vertex by at least k vertex-disjoint paths
Okay then doesn’t the proposition follow
Think about how many paths you will “break”
By removing k-1 vertices
k-1 paths i think, if these paths would go through the deleted vertices
Think about it as an upper bound
so if there are k vertex disjoint paths between any 2 vertices. then there should be at least one path between any of the remaining vertices
i thought so, too. but can i just assume that we just broke the "right" paths
i dont clearly see why this needs to be the upper bound yet
Wdym right
if we remove k-1 vertices, could it not be that for a specific vertex all paths went to any of the deleted vertices
What is the condition on these paths
ah you're right if they would all go through the deleted vertices, it can only be on k-1 paths because they're disjoint. so the kth path needs to go through one of the non-deleted vertices (and not through any deleted one)
the cat thumbs up motivates my brain to think more
thanks @mystic moss
Lol! No problem
can someone help me understand case 2 of the master theorem for recurrence relations? Where does log^{k+1} n come from?
is it because f(n) is executed log n times? then, shouldnt it be log^{k+1} f(n) instead?
(in this case 2)
Where does
log^{k+1} ncome from?
Where did you read this ?
There is no such formula in Master Theorem
from the link i shared above
Oh well, they do not use the exact same case hypotheses (f(n) = Theta(n logb(a) log^k n) instead of f(n) = Theta(n logb(a))
It looks like a more precise form of the Master Theorem 🤔
yeah, it worked correct when i tried it, so
Usual form (eg. CLRS's) simply assume k = 0, AFAIU
how can i solve this
I'm not sure what channel is best for this, but it's related to generating functions so I'm posting it here: show that $\Sigma_{m,n}min(m,n)x^my^n = \frac{xy}{(1-x)(1-y)(1-xy)}$.
lugita15
I tried approaching this multiple ways but things aren't working out. One thing I tried was manipulating the left hand side, by splitting the sum over n into the case when min(m,n) = m and the case when min(m,n) = n, but then things just get really messy. I also tried manipulating the right hand side, by expressing 1/1-x and 1/1-y and xy/1-xy in terms of infinite series. But I'm not making progress that way either.
I'm thinking split it as $$\sum_{m=1}^\infty \sum_{n=1}^\infty \min(m,n) x^my^n$$ $$= \sum_{m=1}^\infty \left(\sum_{n=1}^{m-1} \min(m,n) x^my^n + \sum_{n=m}^\infty \min(m,n) x^my^n \right)$$
Merosity
@obtuse lance Yeah, that's exactly what I did. The sums start at 0 by the way, not 1.
Not that it makes much of a difference.
it can't start at 0 because it has xy in the numerator
@obtuse lance Sorry what?
expand the 3 geometric series on your RHS
(1+x+...)(1+y+...)(xy+(xy)^2+...)
this looks like xy+... when you combine it together
but if your sum started at m=n=0 then you'd have 1+...
so it can't
@obtuse lance Oh that's a good point, maybe my Professor made a typo.
@obtuse lance Wait but min(0,n) and min(m,0) both equal 0, so the 0 terms are just zero anyway.
@obtuse lance In any case, so I did what you did, but after that I wasn't able to get anywhere useful. It just becomes messier and messier.
it should be pretty easy after that step
Like the first term in the parenthesis is a finite sum that doesn't seem to equal anything nice.
you can handle them with derivatives
Oh how?
Merosity
Hmm, I'm not really familiar with how to write these things in terms of derivatives, can you explain further?
$$\sum_{m=1}^\infty x^m \sum_{n=1}^{m-1} n y^n$$
Merosity
this sum is what you want right, just making sure
yeah
$$\sum_{m=1}^\infty x^m \sum_{n=1}^{m-1} y \pdv{y} y^n$$
Merosity
Oh, you have to use partial derivatives?
$$y \pdv{y}\sum_{m=1}^\infty x^m \sum_{n=1}^{m-1} y^n$$
Merosity
idk if you have to but it's a pretty standard generating function trick
probably the first one I ever learned tbh
Ah ok
So then how does that help you, expressing it all in terms of the partial derivative?
Oh right
cool gonna make some coffee let me know if you run into too much trouble 😛
OK thanks for your help!
you're welcome 👍
@obtuse lance OK, things are getting messy again. After summing over n, should I differentiate first or sum over m first?
sum over m next
differentiate at the very end
cause at that point you won't have a sum to worry about
@obtuse lance But I don't know how to sum either $1-y^{m+1}$ or $\frac{1-y^{m+1}}{1-y}$ over $m$. In the first case summing 1 gives you infinity, though of course in the generating function context we're not concerned with convergence.
lugita15
should be m cause it went to m-1
$$y \dv{y} \sum_{m=1}^\infty x^m \frac{y^m-1}{y-1}$$
Merosity
or I guess it doesn't start at n=0 but n=1 lol
but since it didn't matter we might as well make it n=0
let's pretend I wrote everything with m=0 and n=0 to start it lol
sure
so now 1/(y-1) factors out
and you can separate it as two sums
I was gonna write it but I think you should
Oh I see the problem, I dropped x^m from the first sum by mistake at some point.
you can write it on paper and send a picture you don't have to latex it or whatever
oh ok
Now things are working out.
yeah you don't have to write it if you got it worked out now then lol
@obtuse lance I got an answer now, but it's wrong, I don't know where my error is:
I hate problems like this, there's one zillion places where you can make errors.
May I ask, if I have 20 assets, and I want to calculate the VaR. Then how to compute the sigma? The formula of sigma already shown on the slide.
I need to add up 400 items for the computation of sigma, if n = 20?
but how to solve it in practice?
Don't, VaR is bullshit
why lol
The monograph investigates the misapplication of conventional statistical
techniques to fat tailed distributions and looks for remedies, when possible.
Switching from thin tailed to fat tailed...
The assumed underlying distributions are plain wrong from the start, VaR will fail you hard when real risk emerges
VaR only works when there's no risk, ironically
(wrong channel btw, see #probability-statistics )
how do i apply the stars and bars theorem such that there aren't any consecutive bars (zeros)?
forget it, did it by hand...
Let $n_k$ be the number of uncovered elements in the k-th iteration in weighted greedy set cover algorithm. How exactly does inequality 1.6 follow? The hint in the text doesn't really help.
Darius
question 2
the base case n=0 is not true...
-1 != 0
or am i missing something
cus the question says true for all n >= 0
how is the LHS equal to -1 for n=0?
ah, i see
well, technically this is the sum $$\sum_{k=1}^{n}(2k-1)$$
Lochverstärker
and for n=0, this is also 0
so the notation here is unfortunate
(just start from n=1 if that bothers you)
slimvesus
anyone can help me with this ?
did you do similar examples in class?
why is F adjacent to H? and H not adjacent to F?
i don't know, what is your reasoning behind this?
???
could i get some help with permutations/combinations?
is this correct ?
what are you doing here?
mathematic induction
Result:
2187
,calc 7!
Result:
5040
@ebon valve
how to solve this problem ? can u show the correct working
wym
the statement is false
you cannot force 3^n > n! to be true
i gave you counterexample that for n = 7 ineq does not hold
this chapter is about assuming ( mathematic induction)
I'll try writing it out, maybe that will help show you what @last timber is saying
$$3^n>n!$$
$$3^7>7!$$
$$2187 > 5040$$
but this is false
Merosity
then that means the question is wrong ?
hmm
factorial will always eventually overtake exponential (the graph grows faster) so from the start the statement cannot be proven
can you show me the working
can u help me with that
hey i've got a quick question: are linear time transformations/reductions reflexive and transitive (like polynomial time transformations)?
Need some help understanding Lemma 3 of the Euclidean Algorithm if anyone can break this down from the pdf:
Specifically the part highlighted in red, when they substitute m for the floor of x/y shouldn’t there be an extra y left over?
It says r = x - my = x - [x/y] (sorry I’m not using latex)
But what happened to the extra y if m is the floor of x/y?
yeah, it seems like a typo
i believe thats meant to be $r = x - my = x - \floor{x/y} \cdot y$
Namington
and then the argument makes since in that $r - x = \floor{x/y} \cdot y$ and so $r \equiv x \pmod{y}$
Namington
Yeah
The pdf is in its alpha state, my CS department has been creating it since last semester
Side question, how long did it take you to pick up latex?
Because I’ve never used it before, but my class is requiring we do it
able to write basic mathematical statements: like 30 minutes
able to make proper documents: a week or so to learn the ropes of formatting and whatnot, sometimes i still have to google random stuff like how to reference a theorem with a hyperlink or w/e
and if i want to do something i don't know how to do, i can always google it
the tex stackexchange is fairly active.
able to write tikz: ?????
i didnt really like, sit down and tell myself "time to learn this" though
i just started writing documents
and googled whenever i needed to do something
theres lots of resources
in any case, it didn't take much time or effort to get into a functional state
@hazy pine thanks for the insight. Also got the pdf fixed because of that little error by a staff member
hello, does the prim algorithm just find the lowest weight tree, and there is one or can be more?
i guess there can be more, but the prim algorithm just finds one of them
yes
@iron pine use the symmetry of M due to undirectedness
can u explain the steps
draw a simple undirected graph 4-5 nodes maybe, write down the adjacency matrix and perform the matrix multiplication. you should see the pattern
u will see its symmetric along the main diagonal. that means for any i, row(i) = col(i). [M^2]_ii is then the dot product of row(i) with col(i). because they're the same and the entries are either 1 or 0, the sum of squares of entries (which is the dot product) is the same as the sum of entries.
<@&286206848099549185>
in b the question asks " b) What does it mean?" i could not understand that question
what is the point of these two question that i send ? i could not understand , proving this has any importance?
it would be better if you give context
I don't know how to do lol
Don't even know how to start with
is the output return 4?
so output is 4
also wait
im confused on the number thingy
Do you have to put return here?
is it return 3.5?
yeah 3.5
just 3.5
First it will give you 'D' and then 'B'
or
D
B
THANK YOU 🙏
Does the exclusive disjunction (XOR) operation follow the associative law?
yes
Thanks
Can I post a question again?
no
3
Am I correct in assuming that i can just use De Morgan's Laws on the first half of this to verify the logical equivalence?
It depends. Do your De Morgan's laws deal with three terms like that? If not, then no, it's not that simple.
Only has two terms so guess im back to the drawing board. Thanks 🙂
De Morgan's holds for 3 variables too
Perfect. Thank you.
I assume the point of exercise 60 in that book is to prove it from less powerful things
$\land$ not $\and$
dirib
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
slimvesus
I mean basically you can assume (AU B) = D too so De Morgan's holds
That is a hint to the problem, yes.
The point of an exercise is to practice applying the facts you've covered so far in more complex situations. If you haven't covered "De Morgan's for three variables" so far, you're defeating the point of the exercise (and probably won't get much credit if this is being graded).
Ill have to go back through the slides
Im not familiar with usernamephobics notation, what is the U? And the one you showed is the exact opposite of my case. not (p1 ^ pn) instead of not (p1 v pn). Im having a hard time understanding how to apply it.
Sets are the next lesson i think so know nothing about them. As for swapping it to my case, do i just need to negate the statement basically?
Alright ill try that
Ahhh ok
I think I got it?
Yes, I think but you are comparing p and q ^ r, so putting them in bracket would be nice
Fixed. Thank you both for the help 🙂
Why is the empty-set excluded from the partition of a set?
(Since it doesn't seem to harm the fact that the union of subsets should be the set itself, and it won't naturally be equal to any of the other non-empty sets and would have a null intersection with them)
because to produce a partition of a set is like to divide set into its subsets so that each element of the set is in exacly one element of a partition
and you can see that there is no element in {}
Makes sense, thanks!!
Hello, I have a question regarding Petersen graph. I have to find it's automorphism group and it's orbits and fixed-points.
I found this proof of automorphism of Petersen graph:
However, I'm quite new to this topic, and I have trouble finding the fixed-points and orbits
Could someone give me a hint?
<@&286206848099549185> Can anyone help me with part B and C in this Graphical method question?
hey i have a question relating to graph theory:
can a graph with 3 vertices (triangle), with one matching edge, be an M-alternating cycle?
this graph for example with the matching, M = {ab}
so if we take cb, ba, ac, it is M-alternating. but if we take ab, bc, ca, it is not M-alternating
Wth is that💀
their hw
yo i have no idea what to do with this
@weary tiger Isn't that an algorithm for Collatz' conjecture? No matter what natural number you plug in the algorithm, it will reach 1 in the end? What do you want help with?
I need to get output but not sure if it N
Shouldnt it print numbers?
theres 14400 possibilities
but i need to exclude the ones where 1,2,3,4,5 arent covered at least once
Like, for 12, for instance, it should print: 12, 6, 3, 10, 5, 16, 8, 4, 2, 1
Not sure what kind of application you use though
How did u get numbers?
IM so confused bro
literally just follow the arrows 
@weary tiger You're supposed to replace N with a concrete number. For instance, if the input is 12, the second box says "print 12", not "print N"
do you get it now?
yea but howd u get 3, 10,5,8,4,2 and 1
Let's say N is 12 and you reach the box that says N = N/2. This box means that from now on N should be replaced with 12/2= 6 instead
Was that clear?
This box is different since it has two = signs. Now you should NOT change N. This box just asks a question: is 6 equal to 1?
no
then you should follow the "False"-line
ohh
i get it on
we keep following the false line till it equal to 1
or if the number is not even
Well know you reach the box that says print 6
now*
I guess it means that you shall write down 6? I dont know what the exercise is exactly
yea
After you have written it down, you must continue to the next box, that says "6 is even"
(You must continue even if it means that you visit some boxes more than once. You're not done until you have reached the box that says STOP)
I dont want the answer, but can someone just tell me what 15 references? Is it vertices?
Yes, it's the number of vertices
So if there are 15 vertices and its a cycle graph, so each having a degree of two, that gives me a sum of degrees of 30. If I divide that in half, it would give me 15. Does that mean there are 15 edges?
I don't know why I didn't just try that. Ignore me.
As you say, you can draw it and count the edges. But giving an argument like you do first is actually better
Because you can now easily give the answer for any number of vertices, you have found the pattern
thank you!
Construct a truth table
so it says I shouldn't use a truth table rather the identities
Man I don't understand why teachers hate truth tables so much
They're very useful

my teacher is a weird
Yours hasn't been the only one
I've answered quite a few questions like these in the past
All of them be like "oops sorry you can't use a truth table haha"
Well
If p AND q is true, then p is true AND q is true
which clearly implies that p is true
qed
you could alternatively use the identity that A implies B is equivalent to (NOT A) OR B
so I used that conditional equivalences and then applied demorgans law, so now I have Not P or Not Q or P?
Let me do this on the fly: $p\wedge q\to p\iff\neg(p\wedge q)\vee p\iff \neg p\vee\neg q\vee p$ yep it checks out
(R/I)/(J/I) S + F bending PhD
Then you can use the fact that $p\vee\neg p$ is always true
(R/I)/(J/I) S + F bending PhD
is there an order of operations i should be worried about?
nah
in this case
it's because you end up with only ORs
You have to be a bit more careful when also ANDs are involved
so now I have
True or Not q
But the rule of thumb is that AND behaves like multiplication and OR behaves like addition
I see there is a identity that says True or P is True, but I'm not sure how the negation effects it
compare $a\cdot(b+c)=a\cdot b+a\cdot c$ and $p\wedge(q\vee r)\iff p\wedge q\vee p\wedge r$
(R/I)/(J/I) S + F bending PhD
True or (any other statement) is always true
ohh ok
Just substitute P with (NOT q) and you're done
Damn you're actually amazing, that makes sense I'm just having a hard time adjusting to this type of math
Sorry to burst your bubble but 1) I'm not that amazing and 2) this is hardly math 
It's more like first order logic
well the dude said it's math so idfk anymore
Well it is the very foundation of math, that's true
Math wouldn't exist without logic axioms
i thought i was going to learn about a rapper
But it's kinda like calling an egg a chicken
i see
🥚 🐔
does this mean the egg came first
Now we're getting philosophical
wrong channel xD

well now I shall try my next few problems thanks again
But honestly I would welcome questions about logic in this server
So please don't hesitate to return if you have additional questions
okay cool
@weary tiger did you understand how to read the diagram in the end?
Yeh little bit
but i understand the concept how to do that
okay, just ask if there is anything else
So for this one, I am really confused. It is a homework question so I apologize but I'm not looking for the correct answer. Just what I am doing wrong here.
- What is the diameter of the cycle C15?
So the diameter, I believe, is the greatest distance between two vertices on a graph. Since it's a cycle, this would place it in the middle. So the farthest distance from one point to any other point is seven correct?
What am I doing wrong here?
Yes, seems correct to me.
So weird, it's telling me it's wrong..
Weird, what does it say is the answer? Does it come with a solution manual?
Nope. It's edfinity so it just says the answer is wrong. I'll message my professor because it's confusing me.
Yes, just checked the definition, diameter is usually defined just as you said. And in this case the answer should be 7
Strange. Alright, well I appreciate your time.
Sorry if this is the wrong channel.
What would a list of elements that extends infinitely in both signs of indices be called? Essentially a sequence but without a first term. Is that still a sequence? If so, I think then that Wikipedia is wrong in saying that "a sequence can be defined as a function whose domain is either the set of the natural numbers (for infinite sequences)".
I am, in turn, trying to figure out if "integers" in this section of my professor's notes should instead be "positive integer" or "natural number":
should be pos integers
I agree with lemon
is (not A V not B) same as not(A V B)?
oh i see.... so what would not(A V B) be if you expand it?
lol i thought it was distributive
oh nvm i got it, thanks @stable granite
for 1) why is the 3+6+9+12+... not included in the proof?
and for 2) how does that prove it? he just plugged it in
hmm
n=2 would be 3 + 6
i see. and what indicates that function is the “...” ?
yea, its just another way of saying the sum from i=1 to n of 3i
for 3) he put ...+3k +3(k+1) to prove n=k+1
why is that first 3k included if its just n=k+1
because its the previous term
ah ty
I am doing question 6, is that correct?
idk what to tell my professor...
I mean, That's literally the same as considering the index set to be N, since Z and N are isomorphic
I don't think I understand your point. For clarification, this is referencing a previous thing I posted here, and also the problem with what he said is that if say the sequence starts at -10, this theorem does not hold true for n = -11.
The strange indices are fine, it's the fact that the sequence would have to go backwards infinitely for this theorem to hold true.
but we can just define the sequence infinitely off of f(n)? so it's a weird sorta sequence but it works?
I wouldn't worry about it if I were you
the limit is being taken as n-> infinity, so it's not really that relevant
A sequence is different from its defining function, is it not? In fact, can't the same sequence be defined by different functions as long as they act the same for natural number inputs? I guess I am making to big of a deal about this though.
yeah that's right
explicitly if you use f(x) you could also use f(x)+sin(pi x) and get the same sequence
what is an iff
it's like
say you had a wire
and you were considering how many ways you could make the two ends meet
where two shapes are different if you can't turn one into the other without allowing the wire to pass through itself somewhere
so these are like just knots
and there's gonna be a lot of them
in fact there's an infinite number of knots, some more fundamental than others
and the fundamental ones are called prime knots
now bear with me here
in the olden days, people used to think that different atoms corresponded to different knots in the 'ether'
and they were dumbasses
hah! suck it, lord kelvin!
is this a pasta
Iff is shorthand for "if and only if"
@weary tiger nice pfp btw
Thanks, do you watch theminutehour? It's a hue shifted screenshot of the face of the main character of this animation: https://www.youtube.com/watch?v=EkDOuRAwrYE
i was asking which statement they thought was an iff
yeah lol that's why I like it
A bank account provides annual interest in the following way: they pay 4% interest on the previous
year’s balance and 12% on the balance of the year before. If you put $600 in this account, how much
money will be in it after 26 years? Show the recurrence relation you use to find the answer.
what have you tried and where are you stuck
so, apparently all the work i’ve done so far is right and the advice my teacher gave was to write code for it. but does anyone have any advice?
i’ll copy my work one minute
I started out with an = 1.04(an-1) + 0.12(an-2). The first half makes sense to me that it's just the previous year's balance plus 4% of that year's balance. I went on to write out the first few in the sequence in terms of a0 getting: an= 1.04^n(a0). The 12% interest part is confusing me. I tried a similar approach writing out the first few in the sequence:
a0= 600
a1= 1.04(a0)
a2= 1.04(1.04(a0)) + 0.12(a0)
a3= 1.04(1.04(1.04(a0))) + 0.12(1.04(a0))
a4= 1.04(1.04(1.04(1.04(a0)))) + 0.12(1.04(1.04(a0)))
an= 1.04^n(a0) + 0.12(1.04^(n-2)*(a0))
Commander Vimes
it is correct
Commander Vimes
now, have you ever heard about characteristic equation of recurrence relation?
i’m not sure maybe if i see an example (this is a very short 6 week class)
Commander Vimes
yeah, i already tried lol. i got very overwhelmed
yes, i’ve seen that before
suppose this equation has two distinct real roots
okay, so i'm looking at a similar problem i worked but i was given c1 and c2 for the recurrence relation
well in your case you also have c_1, c_2 given
600 and 624?
c_1 = 1.04, c_2 = 0.12
oh
i'm writing it out rn using the quadratic equation to find the roots?
ye
almost done
not really sure how to check my answer or if i made a mistake
also i got this right off the bat the first time i tried but i was following an example of my teacher's that's why i did the like an = 1.04^n(a0) ... approach but i don't have to do any of that?
you can just expand
but in case with recurrence of second order this is going to be cumbersome
,w x^2-1.04x-0.12=0
ok seems to be fine
wow
that's a much better approach without all the headache
i dunno why my teacher didnt suggest it 😭
thank you for the help
so, just to clarify with simpler problems you can just expand them to find the answer. but with more complicated ones like this it's better to just use the method of finding the characteristic equation, etc
ye
Also,suppose the two roots are equal,then the solution to the recurrence will be of the form (a+bn)p^n where p is the equal root
I also have this problem: Let 𝐸 be the event that a randomly generated bit string of length six contains an odd number of 1s, and let 𝐹 be the event that the string starts with a 1. Are 𝐸 and 𝐹 independent? Why or why not?
which I solved but I'm wondering if there's a better way to do the last part. i can post my work
all the similar problems I found just wrote out what is in both E and F but they were much shorter problems. Is there a better way other than writing them all out like I did?
i think i got it first bit should be 1 so that leaves 5 to choose from, 5c0 + 5c2 + 5c4 = 16 P(EnF) = 16/64
yes
wait
bro
are u the real djokernole
@round geyser
I looked at the numbers of papers submitted to arxiv. Since 1995, the areas that had the most increase relative to others are: optimization and control, probability, number theory, numerical analysis, combinatorics, PDEs. Looking at the submissions in combinatorics this month, I would say that at least one third of them are about graph theory
So I would say that graph theory is an active field
am i using this recursion tree correctly?
the inequalities, definition, or what
and why n > = 3
because the inequality isnt true for n=2
but how do u know it works for 3 and above
is there a way to figure it out
or just checking
i mean its sort of obvious, 2^3 < 16 < 3^3
and you know n^3 grows, so you just need to find any case that works
oh ok
Verify that if $S$ is finite, then any injection from $S$ to itself is also sur-jective.
\begin{center}
Let S=${x_{1},x_{2},x_{3}...,x_{n}}$, where $n \in \mathbb{N}$. We define injective function $h:S \rightarrow S$. We know $S$ has $n$ elements. This must mean that the range of $h$ contains at least $n$ elements, but we know that the range of $h$ is a subset of $S$, so it also has at most $n$ elements. We can only conclude then that the range of $h$ contains exactly $n$ elements, and therefore, the whole of $S$, meaning $h$ is surjective.
\end{center}
Moosey
Nvm.
Would it be safe to assume or state that Nash Equilbrium is a major topic/part of Game Theory?
ok
how do

you have to use the definition of the set B
Assume that B is in B, then by the definition of B ...
Now assume B is not in B, then by the definition of B ...
@burnt pewter
Somebody
Wrong channel. Try the general question channels, or #geometry-and-trigonometry .
dlp
So the statement is partially true in the sense that it uses the geq operator, but the g in geq never kicks in so I am in two minds
If a and b are of the same sign,yes equality holds
fun thing yall might appreciate
especially the little "Homework"
|| The infinite 'library' of all (page-orderless) 'books' of scrawlings on R^2, which contains as subsets every library which ever existed or will exist ||
This equivalence confuses me a little.
The sentence says that the biconditional of p and q is equivalent to "p if q" AND "p only if q".
The latter part of this conjunction is logically equivalent to "if p then q" and which is equivalent to "if not q then not p", but in the truth table they use "(p ->q) AND (q -> p)", the latter part of which is confusing me.
Also wikipedia said that "p if q" is the reverse of "if p then q" but I don't understand what that means.
Discrete maths books are just too confusing smh, so hard to read
@midnight dock Which book do you read? So I know what to avoid 😆
Uhhh well i tried reading the rosen book cus a lot of people say its great and i think its actually really good cus the author writes as if he knows whats going on in the reader's head
Unfortunately the pages were a bit too wordy for me
I didn't even finish the entirety of the first chapter of the book so I'm not one to say its a bad book
Maybe give it a read yourself and see if you like
Although my opinion may have already given you a bias
Well, I know many of the topics in the book I think, so I didnt plan to read it
But do you generally like concise/symbol-heavy books?
Rather than wordy
Well maybe something in the middle would be nice, where they like to skip some tiny details and give us a case
y make word when symbol do trick
Yes, sometimes you learn more from figuring out the intuition yourself, rather than being "served" everything in length
True
But other times an informal discussion of the intuition is in place, all depends on the topic imo
At least if the intuition behind the topic is not very accessible
Another way is to incorporate exercises in the text that you have to do before moving on, like Tao does in his analysis books I think
He does it in Epsilon of Room
In any case, no point in wasting time on a book that doesnt suit your learning style, when there are so many options out there
At least in undergraduate subjects
i know the empty set is a subset of $\mathbf{z}$ but is the {{emptyset}} a subset of $\mathbf{z}$
bakes
I was wondering what they were smoking when I was just looking at the TeXit output lol
empty set itself right
is {} = {{}}?
(no)
the set on the right, contains an element, namely the empty set
mmhm
thank you !
Can anyone suggest how modular could help with this contradiction?
So far I believe no solution would have different values on the LHS & RHS using same mod..but I don’t know of such a mod or how to prove if that is the case
I do know that the 2 will not be going anywhere from the equation so perhaps that can be used with my mod?
wait
mod 5 seems the most obvious to use
properties of mod also show amodn+bmodn=(a+b)modn
and squaring mod numbers only given you a certain mod in turn
so you only need to check 1,2,3,4
squared, and what their mod must be
@shut fjord understand?
I’m a bit confused at the squaring portion
Squaring mod numbers only gives you a certain mod in return?
Doing up to 4 will give us that integer back
wait
mod(1,5) = 1, ... , mod(4,5) = 4
2
yes, and mod(2^2,5)
4..
it loops you see
It wrapped around
014410...
Never goes passed 4
notice that left hand side must be 2 mod 5
and rhs can never be 2 mod 5
only 1, 0, 4 mod 5
Do I have to be concerned about the x^2 or y^2?
This is why I square the mod numbers I believe right
yes
So if I can show that amodn + bmodn != (a + b)modn
no no
wait
yeah, if you can show that, then you will come to a contradiction
because that property is always obeyed
wut
you know one side will always have the form 2 mod 5, and rhs will never be equal to it, due to squaring pattern of 1,2,3,4 mod 5
Oh no.
A pupil who has two people vouching for him is not the impostor.
and then you know he tells the truth.
and even if only one guy vouches for you, that is verified, you are also verified.
And now I am confused as well.
yeah I’m wondering if my prof messed something up
his english is not always the best lol
@languid cradle try drawing out the intervals for which each student was at the library—I think it’ll help in seeing the inconsistencies with what the students are saying
ahhhhh
I was thinking about students being there at certain times
but I didn’t consider that a student could be there over multiple time intervals
ok thanks
But the exercise says that the students are there once. And this must be important, because if we allow multiple visits, it's easy to construct a timeline where everyone tell the truth.
And I would assume it's also important that when two students have overlapping visits, there must be an edge between them in your graph.
yeah makes sense
I didn’t mean repeated visits btw
just that intervals for students overlap non-perfectly
I guess would be more accurate to say
Ah, okay, what do you mean by non-perfectly btw?
the intersection of two student’s time intervals doesn’t necessarily have to be equivalent to one time interval
like they can be there for some of the same time
but some of their respective intervals could be exclusive to them
student A could be there from 8-9, student B from 8:30-9:30
Yes, that's true, no such restrictions are given in the exercise.
One inconsistency I noticed is in the cycle A-E-C-D-A. I think at least one of the edges A-C or D-E should be present.
I don't care that about the direction of the edges now btw, I just consider the undirected graph
Anyways, in what course did you get this problem? Is there some part of the curriculum that should be used for this problem?
@languid cradle Since you drew the graph, I assume it's related to graph theory. If I have read the exercise correctly, I think it's possible to deduce that ||every 4-cycle in the (undirected) graph should have at least one chord (edge crossing "inside" the cycle). Then consider all 4-cycles without chords, is there a vertex that is present in all of them? ||
Can anyone verify if I have to be worried about the x^2 variable? I’m trying to show that the LHS and RHS cannot be equal to one another
you've done it wrong by dividing by 5 and doing mod 5
look at $ 5x^2 +2 = y^2 \mod 5$ directly
bot dead I guess lol
@vital dew
Shoudn’t I have mod on the lhs as well though?
the mod applies to the entire equation
you can put it on both sides if it makes you more comfortable, some people don't even write it
because 5 = 0
mod 5
this is all mod 5 so I'm not writing it out of laziness
lol
yeah haha
yup
Ahhh
since 2 is not a perfect square mod 5
Can you elaborate on this? I am fairly new to modular arithmetic
Is it like any other operation?
The mod operation
Like I know what it returns, but in context of how it affects an ENTIRE equation
That’s where I’m a bit confused
basically it takes any integer and makes it some number from the set 0,1,2,3,4
you can always add or subtract a multiple of 5 to get one of these representatives
Yeah because it wrap around once it goes above that
you can think of the equation as just having numbers plugged into it
But I guess what I’m specifically asking is
When I use mod5
Is it like with distributive property?
no not really
Like I distribute it to each term of the equation like if I am multiplying by a term or dividing by one
think of it as mapping every integer to one of those representatives
a%5 + b%5 + c%5 = (a+b+c)%5
like suppose you have integers x,y then the mod operation is doing f(x+y) = f(x)+f(y) and also f(xy)=f(x)f(y)
f(x)= x mod 5
So mod is just a function mapping
from the integers with their addition and multiplication to the set {0,1,2,3,4} with this addition and multiplication
Thanks a lot for the clarification
I went with a proof by cases within my proof of contradiction, showing each case for 0 through 4 and how all the integers will be mapped to that set, showing that its not possible for there to be a solution
I was thinking of using a bijection method for this question here, but I am uncertain of what I should set my variables to. I was going to initially set a and b to the entire GCD but that would mask away its functionality.
Would letting a = x+y and b = y (don’t have to necessarily let b = y) make my life easier in proving the 1 to 1 correspondence of both of these gcd functions?
I don’t think substitution of any sorts would help out at this point tbh
Hi, I have a question, I have to prove that (~p v ~q) is equivalent to (p ^ q ^ r). Is there someone who knows how?
make a truth table
by doing that they end up being very different because of the difference in propositions
turns out they are not equivalent then
Can someone please recommend to me a very good book for discrete mathematics filled only with exercises and solutions, which could garantuee to pass the finals?
@balmy cedar so D seems to be the liar then?
as in, the A-B-F-D 4 cycle shouldnt exist, since theres no chord and D is only connected to A and F by its testimony
and the A-E-D-C can be fixed by having D actually see A and E there, instead of A and F
hey can anyone help me with a question ?
8c) I believe the answer is {x (- Q| 0 < x < 1/infinty}
nvm I got it Finally
what was your answer 
$\varnothing$
(R/I)/(J/I) S + F bending PhD
woah chill

@languid cradle Yes, this was the answer I got to. Of course I can't guarantee that it's right
No worries !
Can u go more into detail why there has to be a chord between a 4 cycle
just for my own understanding
the problem itself is not for a grade
I just wanted to wrap my head around it
Let's take the cycle A-E-C-D-A
Assume A and C were not there at the same time
Then there's a time gap between A and C's visits
But clearly both E and D's visits must fill that time gap
So E and D must've been there at the same time, and by the rule in the exercise there should have been an edge between them
ok that makes perfect sense actually
On the other hand, if E and D weren't there at the same time, the same argument shows that there should be an edge between A and C
So at least one of the edges E-D and A-C should be there
But the exercise was quite hard, and maybe there is some easier argument to deduce the answert
no that seems about right I think
given the difficulty of the problem we went over in class
before this one
Ah okay, but is it a combinatorics course, graph theory course or what?
Not that it matters, I was just curious
Ah okay, pretty hard exercises you get then lol
could i get some help with proofs?
idk what's the point of asking that, when no is not an option
no
Oh right I thought i sent the image already
so thats the question
basically i understand its asking
for all x, y that are elements of R there exists z which is an element of R so that z = x/y. You have to find whether this is true or false.
i believe its true but im not sure where to go with it
just learned this
do you know ratio of 2 real numbers is real?
yeah
That's it
yeah i understand that, but im having trouble with phrasing that with the specific language which im guessing proofs used
use*
Thank you!
x/0=?
Nothing prevents y=0
x=y=0?
we say it is counterexample
Since the quantifier makes the claim for all real x and y.
Great, I’ll fix that and thanks for the help! There’s a second part to this question which I think I can do
So I’m not really sure how to find this negation statement
Luckily I figured out all the other problems
negation of "for all x P(x)" is "exists x such that not P(x)"
and negation of "exists x such that P(x)" is "for all x not P(x)"
and nested quantifiers can be splti
like "for all x and y P(x,y)" is like "for all x H(x,y)" where H(x,y) is "for all y P(x,y)"
That makes sense
So like this?
∃ x, y ∈ R ∀ z s.t.z ≠ x/y
This statement says that there exists x and y in the set of real numbers for all z in the set of real numbers such that z is not equal to x/y.
ye
but without s.t
i mean it would be properly worded then like "exist x and y such that for all z, z != x/y"
Oh I see
hello, i am currently taking a discrete maths course and i am hella confused by what they are teaching me
can I post what I have done in one of my answers and guide me to the right direction thank you
dont ask to ask, just ask
so I have these 2 questions
i solved question 2 this way
however I understand that I might have made a mistake some where in there
when i plug in 1 for n i get a totally different answer compared to what i would get if i plug in the first equation
so if i plug 1 into my equation, i get 2/3 - 1/3
which is 1/3 when the answer for n = 1 should be 2/3
i have another method I can use which is divide the difference between the 2 equations
however that confused me greatly.
@hardy quartz you can see that you can actually split (n+1)/3^n into two parts
n/3^n + 1/3^n
and 1/3^n is just geometric series
the fraction rule right ?
thats what i did
if you see my answer on top there i already did that
i was thinking maybe i can do ((n+1)/3 ^n) / (n / 3^n-1)
please parenthesise it properly
Commander Vimes
