#discrete-math
1 messages · Page 158 of 1
usernamephobic
Thanks
can someone please solve it for me, please
I think s/he is giving an exam.
i sent the solution i think is correct but you said its wrong
Hint: It might be a reflexive relation.
I know, so try to fix it
they said it is not
And pinpoint where you are stuck
Who said it's not reflexive?
I said the way you wrote it is wrong, not that it isn't reflexive
i just need to make (a,a) is in S ?
is that where the problem is ?
3a_+ 5a is divisble
by 8 ofc
other than that, its fine ?
and, no im not in a exam
Solve the recurrence relation an = -3an-1 - 2an-2 + 2n for n ≥ 2 with initial conditions a0 = 3 and a1 = 0, needed some help with this. Wondering how i would do this
characteristic equation, and then writing respective solutions with intial values
This is what i did so far
like what would be my next step
cause i dont see any sequence
Yes. If you say 5a+3a=8a is divisble by 8, so (a, a) is in S for all a therefore S is reflexive. That's fine. Before you said (a, a) is in S therefore 5a+3a is divisble by a.
You still need to show the symmetric and transitive though
Well, you have to find characteristic equation. Please refer to your notes once again.
From speculation, it seems like that the pair elements are same in the relation.
So I proved this with lattice paths but I want to try to interpret it via subsets:
any ideas how?
I really am not so sure.
The proof via lattice paths essentially interprets the right side as the paths from the last east step taken
To make a subset of k elements from n elements, consider what possibilities there are for the largest element. For each case, figure out what possibilities are there for the other k-1 elements.
oh neat! thanks!
If I want to show that a bipartite graph G with a complete matching has a deficiency $\delta(G) = 0$, does this just follow directly from Halls theorem? Since the deficiency is given as $\delta( G) = max_{A \subseteq x}{ \lvert A \rvert - \lvert P(A) \rvert $, we know that $ \lvert A \rvert \leq \lvert P(A) \rvert$, so if $ \lvert A \rvert = \lvert P(A) \rvert$ then naturally $\delta(G) = 0$, but what happens for the second case $\lvert A \rvert < \lvert P(A) \rvert$?
Fredrikpiano
Does this last part lead to a contradiction perhaps since it says that you would have a negative number of vertices unmatched? So then $\delta(G) = 0 $ for the later part as well?
@distant bobcat not exactly sure what you’re saying, but if you can show that the deficiency needs to be both at least 0 and at most 0 then you’re done
yes, thats what I showed thanks!
Just had a question about what this meant: A⊆B⇔Ā∪B=U Should I read this as A⊆B -> Ā∪B=U and Ā∪B=U -> A⊆B? Am a bit confused about the =U bit
great thanks. would it be right to say that as Ā∪B=U and Ā∪A=U (complement law), A = B?
No
Because B can contain elements of A along with some elements of A'
You can conclude A belongs to B
hmmm any clue on getting started with proving this would be appreciated
this from the complement law? or from the LHS of the original A⊆B⇔Ā∪B=U?
Let's say B doesn't contain some element of A,call it x. Now x is in the universal set,which implies x is in A' or x is in B
But x is not in A'(since x is in A) and x is not in B(by hypothesis),leading to a contradiction
So,B has to contain every element of A
(processing...)
Take U = {1, 2, 3, 4} with A = {1, 2} and B = {1, 2, 3, 4}. Clearly A’ U B = {1, 2, 3, 4} = U. And A’ = U \ A = {3, 4} so A U A’ = U. But A and B aren’t the same set
Let's say B doesn't contain some element of A,call it x. this part is setting up the not p in the start of the proof, right?
thanks, will continue working along this train of thought 👍
Is there a term for a directed graph where each vertex points to at most one vertex? (It doesn’t matter how many vertices point to it.)
@weary tiger https://en.wikipedia.org/wiki/Pseudoforest
Pretty convinced graph theory is just geography
Or wherever you study about forests
Why is that definition equivalent to what I described?
nah its where you study sadness
@weary tiger ?
Thanks
Unfortunately other than Tarjan from a Google scholar search I don't see many prominent people who work on it
And Tarjan's work was 1988 which is a bit dated
people help with math so darn quick
nope, dark letters on dark mode doesn't make sense at all
no
are parts of it wrong? or the whole thing?
Let $G$ be the directed graph with vertex set $\mathbb{Z}$ and an edge going from $x$ to $x+1$ for each $x$ in $\mathbb{Z}$. What kind of graph is $G$? A directed rooted tree, a polytree, or what?
lugita15
Sorry what?
New question: is there a term for a polytree in which every vertex has outdegree 1?
@haughty garden OK, let me ask this: Is there a complete classification of polytrees whose vertices all have outdegree 1? Can you decompose them into in-trees plus connections between in-trees?
I’m interested in the case when you have countably infinite vertices.
Are these the only shapes you can have?
Where each B_n is an in-tree
Is this a valid use of the simplification rule of inference? p ^ q —> r becomes p —> r cos p ^ q becomes p
I don't believe so @sour brook
In order to introduce an implication you need to assume something
Thanks I found something online to the extent too. What you said confirms that
Yeah, and by assuming p you would want to end up with r, so you can introduce the implication
p = T, q = F, r = F. then p ^ q -> r is true but p -> r is false
ok, so e.g look at p -> t and not t
can you see that not p follows?
then you have not p and r -> not s (e)
and not p or q -> r (a)
since not p is true, we should have r true thus
not s true and finally not q
Ok, but these don’t seem to use the rules of inference
i mean i do not write them formally
but it uses
not p OR q -> r
not p
therefore not p OR q, therefore r
e.g
Erm... which rule of inference is this? Cos not p only speaks to part of not p OR q which itself is part of an a —> b conditional statement
This Addition law is always a bit iffy!
q comes out of nowhere
Is there a quick way to find this formula? I know it's a 4th grade polynomial and I get a system with 5 unknowns, but is there a faster way?
induction
You can prove it with induction, but I want to find the formula first
consider
ans see what happens when each summand term is expanded
Uhm I see what you mean, however, do I logicalli get to that?
wym
Like, what process leads me to think that (k+1)^4-k^4 is the first step of finding the formula?
I mean, where does (k+1)^4-k^4 come from?
i've taken it out of my ass
but in general the point is that
(k+1)^n-k^n is polynom of degree n-1
because of this pormula
Ok, that makes sense, however, how can I know it's gonna be useful for my problem? I know it is of course, I know how to find the formula from there, it's just that this first step sounds like something I have to memorize without too much logic behind it
@frozen tapir i mean look a = k+1, b = k thus a-b reduces to 1
and you have polynomials with nth power thus summing you get sum needed participating in the sum
nice
I think this is calculus actually
^
Yes
what
"It also proposes a more practical scheme that uses a special module called recryption box to assist homomorphic function evaluation"
can someone help me grok this
what are the prerequisites to understanding this
I'm pretty sure I understand what a homomorphism is
but not homomorphic function
is that homomorphism of two functions?
groups of functions?
hiiiiiiiiiiiiiiii
@everyone whos good at discrete here?
ples come to private and dm me
pls i actually need help
these channels are exactly for that, now if you want us to do your work for you that's not permitted as per the rules of this server
nono i just need a little help with a few questions
like there a few things i cant understnad
if u can explain and solve itll be great
can u show me how to solve this?
think so?
How to I obtain the solution in the final lines (I understand everything up until that point). I marked the section in red
Why cant I just take a_n = n (for which f(n) = n-1). Why do I have to consider a linear combination?
so you have two linearly independent solutions to the second-order recurrence relation
but second-order recurrence relations are special in that if you have two such solutions, any linear combination of them will also work
the trick is that only one specific linear combination will satisfy any specific initial conditions given
Ah ok I see
If all the initial conditions were met by f(n) = n-1 then I could use that, right? If we would change the initial conditions to a_0 = -1 and a_1 = 0
if it works, it works
Thank you for your help 🙂
of course :)
for the option where "if a word starts with xx and ends with x then A accepts it"
shouldnt that be a true statement?
If we assume that we have a word that starts with xx and ends with x, This automaton accepts it?
what would be a good way to estimate x-subscript-0 here
clearly x_0 = sqrt(S) 
that's Newton's method for the function f(x)=x^2-S. Any x_0 greater than 0 should converge to \sqrt{S}, while points less than 0 should converge to -\sqrt{S} -- these are exactly the basins of attraction for these two roots. Here's an example (source: http://www.acme.byu.edu/wp-content/uploads/2017/01/Vol1B-NewtonsMethod-2017.pdf):
Disecret math.
Characters["Discrete maths is cool"] out={"D", "i", "s", "c", "r", "e", "t", "e", " ", "m", "a", "t", "h", "s", " ", "i", "s", " ", "c", "o", "o", "l"}
Hey y'all! I need some ideas.
Trying to come up with more types of problems that can basically be reduced to rearranging the letters of a word where some letters are repeated.
you could do something with scheduling different blocks of time throughout a day
Oh nice, I like it
same as (b) isn't it?
whoops that's already (b)
Number of ways to give n (indistinguishable) coins to k children, how about this.
also, maybe a kind of strict thing on making necklaces with beads, although I feel like that's overdone lol
what's a conventional alternative notation to XOR that isn't $\oplus$ (which I'm using for the direct sum) ?
xdres
what's the context where you're using both simultaneously, seems like a rare occasion
looking at elementary abelian 2-groups, in which the group operations is basically bitwise xor
but the group structure is a direct sum of C_2
if it's the group operation, I'd just use regular + maybe
I'm using real numbers so + and . already have full time jobs
investigating associative metrics
if I don't find something prettier I'll use it
where did you find that notation?
wolfram
cheers
I just wanted to say that this is the best beginner book on graph theory that I have found https://www.amazon.com/Introduction-Classic-Classics-Advanced-Mathematics/dp/0131437372/
how many ways u can arrange distinguishable* objects in distinguishable containers
i have a book full of these if u want screenshots btw
also, how many hands of 5 cards can be drawn from a deck of 52 cards for 4 players
how many ways can group of children be arranged in groups of 4 if 3 groups have to be assigned and there are 50 children
what is the coefficient of x^3 * y^2 * z^5 in (x+y+z)^10
all of these use the same formula
(total number of elements)! / (elements in first group)! * (elements in second group)! * ...
sorry, small error, super sleepy, fixed it now tho
Is data structures a part of Discrete Math?
a bit...
discrete math is used to analyze data structures
Hey guys can you please explain to me what should i do with this exercise? is it like a modus tollens (truth generator) or is it something else that i can't understand from this exercise?
Let p, q, r, s and t be statements variables. Use the valid argument forms to deduce the conclusion, ¬q, from the premises, giving a reason for each step. (a) ¬p ∨ q → r (b) s ∨ ¬q (c) ¬t (d) p → t (e) ¬p ∧ r → ¬s
hmm, looks like a, b, c, d, e are the premises @low gale
basically you are suppose to deduce not(q)
So the propositional formula p ∧ q → ¬r could be written as p /\ q -> ~r, as p and q => not r, or as p && q -> !r ? @reef thistle (for the first one) or not?
hmm... p and q implies not(r), yeah...
but (c) is the simplest so I think it's a good idea to start from there
i want it for a mid term exam and i am kinda stuck in which way i should write it correctly to achieve full points ...maybe i overthink it
you should use those symbols that you used before
like
¬t (c given)
¬t → ¬p (contrapositive of d)
...
I wonder if there is a nice combinatorial way for showing b_1 is 0. Something like for Euler's pentagonal number theorem on Wiki.
For any m, a good partition of m is defined as follows: a partition of m into 4 parts: m1, m2, m3 and m4 such that m1 is partitioned into a distinct positive parts, m2 is partitioned into b distinct non-negative parts (so we allow 0 to be a part now), m3 into c distinct odd parts and m4 into d distinct odd parts and a - b + 2c -2d =1. The size of a good partition is a +b + c + d. One way of proving the required result is to find an involution that flips the parity of the size of the good partition.
I got this problem from Andrews’ Number Theory book, and was wondering if someone could check it. And how would it generalize for weights up to n pounds?
looks reasonable
@floral field I remember doing a similar problem, I mean getting every other weight for 40 pounds. So, we can get any number 1-40 if we take linear combination of 1,3,9,27.
Is what what you were looking for?
I mean something similar.
So, yes I think 111111_{2} is the correct answer.
if there is no bijection relationship between two sets
does that necessarily mean one set is bigger than the other
since they both can be the same size but some of the elements in the codomain is not mapped onto
two sets have the same cardinality iff there is a bijection between them by definition
so if there is no bijection between two sets, they do not have the same cardinality
and hence one must be "bigger"
actually its not that easy, since its non trivial that "not having same cardinality" implies that "one set is bigger"
How do you define bigger here: B is bigger than A if there is a one-one map from A to B such that there is an element of B which is not an image of any a in A?
generally there are two ways
There is a 1-1 map between 2Z and Z satisfying your condition
you say |A| <= |B| if there is an injection from A to B
and then you say |A| < |B| if |A| <= |B| and not |A| = |B|
I meant after knowing that there does not exist a bijection
(the alternative is via surjections)
Let $M = {1, 2, 3}$ and $f = id_M$ would $f(M) = {1, 2, 3} or f(M) = {{1}, {2}, {3}}$ ?
MeesyIce
the former
thanks 😄
Is the ans 2?
Inclusion-exclusion principle, and yes the answer is 2
Got it! thank you 😄
Could someone explain the difference between {1,2} x (1,2) and {1,2} x [1,2]?
Working on the Cartesian product portion of Book of Proof
It's not made clear what the difference in discrete mathematics is between (1,2) and [1,2] or how that might affect the product of the sets. Any help appreciated 🙂
(1,2) can be read as pair or open interval
i assume that it is interval
so (1,2) does not include points 1 and 2
thus {1.2} x (1,2) won't include pairs 1x1, 1x2, 2x1 and 2x2
while [1,2] includes points 1 and 2
thus {1.2} x [1,2] includes pairs 1x1, 1x2, 2x1 and 2x2
@safe oxide
Ah, that makes sense. Thanks for the clarification!
"A function f from a set A to a set B is an assignment of exactly one element of B to each element of A."
I just cant get my head around the wording of this definition for a function
Could someone explain this to me pls🥲
Like an element of B doesnt necessarily have to be assigned to every element of A does it?
yeah, not necessarily.
the point is that for each $a\in A$ there's a unique $f(a)\in B$.
derivada.schwarziana
so a point in A can't have two different images.
Ok thx
An analogy. Think of a class of 20 students writing a test. There is a function from the set of students to the set of all possible marks. Every student must have a mark, but not every mark has to have a student that got that mark. And multiple students can get the same mark.
So each element of A (each student) has assigned to it exactly one element of B (one mark)
Yh its become a bit clearer now thanks
https://cdn.discordapp.com/attachments/490557019623915520/794323136241074176/image0.jpg
Could someone tell me if this 2 tables are logically equivalent to each other ?
which 2
so 1 means true and 0 means false
@rough parcel I can't see the other table
I can barely see it
the greenish one
No. More. Saying. Cuss words! It. Is. Not. Good. I'm putting a video on YouTube about no more saying cuss words. No more saying cuss words guys! It's inappropriate and violent! If you say a cuss word then you're like, going to jail, and you're like, and when you go to jail, i- ba- when you go to jail, if you say, if you say a cuss word you go to...
this is amazing
The condition for an injective function is ∀a, b ∈ A (c1::f(a) = f(b) → a = b)
Why is the first part ∀a, b ∈ A and not ∀a ∈ A, b ∈ B?
i’m assuming f:A->B. the inputs a and b come from the domain A, otherwise f(b) makes no sense
probably confusing they use a and b. perhaps using x and y instead would be easier
oh right
so two different inputs
if their output is the same then they are the same value
any two inputs*
^^
in the De Morgans law, are the entities (which I have circled) the same thing?
no, order of operation is different
top one is negating them first then *
second one is negating after
got it! thank you
What is SOP expression? Or POS?
SOP = sum of product
Complement of the “Sum of Product” is the “Product of Sum”
yeah, but wouldn't the expression be "product of sum" for f', and not f?
I want to find the "product of sum" for f
you mean again?
You would find f’ by applying De Morgan
And then take the complement again to find f’’
And observe that f = f’’
ohh got it.
You should ask these questions in proofs and logic channel
well, I am completely new to discrete mathematics (and, also new to this server) ,so I don't know which questions to ask where...
This is math logic question, not discrete math 🙂
hmm okay, I asked it here becuz it is taught in my discrete mathematics course.
np
how does this proof make any sense
they never showed a winning strategy even exists in the first place
they're assuming what they're trying to prove 
are you confused about how they know theres two cases, or that the move would be a "winning strategy" for the player
both i think 
ok lets look at a 2 by 2 cookie grid
i might not be the best at explaining this but i think itl help
wat
so say i go first, what happens if i eat the bottom right cookie
???
(m-1) x (n-1)
vimes stop it
u always win no matter what i do
ok right, so in say, a 5x5 grid, what happens if i eat the second from the top, on the left most column
you can force a win by picking the second cookie from the left on the top row
mhm makes sense
so all other moves prior to those moves can be forced
thats kind of the intuition behind it?
mmm, ok lets look at 3x3, generalizing it seems to be too much work lol with even and odd cases
so if it ends up in the scenario, where its just the a(1,1), a(1,2), and a(2,1) cookies left, (the top left), (second from left on top row), (second from top on left column), and its my turn, then im guaranteed the win
this was from the 2x2 example
true
so i want to force that scenario
mm
this seems like a lot of cases lol, hold on
ok so
ooo
ooo
ooo is our start
say i go first with bottom right
you then want to make a move where it leads to your turn, picking from either a 2x2 grid, or something like
x x x
x
or
x x
x
x
mm, this might be the wrong approach
to explaining this
do you see how, in an m x n grid, if the first player goes in the bottom right, the second players move "absorbs" the first players move?
yes
eh i feel like im about to just restate what your book says lol
ok but, there must be a winner regardless of the m and n
right?
yeah i feel that temptation too now with that whole absorption thing 
yeah ties arent possible
winner exists but i dunno if a strat exists for any player 
mmm idk how to word this correctly, but since a winner is guaranteed, and you can force scenarios, one of the players must be able to force a win at some point, and since you can "nullify/absorb" the immediate prior move, you arrive at the cases
ik it doesnt sound like, rigorous, idk how to describe it better
yeah i get it 
its about feeling it in ur heart
this was a really weird one ngl
anyways thnx for ur time 
rly appreciate it
idk maybe someone else can describe it where it doesnt feel heuristic
maybe the real math was the friends we learned along the way 
kiss me
what did I just walk into lmao
then rape them

what the fuck is going on in this channel
I'm trying to understand the definition of an ordered pair using sets
so a couple of examples that make sense in my head
- {x,x,x,x} = {x}
- { x , y } = { y , x }
3.{ {x},{x} } = { {x} }
my question:
{ {x} , {x,y} } = { {x,y} , {x} } =?= { {y,x} , {x} }
really?!
@dire void yes because all sets have element {x}
and {x,y} = {y,x}
ordered pair (x,y) = {x,{x,y}}
what?!
you can see that in that case (x,y) != (y,x)
hold on. lemme refer to my notes....
$\frac{f(b)-f(a)}{b-a}=f'(\xi)$
ffs, there are at least 2 equivalent definitions of order pair?!
yeah, even wiki says there's a lot of ways to define this
the point anyway is to make us able to distinguish (x,y) from (y,x) and (x,x) from (x)
yes. i agree that it's important to be able to distinguish (x,y) as distinct from (y,x)
Does anyone know how I could prove this? I made some Venn diagrams and i dont think its the same but I think its not supposed to be solved like that
@paper wing What does it mean for A to be a subset of B?
I think it means that if B is {1, 2} then A is { ∅ , {1}, {2}, {1, 2}} @quaint star
So the opposite?
What's the opposite?
Well, yes
Those are the subsets of B
But what's a definition?
You need to have a definition so that you can show it is satisfied
the definition of subset?
it means that the elements of A are members of set B
Lunasong
Well, apply the same definition
That is true if every element of A intersection C is an element of B
So thats always true right
So, you assume A is a subset of B. Then you want to show A intersection C is a subset of B. So you let x be an element of A intersection C, then you have to show x is also an element of B.
if the firs tpart is true
yes 
So is it proven like this?
A(x) B(x,y) C(x, z)
A is a subset of B here, and A∩C is {x} here. A∩C is still a subset of C so the implication is true
@quaint star
Can you show me how to prove it in general? if it doesnt take too long since i dont really know how to do that
what do you know about A intersect C
I will show you how to prove something else
If $A \subseteq B$ then $A \subseteq B \cup C$
Lunasong

@errant bear We dont really get any info about A
Is it (A⊆B)UC
for you equation luna
Let $ x \in A$. Since $A \subseteq B$, that means $x \in B$. And that means $x \in B \cup C$. So an arbitrary element x of A is also an element of $B \cup C$, so A is a subset of i5
Lunasong
So you assume the part that is given, and use that to prove the second part
hmm for my example I got this
Let x ∈ A. Since A ⊆ B, that means x ∈ B
That does not necessarily mean x ∈ (A∩C) since it is possible that the intersection of A and B have nothing in common.
This means that x ∈ ((A∩C) ⊆ B) is not always true.
So the claim as a whole is not true.
Is that wrong? @quaint star
Yes
The claim is true
You want to show A intersection C is a subset of B
So you should start by letting x be an element of A intersection C
And then show that x is an element of B
So if A and C have nothing in common the empty set is still a subset of B right? Should I prove it like that?
what do you know about the elements of A intersect C
∅ is always a subset of both A and C so the intersect is always ∅ ?
Let x ∈ A. Since A ⊆ B, that means x ∈ B
That does not necessarily mean x ∈ (A∩C) since it is possible that the intersection of A and B have nothing in common.
An empty set would be the result.
This means that x ∈ ((A∩C) ⊆ B) is always true because ∅ is always a subset of B
So the claim is true.
Thats what i have now
Lunasong
Let x ∈ A∩C. This means x ∈ A. A ⊆ B so x ∈ B
Is this a step in the right direction or not? @quaint star
That's it
Thanks man i think i get it now 🙂
Can someone help me with this one. I am to find the nth term in the sequence. So far I noticed the n^2 - 1 but i am a bit confused
<@&286206848099549185>
It looks like it's growing much faster than quadratic, looks closer to factorial
5760=5040+720
840=720+120
144=120+24
30=24+6
8=6+2
3=2+1
so an=n!+(n-1)!
can i post a question on discrete mathematics here, too?
or it should be in the question sections
No. God forbid u post a discrete maths question in the discrete maths channel
oookay
basically i need help because i don't know how to approach this
it should be proved by combinatorial proofs
n and m are positive natural numbers
reminds me of stirling numbers
and n^k represents this expression
yeeah, the {m k} thing is stirling number
and p^q thing is basically this
i have solved equations where it's easier to connect them to an irl example
but here i'm not even sure how to start
and i'm not sure if i have to prove that this {m k} is a stirling number
because the task clearly says that {m k} represents the number of ways to partition a set of m objects into k non-empty subsets which is the definition of a stirling number
n^k is the number of ways to select k objects from a set of n objects in order
n^m is the number of ways to select one of n objects, m times in order
Try to establish a relationship between them using these interpretations
Think of equivalence classes
@weary tiger
Long and very telling hint:
And completing spoiler (no need to expand unless genuinely stuck):
Eh there's a simpler method
||
Consider (a1, a2, ... am), where each element corresponds (possibly neither injectively nor surjectively) to one of n objects. There are n^m ways to achieve this. Construct the k equivalence classes, of which there are {m k} possible arrangements. And assign a unique object in n to each equivalence class, which there are n^k ways of doing.
||
A father threatens his son: 'if you are not quiet you will get a slap!', and he
proceeds to administer the slap even though the child had immediately become
quiet. from the point of view of mathematical logic, this man is not at fault: the
truth table for $\Rightarrow$ shows that, by becoming quiet, the child makes the implication
true regardless of the truth value of 'you will get a slap' ... (a good father should
have said 'you will get a slap if and only if you are not quiet').
0000000000
from a book
after a slight correction of formalism the boy probably asked him to define quiet and define slap
😆
if you are quiet you will not get a slap
both logically equivalent
if you are not not quiet, you are quiet
@ivory sinew @weary tiger I see what you mean. Yes that is beautiful. It is analogous to the distinction between Reiman's way of counting (in the order in which they appear) vs Lebesque's way (in bulk over equal denominations)
||The number of functions from m→n is argued by two separate ways. (1) Reimann counts his functions by considering in order, the first input 0∈m having n possible values, the second input 1∈m having again n possible values, ... and so on, eventually affirming the n^m total possible specifications. (2) Lebesque on the other hand looks at the class of inputs which maps to a fixed output. He looks at the class of inputs which maps to 0∈n, the class which maps to 1∈n, etc. This forms a partition over the set of inputs. A function is identified by first specifying the number of distinct outputs witnessed, say k (from 1 to n), then by specifying a partition of m into k classes (there are {m, k} of these), and finally by specifying the output value of each of these classes (there are n!/(n-k)! ways of doing this). Lesbesque affirms there are sum_(k=1)^(k=m) {m, k} n!/(n-k)! many functions. ||
everything makes sense once it's a sentence

00001011011110001111010110000
$\neg(\neg p) \implies p$
00001011011110001111010110000
$(p \implies q) = (\neg q \implies \neg p)$
0000000000
if dog eats, then eats fast, not eats fast means not dog
ohh
if human, then burp, if not burp then not human
I'm aware of the relation matrix comprising of zeros and ones, but if I have a relation that is a function how will the matrix then look?
I think if I let the rows correspond to the domain and the columns correspond to the codomain then each row will have at most one 1 and the rest of the entries are zero.
@distant bobcat yes, if you e.g define i-th row to consist of entries such that (i,j) entry is 1 iff a_i R a_j and R is function then you should have exactly 1 nonzero entry at each row
Then does this not allow surjective functions? If we use the same definition for surjective functions dont u end up with more entries in the same row?
wym?
no
because codomain is then columns
and this defn surjective functions are these not having zero columns
yes, you are right. I guess I was thinking about a scenario with only surjective functions and trying to define it in such a way that would allow multiple zeros for the rows.
The fundamental theorem of finite abelian group says: "Every finite abelian group is isomorphic to a direct product of cyclic groups". How do I find these cyclic groups?
Consider Z/7Z, it is isomorphic to Z_6, how do I find it ?
(Z/7Z)^x I mean, the units in the ring
Thanks slim. I mean how to find the decomposition
@weary tiger Was in a dota match :D. But thanks !
how do i find the number of units in Integers mod n ? do i have to draw the addition multiplication table or is there another way ?
no
Okay, one more question, if I find the reccurence equation which is for example:
Fn = Fn-1 + Fn-2
through F1, F2, F3...
do i need to prove why Fn is exactly that?
yeah, but i've found the exact value of F1 and F2, after that I found F3
well, you need a "starting point" to employ a recursive definition
you need to know two consecutive values, otherwise that definition makes no sense
Yes
I found that F1 is 1 and F2 is 2
After that I found that F3 is 3, independently
And after that I saw that F3 = F2 + F1
is this enough to say that i have found the recurrence equation?
you "found" them?
Okay, let me start again but I will use the exact numbers, because this example values mess up with the fibonacci sequence, can i?
eh, sure
so my problem is:
How many words of length 𝑛 over the alphabet {𝑎,𝑏,c,d} such that the sub-word 𝑏𝑏, aa, ba, ab does not appear?
Let an be the number of words of length n who satisfy the condition above
If a1 is the number of words of length 1 which satisfy the condition above, a1 = 4 (a, b, c, d)
If a2 is the number of words of length 2 which satisfy the condition above, a2 = 8
I have found that a3 is 40 independently, without using the fact that i know a1 and a2
Can I say that because a3 = 4a2 + 2a1, Fn = 4 Fn-1 + 2Fn-2
no
it's a sign that you might be on the right way
but you have to find a way to build bigger words out of smaller words somehow
well, let's say i want a word of length n
let's look at all words of length n-1 that satisfy those conditions
so they don't have this as a subsequence
now no matter with what letter those words end, i can concatenate c or d
because none of ac, bc, cc, dc or ad, bd, cd, dd are disallowed
ookay
so i can build at least 4*a_{n-1} words of length n
when a_{n-1} is the number of words of length n-1
now, you can also build more, so you have to be somewhat smarter about that
but that's probably the idea
i see
so i should look for the cases where I don't have the disallowed subwords
thank you!
Hey guys!
How can I get the z-transform of this function?
$f(t)=2^tcos(t+2T)u(t-T)$
JoshMooner
what have u tried
I'm new to this i don't understand from where to start really
they gave us a table that shows different things like that
ye u just gotta apply these basic set theory properties 
yeah u got it right
it does
and then like this for the whole exercise?
mhm
these ones should be intuitively obvious
judging by this it should remove that symbol?
so you dont have to look at the table all the time
oh
yeah you can
like all you're saying is take a set and add nothing to it, so you're gonna be left with the set you started with
so im left with this?
oh
i can't think of anything to simplify it further
yeah thats one half of it
does it have to do with b u c?
ok disregard what i said about distributing the A intersection B part
theres an easier way to simplify it
im drawing
associativity 
now apply the distributive law
inside the red brackets
🥳
whats B intersection B complement ?
what elements can have the property that it is in B and at the same time not in B ?
not sure?
yeah exactly
no element can satisfy that property so the intersection is the empty set
umm

intersection is associative. so that means it doesnt matter which two u intersect first
the result is gonna be the same anyways
so theres no ambiguity when u write it without brackets
the same goes for union
nah thats different
yup
i don't understand that backwards thing
lmao
is this easier?
is there a calculator or something to do it? xD
is this an exam problem?
no if i was doing an exam i wouldn't be able to chat on discord
Since the problems are not related to each other
b) is quite easy but it is cumbersome computation
hard to tell
it's an exercise so the professor can somehow boost our grade if we fail on finals
so it's still not ethical?
hi @loud copper
sup vimes
inf soap
i didn't use you
tbh I understood better than the actual professor
<@&268886789983436800> Is getting help on graded problems allowed?
it's an early university category, any exercise is graded regardless
i know how to do it
the answer is 8
i can take a picture if you want
alright
but we write the remainders differently so don't get confused
also don't judge my writing lol
we use + to show the remainder
last is 16 not 160 i just removed a wrong number
alright yeah
oh
that's a bit confusing xD
alright thanks
@amber hill , do you need a solution for a set excercise now?
oh k - maps
i was hoping it wouldnt require that
people say you can do it with a distributive law but i cant seem to work out what form to get in to get that to be possible
$(x\lor{\neg{y}\lor{z}})\land{(\neg{x}\lor{\neg{z}})}$
shriller44
like in this form i dunno if i gotta rearrange it some ho
Technically in this part of our course we shouldnt require the need for k-maps
can DNF involve literals by themselves in the chain of disjunction
Uncountable infinitife set - Uncountable infinitife set ? what the result ?
<@&286206848099549185>
@weary tiger it depends.
are you sure its "-"
also you gotta wait at least 15 minutes to ping helpers for future reference
R-Q is uncountably infinite and R-(R-Q) is countably infinite
but R-R is finite
and also R-[0,infinity) is uncountable infinite
the answer is "it depends"
Theorem: A connected graph G has a closed Eulerian trail iff all vertices of G have an even degree.
The proof enclosed is from MSE, and resembles the one I came up with. However, the proof given in the book I'm consulting runs over a page in length, so I was wondering if this argument has a gaping hole. Could someone point the shortcomings in this proof(if any)?
So this only proves one direction of the proposition?
Ye
In competition math it's taught that the edges of any connected graph with 2n vertices having odd degree can be drawn in n paths. And 1 path for no odd degrees.
I don't follow.
E.g. The edges of a connected graph with 5 vertices, 4 of which are odd, can be drawn in 2 continuous lines.
Ah, okay, that makes sense.
@grim tapir
Here might be the step-by-step conversion you're looking for:
jeez thats long
but thanks though
i didnt think you could distribute first part like that
Suppose a box contains 18 balls numbered 1-6, three balls with each number. When 4 balls are drawn without replacement, how many outcomes are possible. If order is matter.
I solved for this question ıf order is does not matter and use this method :
a_1+a_2+a_3+a_4+a_5+a_6 = 5 so C(6+5-1 , 5 )
but ı cant solved if order is matter
<@&286206848099549185>
What does one-to-one mean and what does onto mean
How did you do the problem when the order does not matter
One-to-one is injective and onto is surjective. Both would mean it is bijective
I think that lime_soup was asking zatza rhetorically to get them started
that depends if you think 1,1,1,2 == 1,1,1,2
these are different outcomes by some rules but they are the same if we only look at the symbols
you know that 1,1,1,1 will never happen
so you have {{1,1,1,1},{2,2,2,2}...{6,6,6,6}} in the set of impossible outcomes
you can do 6!-2!-6
wait no
6^4-6
,w 6^4-6
1 to 1 means for ever x in A in the domain of f there is a y in B in the range of f such that f inverse of y in B = x in A
the sin function is not one to one because there is ambiguity as to what exactly you want to get out when you perform the inverse of f
so the y->x is not unique
the point y maps to more than a single point x
so sin(x) is an onto function
I have never seen this with two inputs to the function so IDK what the answer is

