#discrete-math
1 messages · Page 151 of 1
hi is anyone avail to help?
(∀x in Z)[(A(x) → R(x))∨T(x)] (∃x in Z)[T(x) → P(x)] (∀x in Z)[A(x)∧ ¬P(x)] conclusion: (∃x in Z)[R(x)]
I have to write down a derivation for this, but im having trouble starting
@proud birch nice pfp
how familiar are you with the rules of inference?
i started with the 3rd statement to manipulate the second
just a yes or no plz 🙂
im kind of familiar but also kinda confused understanding them. for the 3rd statement is it possible to use univeral instantiation?
to get,
A(x)∧ ¬P(x) (3) universal instantiation
Ah scratch that. I used existential instantiation on (2) first
@lucid marlin room is in use #❓how-to-get-help
yeah i got
T(x) → P(x) (2) existential instan.
but i dont know how to approach it from here with lines 1 and 3 :/
Statement 3 seems to be the most useful to start with since its an and statement rather than an or
What do (2) and (3) have in common?
Right
So if we were to simplify out that 'not P(x)' statement, how could we use that with statement 2?
It's going to be one of the rules of inference
i can get 'not t(x)' using modul tollens
Yeah exactly
oh i see, but is there a rule in order for me to bring out any information within universal quantifiers?
or am i able to just bring out the A(x)∧ ¬P(x) from (∀x in Z)[A(x)∧ ¬P(x)] just like that?
It's been a while since I did universal/existential instantiation/generalization but yes im pretty sure you can just do that
Alright gl
`1. (∀x in Z)[(A(x) → R(x))∨T(x)]
2. (∃x in Z)[T(x) → P(x)]
3. (∀x in Z)[A(x)∧ ¬P(x)]
4.(A(x) → R(x))∨T(x) (1) Universal Instantiation
5. T(x) → P(x) (2) Existential Instantiation
6. A(x)∧ ¬P(x) (3) Universal Instantiation
7. A(x) (6) Simplification
8. ¬P(x) (6) Simplification
9. ¬T(x) (5)(8) Modus Tollens
10. (A(x) → R(x)) (4)(9) Modus tollendo
11. (∃x in Z)[R(x)] (10)(7) Modus Ponnens`
I got this, and thank you for assisting me
not sure if its entirely correct though
Yeah np.
For one thing I think usually when you do existential instantiation you usually use some new element like a. So it would be T(a)->P(a) and you'd use a for the rest of the proof (this would also make (4) unnecessary)
And then id also have getting R(a) by modus ponens and existential generalization as separate steps.
Otherwise that looks good to me

