#discrete-math
1 messages · Page 93 of 1
Liquid:
Do you see why?
$g=\sum_{n=1}^\infty f(n)x^n $
Liquid:
It's still the same
f(n) = n^2 + f(n - 1)?
Oh so it's the actual number
hmm what do you mean
Like f(n) is the number you would get by evaluating the recurrence
so the result
Yep
Alright so now we want to find a generating function for $ \sum_{n=1}^\infty n^2x^n$
i'll be honest im still not understanding how you've derrived the g = ...
Liquid:
im terrible at this stuff
Oh sorry
That's just by noticing that the first and last sum are the same
$\sum_{n=1}^\infty f(n)x^n = \sum_{n=1}^\infty n^2x^n + x\sum_{n=1}^\infty f(n)x^n$
the first sum being the one to the left of the = sign?
the second being the middle one?
Liquid:
You can get rid of the n=0 term
interesting
Because f(0) is 0
Okay, now we use some calculus to find a generating function for the second sum
So recall from calculus that $1/(1-x) =\sum_{n=0}^\infty x^n$ for x between 0 and 1
Liquid:
We call 1/(1-x) the generating function for the sequence of coefficients of that sum
hmm ok
That sequence being (1, 1, 1, ...)
why just 1
Now if you derivate that sum you get $\sum_{n=0}^\infty nx^{n-1}$
Liquid:
And if you derivate it again you get $\sum_{n=0}^\infty n(n-1)x^{n-2}$
Liquid:
That's just calculus
So let's write $\sum_{n=1}^\infty n^2x^n$ in terms of the functions we just talked about
Liquid:
Note that the second derivative of 1/1-x is $\sum_{n=0}^\infty n(n-1)x^{n-2}=\sum_{n=2}^\infty(n)(n-1)x^{n-2}=\sum_{n=1}^\infty (n+1)nx^{n-1}$
TeXit fell asleep
Liquid:
hmm so you derived again?
No I just rewrote the second derivative
ah i see
Look at what happens if you take the second derivative - the first derivative
You get $\sum_{n=1}^\infty n^2 x^{n-1}$
Liquid:
and the second one is the one you rewrote yea?
Yep
(n+1)n-n=n^2
Alright so we've just shown that $x(\frac{1}{1-x}''-\frac{1}{1-x}') $is exactly the sum we want
Liquid:
Derivative
2nd derivative - 1st derivative essentially?
Exactly
Note that $\frac{1}{1-x}'=\frac{1}{(1-x)^2}$ and $\frac{1}{1-x}''=\frac{2}{(1-x)^3}$
Liquid:
That's taking the derivative
Using the quotient rule
Alright so going back to original problem
we have $g = \sum_{n=1}^\infty n^2x^n +xg$
Liquid:
Using the stuff we derived we get $g(1-x) = x(\frac{1}{(1-x)^2} - \frac{2}{(1-x)^3})$
I'll ask when I get back
Sure
Liquid:
im back
so tell me this, up to this point which maths did you need to get this far?
I want to get into competitive programming, but math skills need to be pretty strong
my programming is pretty solid
math is my major weakness
Is it possible to learn everything I need to know by working backwards from problems, or do I have to go back and re-visit algebra, calc, and discrete math separately?
keep in mind i struggled to follow most of what you were doing
it might be a reasonalbe approach to look at problems, see what you need to know to solve them, then study the theory of that, then go back to the problems
repeat until you know the stuff
thats kind of where i'm at with the question liquid was helping me on
i just realized that i know nothing about generating functions
very little about derivatives
and make sure you understand what you‘re learning. learning a bag of tricks is handy for fast problem solving, but not the way to actually learn things
Mostly I'll need to be very solid in number theory, and discrete math
in studying the theory, you will by no doubt find things you need to know first before understanding the material, that’ll both serve as guides for what to learn and also motivation for learning those basics, I guess
but the problem for me is that most texts that cover those, already assume knowledge of things like calc and algebra
which algebra
honestly i'd probably fail both if they were complicated enough
even solving for x depending on how difficult the equation
well one is typically done before calculus, and the other only in university
Alright @versed hemlock let's finish this thing
sounds good
Using the stuff we derived we get $g(1-x) = x(\frac{1}{(1-x)^2} - \frac{2}{(1-x)^3})$
Liquid:
This gives us $g= x(\frac{1}{(1-x)^3} - \frac{2}{(1-x)^4})$
Liquid:
No we look at the coefficients of the polynomials associated with $\frac{1}{(1-x)^3}$ and $\frac{1}{(1-x)^4}$
Liquid:
Which isn't too hard
Liquid:
the two are equivalent?
this becomes clearer if you move the ^3 as surrounding the whole fraction
because $$\frac{1}{1 - x} = 1 + x + x^2 + \dots$$ for $|x| < 1$
Sascha Baer:
| X| is abs right?
but how is abs(x) < 1 different from x >= 0?
you can derive this identity with taylor series
I was giving you a general statement, unrelated to the problem
i see now
if the confusion comes from anywhere within the problem’s description (which I did not read)
no it does not
i confused myself
There's really no problem statement. My original question was how to find a closed form for f(n) = n^2 + f(n - 1)
where f(0) = 0
@azure lichen read my explanation so far
nah I mean I don’t care
Its amazing to see how Liquid is coming up with a solution, but im struggling to understand most of it.
Generating functions are pretty cool though
it’s not the sort of problem that seems enjoyable to me
I came up with this solution like a year ago, I'm just struggling to recall all the steps
that recurrence can be written in code with a runtime of O(N) @azure lichen
linear time
with a closed form, the code can run in O(1) constant time
thats a huge improvement
oh I’m aware of that
order of magnitude
so for me I think I need to learn how to derive these closed forms for recurrences in order have the most efficient solutions
I’m just saying I’m not really into these things :P
im just finding I lack a ton of knowledge to actually do it myself
well, all the more reason to learn!
Yeah you can solve all linear recurrences using generating functions
And I think polynomial recurrences as well
its not arithmetic because the difference changes right?
and its not geometric because there's no clear multiplying pattern
so the difference itself changes linearly
which means linear recurrence correct?
You should look at the book generatingfunctionology
Liquid how much math experience do you have up to this point
Im starting my PhD in the fall
Also look at knuth's concrete mathematics
I did!
i have the book!
i struggle to understand it
i was actually gonna ask you
how easy do you find it to read
I've only really used it as a reference but I liked it a lot
what should I do if I struggle to understand his texts
the most difficult thing for me is knowing where to start
do you have any good learning material references?
for someone like myself who clearly struggles to follow what you were doing
Just read the first chapter or so of generatingfunctionology and you'll understand what I was doing
Just review Taylor series and the basics of derivation and integration
And that will make sense
thats the problem
When you learn Taylor series you do a lot of similar manipulations
how would I have known that without someone telling me
like how would I have known that its the Taylor series, and Generating functions that i'm missing
You wouldn't
Tbh the question probably just wanted you to look it up
It's not a standard exercise to derive that formula in the uni math curriculum
i see
You're usually given it
so i guess im doing the right thing ha?
And you have to prove it's true
by asking of course
Yep
its a tough read but maybe it'll get easier as I explore some of the gaps in my knowledge
yea, don’t rush through things
ok thanks guys
theoretically i have all the time i need
outside of work that is
interesting
Khan Academy actually describes this problem too
he solved it a different way
How does he solve it?
he observed the pattern in the sequence
and concluded that it could be expressed as a cubic function
I finally remembered how to finish the derivation actually
the one thing i dont understand from the end of his first video is how he got An^3 + Bn^2 + Cn + D
It's pretty easy once you realize that $\frac{1}{1-x}^n $ can be expressed in terms of the nth derivative
Liquid:
What do you mean?
its the first thing he wrote when he found that the difference of the difference of the difference is changing by a constant 2
So that's the general form of the cubic
Yep
and we need f(0) = 0
But tbh this isn't really a derivation
Like if he hadn't known the answer previously I doubt he would have checked the cubic
well the reason he checked the cubic is because he saw how the sequence was changing
like 0, 1, 5, 14, 30
1, 4, 9, 16
3, 5, 7
2, 2
by seeing that the 2 remains constant as the difference of the difference of the difference, he concluded that it must be possible to express it as a cubic function
So I don't agree with that
I can make a sequence which is given by a 20 degree polynomial which also has those first 5 terms
Or a 1000 degree polynomial
That's not a valid justification
It just seems like a weird thing to check unless you know beforehand that it's a 3rd degree polynomial
very quick question: in graph theory, when a walk/path is simple, it means that no vertices are repeated. when we say no vertices are repeated, does that imply no edges are repeated too?
If no vertices are repeated then how can an edge be repeated?
yeah that was what i was thinking, so i was just double checking
can anyone help with proof by induction
i have a closed formula that i need to prove
sure, what's giving you trouble?
is this how you show proof by induction? or is it not enough information
okay you'll have to clarify what it is you're proving
from what it looks like though all you did was test three values of n (0, 1 and 2) and that's it
how many values of n should i prove?
up to n+4 nvm
for this relation, i need to observe the equivalence classes and sketch in a picture by plotting a x,y and find a (w,z) that satisfies it
not sure how to find the (w,z)
what might be more helpful is stating it in this form:
(x,y) ~ (w,z) iff:
x² + y² = w² + z²
also recall the formula for a point's distance from the origin
That relation is only an equivalence relation on the plane minus the origin
Because of the way it's stated
Liquid:
btw are you the same liquid that had a pfp with a hand on some mirror
lmao
so how would I apply that? using my own x and y’s?
by realizing that two points are in the relation iff they have the same distance from origin
What does that mean geometrically?
so is 0,0 the origin?
Yep
So we know $\sqrt{x^2+y^2}=\sqrt{w^2+z^2}$
Liquid:
Which tells us that (x, y) and (w, z) are the same distance from the origin
ok yes
So what do the set of points which are of distance r from the origin look like?
like how the graph looks?
a circle?
If $\sqrt{(x^2+y^2)}$=1, then the circle is of radius 1
Liquid:
so i would just plot a circle with radius 1
and w and z would be equivalent to x and y
what do you mean by every other point
A point (w, z) is on the circle of radius 1 iff $\sqrt{w^2+z^2}=1$
Liquid:
so which points of sqrt w^2 and z^2 would equal to 1
cause points are -1 and 1
so sqrt2 wouldn’t be equal to 1
Oh they gave you points?
so those would be my points of w and z?
Yeah, looks like it
thanks so much for helping!
textbook had nothing on this at all
only how to graph equivalence classes
not showing distance from origin or anything
yami:
hm, i did something different
how'd you do it?
first i computed 2019^2019 mod 60 by noticing that 2019 = 19 mod 60, and 19² = 1 mod 60
so 19^19 = 19^{2*9 + 1} = 19 mod 60
now you only have to do 14^19 mod 60, and then i forgot how modular arithmetic works
a^b isnt equivalent to a^ (b mod p) though, cause fermat's little theorem
and 2019=19mod60
wat
that is why i included the forgot how modular arithmetic works >:(
is this question well posed actually?
how does the exponentiation work?
is it a^(b^c) or (a^b)^c
first one
right associative is the norm
Yeah idk at least its what ive seen
I think it's mostly due to the fact that (a^b)^c = a^bc so people just write that
lol
yami:
anyways yeah calculate it mod 3,4,5 and use chinese remainder theorem to get the mod 60

anyone know how to solve b and c? i did a, but i am confused with the others
professor said to ask about “invariant” but when i emailed he said that he wouldn’t be able to answer lol 😐
given two pairs $(a,b)$ and $(a',b')$ which are equivalent under the relation from example 8.3.12, show that $(a,b) + (c,d) = (a',b') + (c,d)$ and likewise with multiplication
Ann:
invariant means unchanging
basically you're asked to prove that choosing a different representative from the same equivalence class doesn't affect the result of the operation
btw this is what i did so far
so what would i change if i showed division
since you need to change representative
or if i showed addition*
when do i use product rule and when do i use sum rule
i have a slight understanding of both, but is there a clear way to see during a problem
if anyone who can help with my question, i’ll be getting off. send me whatever you can to my dm’s or ping me it. thanks!
hey so how do i do this type of induction proof? instead of piecewise its giving me summation
anyone know definition of division of pairs?
i know there’s divisibility
but is there division of pairs?
Define division of pairs for (a,b) and (c,d) and show that it is well-defined
has to do with rational numbers as an equivalence class on the Cartesian product Z x Z.
it was from the question I sent last night
$14^{(2019^{2019})}$ mod $60$
yami:
kinda struggling with how i get to split it up to use the CRT
did you find the values mod 3,4,5?
that’s where the problem begins
Okay well what have you tried? Or what have you thought about
uhh nothing really, i literally don’t know how to go about this
i saw some euler phi function stuff but i guess that’s about it
i have to do it without a calculator no matter what though
Okay well start with $14^{2019^{2019}}$ mod 4. What is this?
i’m not sure how to answer
Zopherus:
ok so i can probably just do 14 mod 4 which would give me 2 mod 4
and then maybe also trim the exponents i guess?
2019 mod 4 would be 3 mod 4
Remember that you can also interpret mod as remainder after division. You have 2^some big power and you're looking at this mod 4.
what would be the remainder if you divided 2^big power by 4?
0 or 2, no?
remember that 4 = 2^2, how would dividing 2^x by 4 work?
uhh.. modulo the exponent?
What is 2^10 divided by 4?
Well a = b mod 4
c = d mod 4
ac = bd mod 4
wait
thats wrong
OOPs
2^2 = 0 mod 4 then that implies 2^x = 2^2 * 2^(x-2) = 0 * 2^(x-2) mod 4
assuming x > 2
Yeah
so it seems that 2^x mod 4 where x > 2 is always 0? seeing how victoria also explained it
seems to check out for the first few ones im doing in my head
Yeah this is true
And going back to the problem, we obviously have that 2019^2019 > 2, so we know that our number mod 4 is 0. Now we can think about it mod 3 and 5
2^... mod 3 and 4^... mod 5
2019 mod 3 is 0

2019 mod 5 is 4
what we do with this now
are you modding 2^(big thing) by 3?
and 5
if so
theres a pattern
2^2 = 1 mod 3 2^3 = 2 mod 3 2^4 = 1 mod 3 etc
it will keep repeating
it is, ive done some repeated squaring
No. Remember the number we started with is 14, so instead of reducing that down to 2 like we were able to do when considering it mod 4, we have to reduce 14 down to different numbers
so what do we do now
Well if you have 14^ big thing mod 3, using modular arithmetic we get that its equivalent to 2^ big thing mod3 because 14 = 2 mod 3
im confused what you want so 🤔 maybe im not helping here
$14^{(2019^{2019})}$ mod $60$
yami:
we got the prime factorization of 60 being 3, 4, 5
so you have x mod 60 and you want to use CRT to do x mod 3, x mod 4, x mod 5
ok
So then what i just said is correct
14^ (2019^2019) mod 3 = 2^(2019^2019) mod 3
because 14 = 2 mod 3
yuss
so then now we are back to what i said just now
for 2^ x mod 3 theres a pattern
where if x is odd then 2^x = 2 mod 3 and if its even its 2^x = 1 mod 3
so we also know that any power of an odd number is odd
so then 2019^2019 is odd
so then 14^(2019^2019) = 2 mod 3
May i know the direct question?
we cant do anything with the exponent itself?
what do you mean?
just scroll up a little bit @serene vigil
like taking the exponent modulo or something like that 
yami:
what do you mean take the exponent modulo?
if we had (14^2019)^2019 we could have solved 14^(2019) = 2 mod 3 then
2^(2019) = 2 mod 3
yes thats not correct
i mean
yes you can use wolfram
but you want to know how to do it
this is to be done exclusively by hand
the point is to learn how to solve these not just get the answer
Oh ok
no calculator or anything
As you wish
so now we have to do 14^(2019^2019) mod 5
which is 4 ^big thing mod 5 yes
the same pattern exists here, we have 4^ 2 = 1 mod 5, 4^3 = 4 mod 5, 4^4 = 1 mod 5 etc
so we get 4^ big thing = 4 mod 5 since its odd
so now you can just apply crt
however you have a 0 in your congruence for 4
$14^{(2019^{2019})}$ mod $3 = 2$ mod $3$ \ $14^{(2019^{2019})}$ mod $4 = 0$ mod $4$ \ $14^{(2019^{2019})}$ mod $5 = 4$ mod $5$
yami:
so this is where we're at, yes?
yes
okay
scuffed crt
so if we have x mod 4 = 0
then i think you replace everything by 4x? and ignore the x mod 4
im actually not sure
sec i think this might have been in a previous assignment
no you still can apply crt
oh yeah because the mods are coprime
no?

i know i had an example for moduli 5, 9, 10 where it didnt work because they werent all coprime
ok nevermind it works
yeah the mods are coprime is the only requirement
comes out as 224 mod 60

may i have some help with this one as well? i kind of solved it using recursion but then i saw some other people did it using euler's phi and fermat's theorem
$2^{(2^{32})}$ mod $11$
yami:
do you mean eulers theorem 🤔
It doesn't seem that nice to work with
we have phi(11) = 10
so we know that 2^(10) = 1 mod 11
wdym?
only 11 and 2 have to be coprime, phi(11) does not necessarily have to be coprime

i think youre fine 
so we have 2^(2^32) = 2^(2^32 mod 10) mod 11
yuss
this gets a bit messy
but 2^ x repeats in powers of 4
im pretty sure
2, 4, 8 ,6 ,2 ,4 ,8 ,6
like 2^x mod 10
its (2^(32)) mod 10
oke
ok so
note that 2^x mod 4 has the pattern 2,4, 8,6,2,4,8,6 ...
so 32 is a multiple of 4
thus 2^32 = 6 mod 10
so we have 2^6 mod 11
this has to just be done manually unfortunately
we have 2^4 = 16 = 5 mod 11 2^5 = 10 mod 11 2^6 = 20 mod11 = 9
so your answer is 9
isnt this supposed to be mod 10?
no no no
2^x mod 4 has the pattern 2,4, 8,6,2,4,8,6 ...
we mod the power by 10
ok so for coprime
a, n
we have this formula from eulers theorem
$ a^{x} \equiv a^{x\ mod \phi(n)} mod n $
yes
Victoria:
yes
we calculated 2^32 mod 10 by noticing it repeats
with period 4
since 32 is divisible by 4, its the fourth number in thep attern, which is 6
not yes
ok so if we look at 2^x mod 10
we have 4 possible answers
2, 4, 8 or 6
because 2^x = 2 mod 10 -> 2^(x+1) = 2*2 mod 10 = 4 mod 10 -> 2^(x+2) = 8 mod 10 -> 2^(x+3) = 16 mod 10 = 6 - > 2^(x+4) = 6* 2 mod 10 = 2
so it repeats
you can escape the * with \
\* *
ok
XD
i had to escape the first character
not the second one
but anyways, we have the pattern there
so noting that we start at 2^1 = 2 mod 10, and 2^4 = 6 mod 10, we have that 2^32 mod 10 = 2^4 mod 10 = 6
so then we end up with 2^(2^32) mod 11 = 2^6 mod 11
wait so
because 32 is a multiple of 4 and the pattern resets after every 4th result you determine that 2^32 mod 10 must be 6 becasue 2^4 mod 10 is also 6
yes
and then the exponent gets reduced to 6
yup
🆙 | yami has given @quaint river a reputation point!
Yay
let me know if i can ever do something for you, perhaps not discrete math related tho
maybe calculus or cs related stuff 
I dropped out of cs to become a math major oof
My cs teachers were terrible and my discrete math teacher wrote mathematical statements that would trigger every math professor ever
with statements like the only definition of an odd number is a number of the form 2n+1
when i tried to say n = 1 mod 2 is a definition of an odd number

But yea cs sucks at my school and their math program is pretty good
ok i dont go to discrete math lectures either because of the prof
so i decided to do math instead since I can self learn cs
definitely not a wrong approach, theres a lot of bloat that comes with cs majors come with 
yea
also a lot of cs is like irrelevant theory imo if you really want to get a job
so unless you go into academia its not that useful
Yea its pretty yikes
my uni is very theoretical on stuff
yea thats most cs programs which is honestly terrible
also I dont really like the idea of college in general honestly, theres too many useless classes that just waste your time 
for me its not so much the classes themselves as much as it is the incompetence of professors to design a proper class
cause universities dont hire professors to teach but to do research :/
they should hire specific professors to teach imo
like i had to work on a game where they would force you to use y, x to determine coordinates, or work on a database where datasets are incomplete/wrong multiple times after he "fixed" them

Pay 40k a year for terrible classes and drown in student debt
Oof
but still horrible so whatever XD
I mean personally its not an issue for me as my parents are pretty well off but a lot of my friends struggle with it
which is sad
i havent yet realized it completely but getting out of college w/ a degree and no debt seems like a massive advantage 
yea :feels
bad
man
And then even after tuition textbooks and online homework costs even more money
Yea, you pay for a textbook, which has a code
which lets you do homework on their portal for your professor
o you mean in addition to the 40k/year
cause your professor is lazy and wont grade it by hand
yes
100 dollar per class
I actually tried making something to replace those online homework portals but the hardest part is getting questions
for every class
also server load i guess
hmm
we dont even use textbooks here
theres like a manual written by the directors of each course and you pay like $10 for it and it contains everything pertaining to the lecture
but then again its only for math classes it seems
and useless kinda because they sometimes have the kind of math statements like the ones your prof used ot make
lol
yea math classes seem a lot better than the rest, usually the teachers are able to explain things much better too
so 98% of the time im really better off with this discord and youtube 
nooo this discrete math class is horrible XD
Anyways time to go fail my abstract algebra final 
hey can a simple graph by disconnected
?
yes
A simple graph is defined as having no 1 node-cycles and no repeat edges
so being disconnected is possible
any trick to finding chromatic number guys?
I mean it's a hard problem in general? Look for complete subgraphs to get a lower bound on the number? Then try to find colorings to get an upper bound for it
Except there are triangle free graphs with arbitrarily high chromatic number :(
So if you're unlucky you might be unable to use that technique at all
can someone help real quick
im not sure i understand how you're supposed to solve this
What have you tried?
What have you tried? Or what are you confused about?
You can do this using diagonalization or generating functions
🍮
Hey guys, is it possible for a relation to be both reflexive and irreflexive? I think no but i'm not 100% sure.
Look at the definitions lol
No, if even just some of the elements are related to themselves then it fits neither definition.
and every element related to itself and no element related to itself cannot both be true
I see thank you.
is 0>= |x-a| >= b, same as x = a & x-a>= b
Yes
can someone help me with my stat hw @here
Shouldn't this proposition be an exclusive or instead of a disjunction?
This is the classical definition of an implication (which is quite debatable on its own).
But nontheless, what you don't see, I think, is that if you claim this statement to be true, then if the left hand side evaluates to false, then claiming this forces q to be true
So whenever I see an either/or phrase its a disjunction as long as its not explicitly mentioned "but not both"?
or does it depend on what is being discussed
for instance " You can have soup or salad"
I don't feel conforable as if any textbook or convention would be the way to go
In English it's usually an exclusive or, IME
In logic as done by philosphers and mathematicans, nor isn't used that often - so much I can say
it's pretty confusing though
Okay so this the initial example is indeed a disjunctive proposition?
None of the connectives in classical logic translate well to spoken language
We married and had beautiful night
isn't a logical or, as it implies causality
I hate all humans and I hate all Norwegians
isn't interpreted the same was as
I hate all humans
despite the second one being logically speaking redundant
(not P) or Q
is how the material implication is defined and useful in binary logic - the one you usually want in math
P => Q := (not P) or Q
Ah alright I'll focus on recreating the conditional from the disjunction
to better understand
Use truth tables. You only need the "negation" and "and"
not x := 1 - x
x and y := x * y
x or y = not ( (not x) and (not y) )
x implies y = (not x) or y
x xor y = ...
You find them all on the sidebar on the wikipedia pages
ok ill give it a look thank you nikolaj, i appreciate your time.
"Cats that love dogs don’t taunt dogs."
Solution : The domain may be any set containing the dogs and cats. Let
C(x) mean that x is a cat, D(x) mean that x is a dog, L(x,y) mean that x loves y, and T (x, y) mean that x taunts y. This sentence has a few plausible interpretations. Perhaps it means that cats that love all dogs don’t taunt dogs:
∀x(C(x) ∧ ∀y(D(y) → L(x, y)) → ∀y(D(y) → ¬T (x, y))). Perhaps it means that cats that love some dog don’t taunt dogs:
∀x(C(x) ∧ ∃y(D(y) ∧ L(x, y)) → ∀y(D(y) → ¬T (x, y))).
Can someone help me how to translate "∀x(C(x) ∧ ∀y(D(y) → L(x, y)) → ∀y(D(y) → ¬T (x, y))). "
I'm not sure if it should be read as C(x) ∧ (∀y(D(y) → L(x, y))) first, and then ∀y(D(y) → ¬T (x, y))) ?
These brackets are terrible
Victoria:
TeXit
Your last line is the right way to read it
oh okay. let me try
For every x, it is a cat & for every y if it's a dog, then cat loves y, then for every y if it's a dog, x doesn't taunt y.
hm...
I think a better way to phrase it is
For every cat, all dogs love the cat, and doesnt taunt them
Ok thats not much better
wait dogs not love the cat, cat loves dogs
""Cats that love dogs don’t taunt dogs."
Yes
yea that's the original phrase, but I'm just having hard time how that whole thing translates into this
Ok so look at the first part
It says, for every cat, cat loves every dog
So all cats love all dogs
yes
Now the right side is all dogs do not get taunted by cats if the previous statement is true
right
So, cats that love all dogs don’t taunt dogs
The first part is (all cats love all dogs) -> (cat doesnt taunt dogs)
So cats loving dogs imply cats doesnt taunt dogs
ooooh...
okay so there is some depth of implication i need to connect these two seperate statements smoothly
okay I think I get it now
thank you very much!
"Friend’s of Fido’s friends are Rover’s friends."
soln: Let the domain be, e.g., the set of dogs. Let f refer to Fido and r to Rover. Let F(x,y) mean that x is a friend of y.
,tex ∀x(F(x,f) → F(x,r))
Nathan:
That's the soln given by my professor, but what I got is
∀x∀y(F(x,y) ^ F(y,f)→ F(x,r))
Wouldn't it require both x & y since I'm trying to make a relation between friend's of Fido's friend's?
Uhh
No
If you're a friend of fido you're a friend of rover
so that means F(x,f) [you are a friend of fido] - > F(x,r) [ you are a friend of rover]
then you just generalise it to all x
right
but isn't it friends of friends of Fido?
not direct friend
Like "Oh I know of him. He's a friend of my friend.
So he's not my friend, but my friend's friend.
Huh
oh crap
it says friends of fido s friends are rovers friends
i think thats a typo?
What are you having trouble with
It's called the binomial theorem
you can expand it into this series
which is easier to solve
the binomial theorem
@echo lintel
so its asking for the coefficient of the 8th term in this expanded seies
That literally is the binomial theorem
yes
i didnt mean that was easier to solve than the binomial theorem
i was saying thats what it was but worded it badly
Oh okay sorry
Could anyone explain to me why the equeation 10x+3=5 (mod 22) does not equal 10x-22y=2? Like, are you not allowed to combine the constants on one side?
well for starters the latter contains y while the former does not
Yeah sorry for being unclear, that is how I'm representing the mod
equivalent sing for the first equation
who's telling you you're wrong though
It's not?
Perhaps I'm just being stupid haha
both of those give the same solution sets tho 
yeah ok, I'm just confused. Got it, thanks
@weary tiger yes, sorry for not replying earlier I was on a reallu long flight :(
oh no worries 😃
How do I find the negation of this statement?
Specifically, I want to describe this statement using quantifiers: A sequence of real-valued functions (fn) defined on S does not converge uniformly on S.
Hey guys, I'm wondering whether there is a pain-free way of calculating 444^101 (mod 1961) or did my book just assume that one uses a computer for that?
ask in #elementary-number-theory maybe, I've seen people doing there similiar problems
not allowed to just use$\nexists$?
CaptainLightning:

No he needs to use forall probably
so basically Alvin just change exists to for all and the other way around lol
if not you could do like $\forall f(x)$ on $S, \exists \epsilon>0$, $\forall N>0, \exists n>N \exists x \in S, \|f_n(x)-f(x)|\geq \epsilon$
bleh spacing
anyway yeah like that
CaptainLightning:
@vague maple
@dense thicket @glossy adder Thanks, but the problem I'm having is that I don't know why the > inequality sign is not negated
$\geq$ is the negation of $<$ basically
CaptainLightning:
negation of x<0 is obviously x>=0, basically numbers that dont satisfy x<0
Shouldn't the negation be there exists an x not in S?
In general, when negating a statement involving "for all," "for every", the phrase "for all" gets replaced with "there exists." Similarly, when negating a statement involving "there exists", the phrase "there exists" gets replaced with "for every" or "for all."
Becuase what you want to do in this case is find one number in S which doesnt satisfy the condtition after
@dense thicket @glossy adder Sorry for the pings, but just to clarify, with statements involving quantifiers, only the quantifier part is negated and nothing else, i.e. inequalities?
The inequality at the end is negated
Because there's no quantifier in front of it
I'm trying to describe matrix equality. Is this correct?
,tex Let A and B be matrices of the same order. $A = B \leftrightarrow \forall a_{ij} \forall b_{ij}, a_{ij} = b_{ij}$
0x13A:
I'd just have "forall i, j" at the end and not be specific about their range of values (since you've just said "of the same order").
$A = B \leftrightarrow a_{i j} = b_{i j}, \forall i,j.$
gcc:
Oh, yeah, that looks cleaner. But was mine wrong?
Yes. Yours would imply that all elements of A and B are equal
Hm, I see.
For all sets A, B and C, (A − B) − (B − C) = A − B
Hi fellow maths fans! Does anyone know how I'd prove/disprove this?
Well B-C is inside B
So you're not removing anything that's inside A-B
If you convert A-B to $A\cap B^c$ every time you see a A-B this will follow immediately
Liquid:
Or you could use the argument I said above
Yes
,tex
∀x(C(x) ∧ ∀y(D(y) → L(x, y)) → ∀y(D(y) → ¬T (x, y))).
Nathan:
,tex
∀x∀y(C(x) ∧(D(y) → L(x, y)) → (D(y) → ¬T (x, y))).
Nathan:
Are these two equivalent?
C(x) mean that x is a cat, D(x) mean that x is a dog, L(x,y) mean that x loves y, and T (x, y) mean that x taunts y
Yeah there are some rules about distribution of for alls
okay ty 😃
if A is a set and B is a set
and i want to say "A and B"
is it A union B or A intersection B
i always thought it was union
but this video is saying intersection
ah nvm and is intersection
Intersection corresponds to and and union corresponds to or
C(x) mean that x is a cat, D(x) mean that x is a dog, L(x,y) mean that x loves y, and T (x, y) mean that x taunts y.
I need to translate: "Cats that love dogs don't taunt dogs".
Nathan:
This is the solution.
Now I asked my professor if this would be the same as his soln.
Nathan:
His response:
"The formula I wrote only makes a claim about those cats that love all dogs. Your formula also makes a claim about pairs of cats and dogs where the cat doesn’t necesssarily love all dogs ".
I still don't understand why it's not the same 😦
binomial I believe
do you mind moving your post to another topic cuz this is for discrete math?
I think they can help you on precal or calculus
that is discrete lol
oh really? rofl
or in my textbook
mb lol
has to do with advanced counting
rip
ok so
so according to the theorem
in b^k, k = 4
but why do they do 6 choose 4
is it because 6 choose 4 = 6 choose 2?
they do it in here
Yes that's correct
uh yeah sure im playing sekiro so might be slow to respond, but just ask in a question channel
oh i think I got it now. thank you though
it seems some stuff is missing
is this boolean algebra
uh huh
might be easier to express that in logical notation then
x || (y && z) == (x || y) && (x || z)
well
logical notation
C-style 
$\forall x( S(x) \wedge J(x))$ means that for every person, that person is a student and has taken a course in Java.
so it's false, since not all people are students
distinguishable: balls with different labels on them
or different colours or whatever
assuming the other is balls w no label
yes
tyvm
np
If A is a set {1, 2} and R is a binary relation {(1,2)}
how can you tell if R is transitive if there are only two elements?
Does it default to true or false... or something else?
Thought just occured to me.
When you consider transitivity, the three elements you choose to look at are not necessarily distinct.
Hm.
R only has (1,2) though.
Has (1,2) but not (1,1) or (2,2) so it's not transitive?
Makes sense I suppose, if that is correct.
it’s vacuosly transitive
there is simply no triple x,y,z such that x~y and y~z
so the transitivity condition holds for all such triples (of which there are none)
making it transitive
Ah, okay. Thanks.
Is it also antisymmetric then? Considering:
If R has (1,2) and (2,1) --> 2 = 1
I don’t think it’s antisemitic, no
Since first condition is false, isn't it true?
rip my spelling rn
typos
antisymmetric*
fixed now
lol, apologies
its because if you take x y and z in {1,2} you will have x=y or y=z or x=z
so ~ will be transitive
what?



and thanks again