cf.
This is not even technically correct and certainly gives people the wrong idea
it completely depends on what you define the target to be, from R to R since is neither invective nor surjective, from R to [-1,1] it’s surjective but not invective, from [0,pi/2] to R it’s invective but not surjective, from [0,pi/2] ito [0,1] it’s bijective
And yes you can claim this is obvious if we both know what we are talking about
But if you thought you were explaining this to someone who doesn’t know, don’t pretend it’s obvious
sin(x) is my favorite onto function 
I thought that I was explaining it to someone who didn't know so I gave them the short version that they could actually understand
ı use permutation and ı solve this quesition case by case
Ah that makes sense
You tell someone who doesn’t know that ‘y maps to more than a single point so sin(x) is onto’
So then someone who doesn’t know thinks surjective means non-injective
You are right it is much better to give people this idea so they can actually understand
My apologies
I read somewhere that if you have a payoff matrix for a pure strategy (i.e rock-paper-scissor) then its possible to show that there is no Nash-equilibrium by checking if there exists no elements that are both the minimal in a row and a maximal in a column. Has anyone heard of this? Im not sure why this works intuitively...
what does this mean?
[ ] is a function which returns 1 if p is true
And 0 otherwise
Think of bools in a programming language
🤔
i saw it here, but i dont really understand how they got that from the initial expression after F(z)
yes
So,you split the sum into two parts
Sum of f_n such that n=1 and f_n such that n>1
And the sum of f_n,n>1 part can be rewritten as above(The terms other than sum([n=1]z^n) )
shouldnt it be sum[f_(n-1) * z^(n-1)] and sum[f_(n-2) * z^(n-2)]?
you are splitting
$\sum{f_n z^n}$ as $\sum{f_{n-1} z^n}+\sum{f_{n-2} z^n}$
MoonBears-D-
was wondering if anyone could help me figure out whether im right or wrong ?
all help appreciated
im unsure between answers 2 and 3
Which of those are symmetric?
Is there a name/reference for something like "a sequence in a finite alphabet where each term determines the next must be eventually periodic"? This comes up all the time, and I guess is an application of the pigeonhole principle, but I wonder if it has its own name.
Hum I don't think it has a special name 
Should I ask about combinatorics here?
Maybe google the Sheffer Stroke
Or look in your notes/book
The stroke is like NAND (not and)
I dont have a notes book, I'm in high school.
9th grade
Okay, well, the Sheffer Stroke is like NAND, like I said
Thanks.
@terse crane yeah I know quite a bit about that, and just post your problem, lmao
You have two directions to look at: If the formula is true, conclude the given property of p_i's. And if the given condition on p_i's holds, then the formula is also true.
You can try to look at what each clause of the formula tries to capture and the indices for AND.
Im not sure if I've interpreted the notation right but is this it?
You also have other clauses in the given formula like (not p_1 or not p_3), (not p_1 or not p_n) which is not clear from what you have written.
As an exercise, you can later try to see how what you have written differs from the other one by finding a condition on the p_i's.
Or at least finding a valuation for the p_i's which satisfies the formula you have written but does not satisfy the other one.
@midnight dock those double conjunctive products effectively sweep out all distinctive pairs (order notwithstanding) of p’s. Er maybe easier to say like this:
The formula conjuncts over all unordered pairs of distinct propositions.
So let’s do one of the directions in the problem.
Suppose the formula is true.
But Suppose the claim is false. so there are two different true props, say pj and pk.
Now you can go to the formula and expect that one of the conjuncts corresponds to “neg pj or neg pk”. But since both pj and pk is true, this conjunct is false, and so the formula is false. Contradiction.
are generating functions a general method for solving recurrence relations?
or are there any restrictions on when we can use them?
you can always just write down G(x) and say that its coefficients are the terms of some sequence, but it might not be that useful to use the recurrence relation to get some kind of identity on G to play around with
ok so im trying to use generating functions to find the asymptotic bounds for fibonacci
so i have
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)
and T(n) = T(n-1) + T(n-2) + c
this method of solving the recurrence gives the correct answer for the time complexity as well, but the relation used here doesn't include the + c https://austinrochford.com/posts/2013-11-01-generating-functions-and-fibonacci-numbers.html
im not sure what to do with the + c
ah, maybe the CS server would be more suitable?
You only need to make a small change. Have you tried something?
what exactly are you trying to do? solve the recurrence relation or compute the time complexity (of what?)
there's a nice closed form for fibonacci numbers you can get from this that you can derive and use
find the time complexity of that algorithm above using generating functions
the link i posted uses generating functions to find the closed form for fibonacci numbers
but it solves F(n) = F(n-1) + F(n-2) and my question was that would I use the same process for T(n) = T(n-1) + Tn-2) + c?
c is the constant time for the addition (or whichever operation each iteration takes)
Yes
well, i asked somewhere else and i was also told it'd be the same process
but i dont understand, do i just ignore the + c because we ignore the constants when finding time complexity or what?
No
You remember how you can split f_n into n=1 and n>1 cases?
You do the same here
But T(n)(n>1) splits as T(n-1)+T(n-2)+c
Not quite
You should try understanding what is happening and see if you can just modify it slightly by adding another term
No,you end up with $\sum{f_{n-1}z^n}+\sum{f_{n-2}z^n}+\sum{cz^n} +\sum{[n=1]z^n}$
MoonBears-D-
Note that z here is just a placeholder and the term generating function is a slight misnomer. In the words of Wilf, 'A generating function is a clothesline on which we hang up a sequence of numbers for display.'
While c is some constant you are dealing with.
If you wish to learn more about generating functions, generatingfunctionology by the guru, Herbert Wilf, is your best friend.
yo yo
can a cartesian product have the same properties a relation?
for example could a cartesian product be antireflexive?
Cartesian product is a relation
Given sets A and B,define aRb iff a is in A and b is in B
yh i realised the stupidity of my question after i asked it
also another thing i wanted to know
if i have a relation R{(1,3) (3,1)(2,4)(4,2)}
would the transitive closure of that relation include (3,3) and (4,4)?
yh i was sure about those 2 just not about 3 and 4
i didnt know whether an element could only be used once if that makes sense
Yeah, because for finite sets it seems that 1) is wrong, but 2) is correct, but for infinite index sets it seems that both statements can be wrong
how come? there is no 1 in 2N set
it starts from 2
oh, okay, i see, fair enough
but if i define A_i in such way that they start form n and go to the infinity
so that A_1 = 1, 2 ,3 ,4 ...... and A_2 = 2, 3, 4, 5... and etc
in that case intersection on all A_i will be empty right,
ok, but the stament 2) will still hold right
like trivial case sort of
yes
ok thanks)
slimvesus
that makes sense thanks
can you help me?
ill poast now
What do weighted graphs help with?
There are a lot of problems you can solve with weighted graphs and trying to find the shortest path between two points
Look up traveling salesman problem as an example
you can use it to model transition probabilities between states with discrete time steps
Hi Good people's
I hope everything is well and fine at you sides
If any gentleman or woman can help me with Discrete Maths i will appreciate your help and will thank you for showing such act of kindness
Just use Induction
My name is Skylar .
I graduated with Mathematics and computer Science majors.
I can help with maths and computer science if needed
ok im back with the same question now: #discrete-math message
so i thought about it and actually my recurrence relation is:
T(1) = T(0) = c
T(n) = T(n-1) + T(n-2) + c
this is what i have so far
idk how to deal with the sum[T(n-1) * x^(n-1)] term
should i have just left the 2c inside the sum?
So,You can rewrite it as sum(T(n)x^n) as n varies from 1 to inf
oh
but dont i need to bring it to
ahhh ok ok
thanks moonbears i can always count on you :D
Yes
hi can u prove this
what have you tried?
i think zero multiplied by anything is zero. that is all what i think
<@&286206848099549185>
have you proved that v = 1*v
and -v = (-1)*v?
(and also have you proved that v+(-v)=0?)
do i need to prove that because question already says that V is a vector space over the field
is not that explanations of what u all asked for me to prove
i know this but i do not know what should i add to complete the solution
is it part of my proof, should i add this to my solution
No
You are assuming that your vector space is R^2, and you are assuming what the operation is
You have to prove it over a general vector space, using only the vector space axioms
"Let V be a vector space over the field F" what specifically should i understand from that? what is the point of saying that it is over the field F? i could not understand the field part
All vector spaces are over a field
It means your scalars come from that specific field
You can think of it being like R or C (those are examples of fields)
i am a little bit confused. can u explain the steps so i should prove step by step
@frail harness do you know the vector space axioms?
Additive axioms.
Multiplicative axioms.
Distributive axioms
So, the first step is to say
0v = (0+0)v
Then apply the distributive property, so what do you get?
Every step here is a vector space axiom, except writing 0 as 0+0 which is a field axiom
@frail harness
ok so i changed the index of the summation to continue from here: #discrete-math message