@nimble cove I understand it now, thanks.
yes that's the subset symbol
tyvm
does anyone know how to look up symbols in word quickly
this is time consuming
why use word at all
my professor wants it typed
latex no go?
anyway word has an equation editor
For b), when they R-T, aren't we removing all the reflexive elements? how are we still getting the number of reflexive elements?
I am struggling with induction, any help would be appreciated
I got to like fk+2 < (13/8)^k+1
and with a bit of maths I got it to
fk+1 + fk < (13/8) * (13/8)^k
I dont know where to go from here
<@&286206848099549185> any ideas ?
I got to like fk+2 < (13/8)^k+1
Isn't that basically what you have to prove
yeah but how do i prove it
I kept looking at it
and it looks proved
is that it ?
cause it seems confusing as hell
kept looking at it
It looks proved
yeah lmao
fk+1 + fk < (13/8) * (13/8)^k
this is what I am up to
I dont know how to go from here to proving it
and I am pretty sure I need to sub in the assumption I got at some point
For b), when they R-T, aren't we removing all the reflexive elements? how are we still getting the number of reflexive elements?
@burnt herald anyone?
how did you arrive at this without the assumption even @nimble holly
I changed fk+2 to fk+1 + fk because fibonacci
and I changed (13/8)^k+1 to (13/8) * (13/8)^k
I did not need the assumption
well
(13/8)^k+1 does not come into play yet
let's say you want to prove the claim for $f_{k+2}$
Lochverstärker:
you use definition of fibonacci as you did to get $f_{k+2} = f_{k+1} + f_{k}$
Lochverstärker:
okay got that
then you use the assumption
well I can apply the assumption to fk+1
i.e. you assume you have already proved the theorem for $f_l$ for $l < k+2$
Lochverstärker:
indeed, but also to $f_k$
Lochverstärker:
this is sometimes called strong induction
💪🏿
so strong induction is needed to answer not regular induction ?
well it is what it is
Lochverstärker:
bad tex, but this
because I never proved fk< (13/8)^k-1
you get what i mean
this is part of the induction hypothesis
you can assume the statement is already true for all $l < k+2$
in this case
Lochverstärker:
and if it then follows that it is true for k+2
the statement is proven
because
you showed it for f_0 or f_1 "by hand"
then to prove f_2, you assume f_0 and f_1 (which is proven) and it works
then for f_3, you already have proven f_2, f_1 and f_0
so it works
and so on
if that explanation doesn't work, look up 'strong induction'
Oh god
it's equivalent to 'normal' induction and i bet there are some videos explaining why
dont I need to prove that $(\frac{13}{8})^k + (\frac{13}{8})^{k-1} $
Chh:
well, you need to show that this is < (13/8)^(k+1)
is less than (13/8)^k+1 ?
yes
How do I tackle that then ?
wait dont I need to prove its more ?
if a>c and b>a therefore b>c
isn't that the entire point ?
Lochverstärker:
tbh I confused my self
isn't it possible to prove it by the fact
that (13/8)^n increases alot faster
than any fibonacci would ?
that's what you are proving
how would you prove that
since fibonacci would be limited to the being less than 2x the previous fibonacci number
where 13/8= 1.625 which is more than the golden ratio
I probably am struggling to get my point accross
For the <- direction of the proof how does that prove A is a subset B? I get letting x be in A and by the assumption you know x in A^c Union B, and therefore in B, so you have x in A and x in B but how is that enough to show x in A subset B
N/𝔄:
couldn't you also argue this also says for all x in B we have x in A and thus B is a subset of A?
because we have x in A and x in B how do I know either is a subset of the other
Would that matter?
yes the proof wants A subset B
If A=B then B ⊆ A and A ⊆ B
They didn't say x ∈ B
Did we read the same proof?
They assumed x ∈ A and concluded x ∈ B
it says x in A^c Union B, so therefore x in B since x is not in A^c since x in A
Yeah
so x in A and x in B
but x in B and x in A
so not sure how to show A subset B
or if this means also B subset A
x ∈ A which is a subset of U. Therefore x ∈ U. Since U = A^c ∪ B we have x ∈ A^c ∪ B
But since x ∈ A, therefore x ∉ A^c, so x ∈ B
yeah, how do i go from x in A and x in B to x in A subset B
does x in A and x in B mean both A subset B and subset A?
i dont think so
so not sure how to get A subset B
because I cant tell the subset direction just off x in A and x in B
yeah, how do i go from x in A and x in B to x in A subset B
This is not what we are doing
We are not "going from x in A and x in B"
All we assume is that x ∈ A
And that U=A^c ∪ B (the condition from the iff)
All we assume is that x ∈ A
We show that from this assumption it follows that x ∈ B
x ∈ A and x ∈ A^c is a contradiction
Yes that is a contradiction but not what is stated
What is stated is that x ∈ A^c ∪ B
x ∈ A and x ∈ A^c ∪ B -> x ∈ B so you get x ∈ A -> x ∈ B
are you allowed to just let x ∈ A? because the assumption is x ∈ A^c ∪ B
Consider the possibility that A is the empty set
x ∈ A and x ∈ A^c ∪ B -> x ∈ B so you get x ∈ A -> x ∈ B therefore A subset B <--- is that the proof
That is not the proof but very roughly the way this was concluded yes.
2 questions 1) are you allowed to say x ∈ A if the assumption is only x ∈ A^c ∪ B ? if so, why? this is more a meta-questions about what is allowed in proofs 2) what would your version of what i wrote above proof be (i.e: x ∈ A and x ∈ A^c ∪ B -> x ∈ B so you get x ∈ A -> x ∈ B therefore A subset B )
- doesn't make sense
It follows that x ∈ A^c ∪ B when x ∈ A
You don't have to assume it
Or "be allowed to say it"
Clearly since A ⊆ U and U=A^c ∪ B, it follows from x ∈ A that x ∈ U=A^c ∪ B
For question 2, you are missing details I gave a complete proof above
sorry, i am being dumb
how A can be subset of A^c U B (or it is provided that A also is in B)?
x ∈ A which is a subset of U. Therefore x ∈ U. Since U = A^c ∪ B we have x ∈ A^c ∪ B
But since x ∈ A, therefore x ∉ A^c, so x ∈ B
It is provided that U is the "universal set" here and the iff assumption is U=A^c ∪ B
So since A is a subset of this "universal set" (otherwise complement doesn't make sense and this is stated in the problem), A ⊆ U
okay, so you have A subset U, x in A^c Union B
you can just say 'let x in A"
or are you deducing x in A
im a bit confused
You are trying to prove this proposition: ∀x (x ∈ A ⇒ x ∈ B)
yes
To prove an implication P ⇒ Q you have to assume P and prove Q
No that is not why it is fine
To prove an implication P ⇒ Q you have to assume P and prove Q
P is x in A^c Union B
P is x ∈ A and Q is x ∈ B
im kind of confused about the x in A justification, it is just an assumption?
not a deduction
our assumption is x in A^c Union B
not x in A
but we are allowed to say x in A as an additional assumption?
What do you suppose x ∈ A ⇒ x ∈ B means?
A subset B
if P then you prove Q
No
It means that whenever P is true, Q is true
So to prove this statement we assume P is true, to show Q is true
so we assume x in A is true?
As a hypothetical
Okay, this makes much more sense
If x ∈ A was true, then x ∈ B follows
Thank you for helping me understand this proof
x in A is a hypothetical along with our given assumptions, we show if x in A then x in B
so in these subset proofs we can look at our assumptions and then use hypotheticals, and show if these hypotheticals are true along with our given assumptions, then we can prove a conclusion we wish to show?
we arent strictly required to only use the assumptions stated
but can introduce such hypotheticals to get the proof going
?
Yes
that is a key insight that will help me get unstuck with susbet proofs. i had incorrectly assumed you were only allowed to use the stated assumptions
this makes a lot more sense, you cleared up a lot of bugs in my thinking. thank you
Np
with boolean implies
how am I supposed to know if its true or false
like boolean and for example
if I have T and T the result would be T
how would I do that with boolean implies
😦
bool thing = true; by default
implies is just defined as false when "true -> false" and true in all other cases
those are definitions
thanks
but if implies mean if then
if something is false
then true?
how is that true
because it's defined that way
so if something is false then its true
idk im struggling to understand that
if implies means
if then
if something is false then something else is true
how is that statement true
yes, but there are 2 different statements
because out of falsehood anything follows
its the principle of explosion
the formal explanation is, take a true statement P
now assume (not)P
then P or Q is true for any Q
and because (not)P is true, Q must be true
but that doesn't really matter, you can just treat the symbol "=>" as defined that way
I don't get why they use P(n-1) => P(n) here,
@narrow epoch that's probably an error
its meant to be used after it has been shown
that P(n-1) => P(n)
I think it holds, asked some other folks
you can also show P(n-1) implies P(n)
I just didnt know
that's the same thing
does there exist a graph which has 20 edges, is 3-regular and has girth 5, but is not isomorphic to the dodecahedron graph?
since groups have a single closed operation, can it be addition or multiplication or only addition?
sorry if this isnt the right channel for that
only one operation
you can have a multiplcative group or additive group, for example respectively reals with normal multiplication and integers with normal addition
okay thats what i thought i just found a diagram online and it described a group as only being closed under addition
also what is the general term for these types of things like fields, rings, and groups?
for example fields, rings, and groups are all examples of ________
algebraic structures
im trying to prove A->B == ~B->~A
~ (A-> B) <=> A->~B
with hilbert proof
Yeah that one’s true, but you can’t derive ~A -> ~B from A -> B.
oh
Is all I pointed out
my mistake
Oh lol, you typed the original thing backwards?
trying to prove A->B == ~B->~A
1) A->B <hyp>
2) ~A v B <~v Axiom>
3) B v ~A <v associtiavity axiom>
4) ~B v A <idk what to put herE>
im stuck on 4
the <...> are annotations for hilbert proof steps
o
ur right
~(~A v B)?
I’m not sure, I only know that in the context of sets
oh yeah its called demorgans law 1
rly
Can’t you just do the reverse of what got you from 1 to 2?
@honest barn
u said that earlier
No but like
no youre probably right
That was from step 4
Which would have got you B -> A
Since actually 3 to 4 was bad
Like
From step 1 to step 2
You used this thing you called ~v axiom
Presumably this says that A -> B is equivalent to ~A v B
yeah
ohhhhh right on
That’s why I said reverse haha
my bad
No problem, I’m glad I could help
😄
no problem 🙂
How is 3k+2 equivalent to 3k-1, k int.. this is a line in a proof im reading and dont see it
its a proof proving there are infinite number of primes of the form 3k+2
@lucid marlin 3k-1=3(k-1)+2
ah i see thanks @last timber
yw
does someone here have an infinite patience to explain to me how the fuck i'm supposed to solve 5x = 3 mod 23
Substitute
wait hwhat
so i'm basically saying "let x be a number such that the remainder is r when divided by 23" and i take it from there?
i hate online learning, this makes no sense to me
what am i supposed to do if i'm dealing with bigger numbers, say mod 2384
do i just say "welp time to waste 10 years of my life" and just start from 0?
You multiply both sides with the multiplicative inverse
multiplicative inverse of what?
Did you understand why there are 23 possibilities?
Multiplicative inverse(wrt mod 23) of a is b such that (ab)=1 mod 23
ok so i'm trying to find the multiplicative inverse of what?
Of 5
Let that be a
So, a(5x) =a(3) mod 23
Which is to say x=3a mod 23
And you are done
Do you know how to find integers a and b such that ax+by=1 when x and y are coprime?
nope
Do you know Euclid division algorithm?
heard the prof mention it in class
i know bits and pieces
but it makes no sense to me
Ok,If you don't know that, you have to brute force this
well how do I do it?
Euclid's algorithm?
If you are talking about this question,just cycle through x=1 mod 23,x=2 mod 23..?
yeah the algorithm
Given a number a,and a number b. There are unique integers q and r satisfying 0<=r<q and a=bq+r
bro what
the thing i know is the one where you go like
23 = 5*4 + 3
5 = 3*1 + 2
3 = 2*1 + 1
Yea,That
how are those the same thing
In 23=5 * 4 +3 ,4 and 3 are unique
That is there are no other numbers (a,b) satisfying 23=5*a+b and 0<=b<5
oh ok
so i go through it and get to 3 = 2*1 + 1 then what do I do?
or do I go one more and do 2 = 1*1 + 1?
Now you write 2=5-3*1
And 3=23- 5*4
And 1=3-2*1
So,it becomes 1= (23-5* 4) -(5- 3* 1)
Or 1=(23-5* 4)-(5 - (23-5* 4)*1)
what am i looking for here
Or 1= 2* 23 - 9* 5
You are looking for 2 and -5 here
So,now you can write (2)23+(-9)5=1
Now take mod 23 on both sides
wait one sec
im trying to figure out the rearranging so that i can get the 2 and -9
either way my brain's not having it today
oh wait
signs
yeah those are important
so i get 1(mod 23) = (2*23 + -9*5)) (mod 23)?
Yes
i just don't get what I do with this info
everything I know is telling me to just reduce it but then I just end up with 1 (mod 23) = 1 (mod 23)
(2* 23 + -9* 5) mod 23 reduces to (2 * 23) mod 23+ (-9 * 5 ) mod23
Which is 0 mod 23 + (-9*5) mod 23
Which tells us (-9*5) mod 23=1 mod 23
i didn't know you could do that
(a+b) mod 23 is a mod 23 + b mod 23
so i have my 1 (mod 23) = -9*5 (mod 23), is that supposed to tell me that a = -9?
so imma use 14
so i get x = 52 mod 23 which is basically just 6 mod 23?
14*3 is 42
Yes
time to try it on another problem
So i have this Graph, which is supposed to represent distance in meters I need to find the shortest path using Djkstra algorithm
``Use the steps of Dijkstras algorithm to find the minimal distance spanning tree from A to all other locations`
i get confused when i reach E
So i starts off like this:
Step 1: I visit all the vertices from A, the smallest distance is A -> F so we assign F = 30, G = 38, B = 31.
Step 2: I start from F (since its the smallest distance from A) if we look at F -> G the distance is 30+42 = 72 which is larger than G's current value '38', G stays 38. Now we look at F -> E (currently E is infinity) so since F = 30 it becomes 30+20 = 50, which is smaller than infinity.
Now we have E = 50 and G = 38
<@&286206848099549185>
what's your question
where do i go from there?
you go to the closest unvisited vertex
Ok so we go to E from here, then E -> D = 80, E -> G = 76
E? why?
right, why are you starting at F
F -> E is 50
i just wrote why in the above text
in the Steps
Step 1 and Step 2
you don't need to go to adjacent vertices in consecutive steps
ohh shit wait
you go to the
closest unvisited vertex
you don't need to go to adjacent vertices in consecutive steps
@mystic moss What does this mean
from what i understand
you are saying that since F doesnt have good options i should leave F
i'm saying your options aren't E and G, they're E, G, and B
(technically your options are the vertices other than A and F, but these three have distances less than infinity so you're really only choosing among them)
(technically your options are the vertices other than A and F, but these three have distances less than infinity so you're really only choosing among them)
@mystic moss from F my options are only E and G
you don't "start" from F
Lostboy:
how do i make a finite state machine that only accepts the binary strings 10, 1010, 101010... and 01, 0101, 010101...
The chance that a seed will hatch immediately after it has been planted is about 97%. Calculate this probability to one decimal accurate.
@paper oracle strings of even length which alternate ones and zeros strictly?
do you want a possible solution or do you want general tips
Make a machine with 4 states one state represents 1 and one 0, one of the two is final the other two are for dealing with possible errors in the sequence.
B ?
@quaint mirage can't be B since 2 is not related to 1, i.e. neither (1,2) or (2,1) are in the set R. (also, please post in related channels even if you don't get an answer immediately; it's clearly not a #probability-statistics question)
my bad , so only post such questions in discrete math ?
questions such as that should, yeah
@drifting sail so do you think D is correct answer or A ?
it's A since (0,1) and (1,0) are in R. (check the definition of equivalence relation in whichever book or course notes you're using)
@weary tiger i came up with a 6-state machine for moshe's question
your zeroes are very perfect
@drifting sail Thanks, it's correct .
@drifting sail should i delete my question now ?
no need to
ok
can anyone help me understand how they did b)? i'm pretty lost on this one
i thought the answer would just be something like k!/(n!m!) so i'm pretty confused as to why there's a sum involved
so like
you do cases over all possible k-letter combinations
you can have 0 as and k bs
1 a and k - 1 bs
2 as and k - 2 bs...
so the total number is equal to the number of combinations for each of these, just summed up
err
okay sorry that would be for the total number
when you say that the number of bs is <= number of as we say "okay let n be the number of bs"
and m the number of as
then we know m + n = k and we need n <= m
so we can do cases by just looking at how many there are for each possible combination of those
in that case if you look at a) n + m = k so that's what's on the top and n = k - m and that's what's on the bottom
ooohh okay that makes a whole lot more sense, thank you :D
Also fwiw I think MAYBE
what you said counts the total number of combinations
without the requirement the number of b-s is <= a-s
oh hmm
no that's when you say there's like n b-s and m a-s
I think
Oh yeah that's true, that's literally exaclty k choose k - m
since k - m = n
Kees:
How you solve this problem? x is real number
break into cases based on the parity of floor(x)
@wanton sable @honest barn if you've understood how they've gotten the answer, could you explain to me why the answer for evens is 2^(k-1) - (k choose k/2)/2? shouldn't it be + (k choose k/2)/2?
@stray reef its mean odd or even? x is not only integer
I understand that this is true, but I'm not sure how I show it, anyone have any ideas?
Oh thanks
use the definition of even
@golden talon n = 2k for an integer k
Is it a coincidence that logical identities are almost parallel to set identities? It’s just a matter of different symbols and notations, isn’t it
no, it's not
union and intersection is defined via logical and and logical or
so you can think of it as translating logical operations into the language of sets
Can someone help me with some discrete math hw
-
How many strings, as a function of n, are in the language (a + aa + aaa) n ? Prove your answer by induction on n. Hint: This regular expression contains all strings of just a with lengths between n and 3n inclusive.
-
, by induction for all naturals n, that the number of strings of length n in the language (a + ab) ∗ is exactly Fn+1, where Fn is the Fibonacci sequence (F0 = 0, F1 = 1, Fn+1 = Fn + Fn−1 for n > 1). Hint: This regular expression was used as an example in the lecture 28 slides.
Is this survey of math?
guys one quick question
no
so i need to prove that AxorB = (AuB)-(AnB). can i consider this to be the same as (A⋃B)⋀¬(A⋂B)?
can i get a second opinion on this question, i feel like i got the proof right, but the teacher wanted it in a specific way
although maybe i did mess up, but i feel like it came out correct
this is post exam btw
wait, no, i think i understand what's wrong
@lethal lodge look up "proof by induction"
there's nothing different here to the standard technique
how do I solve this?
can someone explain what the runtime rules of thumb are to me?
I have no clue what they are and my professor is going to quiz us on it and he didnt even post any notes or examples
@quaint mirage An equivalence class is a set of elements from R that are equivalent by the property of the relation.
when doing binomial theorem,
does x(9x^2 - 2x^-1)^14
turn into
(9x^3 - 2)^14
or
(9x^16 - 2x^13)^14
trying to find coefficient of x^-4 in expansion of x(9x^2 - 2x^-1)^14
@quaint mirage An equivalence class is a set of elements from R that are equivalent by the property of the relation.
@lyric pumice {0,1,2,3} ?
im trying to Expand wy to sum-of-minterms form wyz+wyz'
i have this so far, idk what to do
(also @wanton sable update: there's a small consensus that it's supposed to be 2^(k-1) + (k choose k/2)/2 so if this is for a course you might want to ask your professor about that)
any ideas on how to do this?
I tried to do P(8,4)*2*5, but that was too big
that gives you 16800, but the max number of subsets is 1024
can someone explain why is it 2 raised to nC2?
isn't there just n reflexive relations?
@worthy palm do I do C(8,4)
the 5 locations 3 or 4 can be
and 2 because there is 3 or 4
wait
order doesn't matter
so 2*C(8,4)
140?
yeah
@worthy palm did you get 140?
ok thanks
Given that a and b are odd numbers where a != b. Show that there is a
unique integer c such that | a - c | = | b - c |. how you prove this >
how would i go about this A program takes time proportional to nlogn where n is the input size. If the program takes 20 milliseconds for input size 100, how many seconds does it take for input size 10,000?
@quaint mirage {0,1,2,3} is not an equivalence class for the relation.
then what is ?
{(1+4a, 1+4b) | a and b are integers} is an equivalence class for the relation.
@worthy palm wait why is it not 2*C(9,4)-C(8,3)?
i got C(9,4) from assuming 3 is in the set and the rest is the combo of the remaining 9
and multiply by 2 bc there is 3 and 4
then subtract C(8,3) bc that is when 3 and 4 are included together
@weary tiger Hint: draw a number line and try some test cases for a & b. what is c?
@last sigil i found it but stuck in profing the equation
How can i figure out how many 2 input AND gates and 2 input OR gates are needed to build a circuit given a function?
Depends on the function,simplify it if you want to know that
the CDB is redundant i think
so you can save yourself an AND
and then you have AB + BC which you can simplify to B(A+C) saving yourself another AND
so i would have 2 two input AND gates?
im having trouble picturing how i would draw what you wrote
you would have a single AND and a single OR
the OR would take A and C as inputs, and the AND would take B and the OR's output as inputs
Isn't every and gate 2 input?
yeah
how is that Z = AB + CDB + BC then
but its asking how many 2 input AND gates and 2 input OR gates are needed
not to do it in the minimum number of gates
wait nvm lol
Well, You can add an arbitary number of extra AND and OR gates
So atleast one AND and one OR gate
ok what about this, to see if i understand it. How many 2 -input AND gates are needed to build a circuit for Z = AB + CD + AD + C
i first factor it out?
staying true to the expression as written you would have 4 ANDs and 3 ORs
it might be possible to do better tho
D+1 is just 1
can someone explain this to me?
(A + B)(A B)
will this be reduced to AB ?
yes
what do those dots mean? NOR?
the dot has the be open and in front of the gate correct?
what if there is an open dot before the gate
like this
idk if that open dot on B does anything. this just a NOR gate?
i looked these up and the dot on the right means is NOR gate, but i've never seen the open dot on the left
not gates are the triangles
triangles with a dot in front.
how do I solve this?
@potent oracle
@potent oracle That can be solved with arithmetic (add, subtract, multiply, divide), but it is tricky.
does anyone know how to get the inverse of thi s
f: S -> S, f(a1a2a3a4) = a4a3a2a1
Assuming S consists of words consisting of four letters, this function is its own inverse.
what do you mean by that?
the function takes a string and just reverses it
how would I show that
Just apply the function twice
sorry, i dont get it
what happens if you reverse a reversed string?
its just the original
Yes
so just f^-1 = a1a2a3a4
No,It's f
lol.
Why is it so foreign to you that if you reverse a string and reverse it again, the final result will be the original string?
its not
i fully understand that
its just formally writing it out
if the inverse is the original string, which it is. Then to write it out it should be f^-1 = a1a2a3a4
Will anyone be so kind to go over it with me? I already have a solution, just want to understand/make sure it's correct.
if the inverse is the original string, which it is. Then to write it out it should be f^-1 = a1a2a3a4
@rugged pebble you assert that f^-1 = f and prove ut by showing that the identity f(f^-1(x))=x=f^-1(f(x)) holds.
How to prove this uncountable?
I am totally stuck with one exercise, I am trying to find the general term for the sequence: 1, -2, 1, 1, -2, 1, 1, -2, 1, 1, -2, ....
The recursive sucession is the following one
But I need a general explicit term that does not use recursion at all.
@hasty ibex
There's a pretty easy bijection between that and R
I have a discrete question
ok
so does anyone know linear homogenous recurrence relations?
if so
lets say that I get that some solution to one is this
then this means that I can turn it into this
and then I can combine coefficients
and get this
can I combine the two coefficients into one and just make it a1?
or do I need both?
Viburnum:
hmmm
I see
ok I see
so if I have this
I would need it to be
$a_1 2^n + a_2 n 2^n + a_3n^2 2^n$
oh shoot
ya mb
ok cool
thanks @worthy palm
I see
one last thing
so I would only need to append these n^x or whatever for roots that are the same right
like
if I have two double roots
then I would have two terms that have an n in them right
ok cool
thanks man
I've got this homework assignment, but I feel that I am completely missing what my professor is getting at in part d here
Those last two photos contain my stuff, but the question overall seems odd for both c and d
I feel like the work I did is useless and not really giving much insight.
I think the idea is that you can find the value of S explicitly that way
If I only leave it as the infinite summation in part c I don't see where the sum just "falls out" in part d
more generally if $|r|<1$, then $S=\sum_{k=0}^\infty r^k$ is a convergent series and
$$
S-rS=\sum_{k=0}^\infty r^k-r\sum_{k=0}^\infty r^k=\sum_{k=0}^\infty r^k-\sum_{k=1}^\infty r^k=1,
$$
therefore $S(1-r)=1$ and hence $S=\dfrac{1}{1-r}$. Your exercise is the particular case $r=\dfrac 1 3$.
derivada.schwarziana:
ah I see
I think you used the actual value in c) when in principle you could've gotten it in d) (and prove the sequence is convergent by other means in b), e.g. by proving it's a Cauchy sequence)
Maybe there still is something im missing. Is there a way I could have gotten it in d) without using the 1/(1-r) relationship or evaluating the infinite sum?
yeah
then 1/3S is just another geometric series
yeah I understand that, it just seems that the problem is highlighting something odd
Commander Vimes:
i believe i understand
zd:
Here's a scrawling I made of a specific case of this
Textbook is trying to use the handshaking lemma for the red bit on the left as well as the fact that there are an odd number of red vertices to somehow imply directly from that, that there must be an odd number of green vertices on the left
Drawing it brought 0 extra intuition for why this might be true and I can't see it algebraically either
nvm the proof is just not recalling that every graph has an even number of odd vertices
Does anyone have a similar problem to this I can work on or know how to solve this? Any help would be appreciated
@karmic falcon I am not sure if I can help, but I have been working on the question since you post it here
I have been trying to check the reflexive equivalence by the definition
I assume R° to be the converse of R which is{(y,x)|xRy}
So R∪R° and Q∪Q° would be quite similar

Then I try to check the equivalence relation by its reflexive, symmetric and transitive properties on R∪R° and Q∪Q° separately
Does this help?
It is a little bit
But yes Im understanding what you're saying
My conclusion to the question was that RuR QuQ would not be reflexive @fluid zealot


For your reference
can i ask a graph theory question here?
Yes
okay. is every grid graph a a parity graph?
i make visual sec
Unless grid graph just refers to rectangular grids
uh ok so i guess i’m unclear on the definition of grid graph
p sure a grid graph is the graph cartesian product of two paths
So it’s always going to be rectangular
You can colour it right, chessboard colour it
ig. maybe it could also be infinite in any direction? idk
yeah that’s what i was thinking
That’s okay too
so the answer is yes, then, right?
But you can show it explicitly by partitioning it
yeah so you would partition the set of vertices into two subsets, call them “red” and “blue”
Right, so it’s secretly a bipartite graph
and i guess explicitly you could say that if you plotted the points on a graph then red = points with x+y even and blue = points with x+y odd
holy shit that’s the sneakiest bipartite graph i’ve ever seen
Yeah that’s a nice way to do it
it’s like, you can move the red vertices towards you and the blue vertices away from you
I’m assuming a path graph has a countable number of nodes though so you can list them
Like if you had an uncountable number of nodes then this makes no sense
wait
I’m semi-joking
doesn’t this not even make sense for countable infinity
like, can’t you make an infinitely long path?
w8. semi unrelated question. is there such a thing as an infinite path?
Yeah
can you have an infinite path that has a starting an ending vertex?
I don’t think so...
But mathematics is about being creative
You just tweak the definitions a little and use your imagination
true. can you have an uncountably infinite graph? like does that even exist
Yeah you can but not in a line I think
so you can’t view the real number line as a graph?
You can in terms of vertices
And you can join the numbers together almost arbitrarily
But you can’t have a nice line of connected vertices I believe
what's a nice line?
yeah like obviously you can’t partition R in the red and blue sense
well order the positive real numbers and the negative real numbers
define edges according to the well order
connect the least elements of both sets to 0
If only
it works
There is no least element
there is according to the well ordering theorem
he said well-ordering
So how would you use this to get a straight line
I guess I buy it
You just squint your eyes and imagine it
But it’s weird cause I don’t think it satisfies the standard definition of path connected
Like something goes wrong
A path is defined as a sequence of edges, i feel like that implies all paths are countable
That’s why I think you just have to tweak the definition
just index it by real numbers
I’ve only seen definitions which at most allow a sequence to be indexed by Z
I’m for extending the definition to any ordered thing
you can also just throw topology at it probably
a graph really is just a topological space of isolated verteces
the edges are just unit intervals
and you glue
then a path is a subspace that is homeomorphic to the unit interval
that’s creative
or well, this would lead to what i defined not being a path
unless by unit interval i also allow the open one
I think restricting yourself by formal definitions is kinda dumb anyway
this hurts my brain to think about
this gives you 3 kinds of paths: homeomorphic to [0, 1], [0, 1) and (0,1)
If you want an infinite path, make it even if it isn’t officially one
The first one is the one which is scary
u guys wanna see the context why i asked this question?
Sure
i’m tryna solve this puzzle for fun:
these are some example snakes
these are some nonexample snakes
i been tryna throw graph theory at it but to no avail
This seems like a fun puzzle, is there a link to a website where I can try?
I presume I’m covering the whole grid in snakes too
yeah i mean 49 cells total 7 snakes 7 each
I didn’t even see that they were of length 7, that makes it easier now
yeah. things is, is you partition this “grid graph” into red and blue (as i described earlier) each circle is the same color
so there’s nothing you can deduce about two particular circles not being on the same snake
EXCEPT FOR some circle that are very far apart
ie these two circles can’t be a part of the same snake bc they are too far apart
anyway that’s as far as i’ve gotten in my hours working on this puzzle, lol
You know something about the bottom left too
Like a little chunk of the snake else it doesn’t work
hm?
o good point
The graph theory thing is cool tho
Like there HAS to be 4 odd snakes and 3 even ones
So you know the black dots are connected
So if your snake starts with a circle it has to end with a circle
It looks like a problem of searching for polyominos.
So, it is likely to be an open problem.
why 4 odd snakes and 3 even
It’s a casual puzzle you’ll find in a train station bookshop
Colour your grid red-blue
We have 1 more red than blue say
Where the bottom right corner is red
Call a snake red if it’s head is red
O:
Each red snake covers 1 more red square than blue square
So in order to cover the whole grid we need one more red snake than blue snake
Since there are 8 red circles they must all be joined
so i guess u meant 3 blue snakes and 4 red snakes
Yeah
they’re all the same parity
Right and since there is 8, they must all be heads and tails
We need to connect them all
And that is hugely restrictive
And the puzzle falls apart now
I wouldn’t have thought it if you didn’t point out they were all on the same colour squares
I solved it as well but I just smashed it out using intuition+logic rather than pure logic
Like quickly checking a few cases for a bit and seeing it doesn’t work
seems ur proff simply doesnt like you
seems like a semantic issue
which is the same as having a 0 coeff
if you need the point
@naive mural yeah me too
logic to limit the possibilities, then trial and error. it’s like a math competition problem
Anyone help me solve this above?
@karmic falcon since set inclusion is preserved under unions, from $X \subseteq Y$ we have $X \cup A \subseteq Y \cup A$
catch-22:
and using $X=B-A, Y=C-A$ with the fact that $(Z-A) \cup A = Z \cup A$ (not hard to prove), the problem is solved
catch-22:
So would this work,
1) AuB = A u (B\A)
2) AuC = A u (C\A)
Since B-A ⊂ C-A
-> A u (B-A ⊂ A u (C-A)
-> AuB ⊂ AuC
Basically
@ionic aurora
yes!
Thank you
@iron crescent yeah "no term" and "zero coefficient" are lit the same thing lol
Guys here’s a really stupid question
How do we calculate the possible configurations of a 2*2 Rubik’s cube?
(8! * 3^7)/24
(8! * 3^7)/24
@minor dagger Thx! Can you plz elaborate a bit?
all the rotations and stuff screwed me over
btw symmetry is not considered for simplcity
ok so 8! is based off of the number of permutations of corners
3^7 is based off the orientations of the corners
8th corner is fixed
24 is the ways positions can appear as dupes
you can also do 7! * 3^6
probably easier that way
because there are 7! perms when one corner is fixed
and six of the corners can be oriented in 3 ways
thus 3^6
both equal 3,674,160


