#discrete-math
1 messages · Page 213 of 1
DootDooter
well that is why I was saying how that every case of b_n = b_k when n = k
I'm not sure I understand what you mean?
n typically equals k in induction
k is the index of induction while n is the index of the sequence
it's like "the kth step is when n=k"
Hey, I don't mean to interrupt what's being explained above.. but whenever someone gets the chance, please take a look at this. I'm not really sure what to go about (A^x)^x here.
It's sort of complicated. You're trying to leave k in general because the inductive step is to prove $\forall k\in\mathbb{N}(P(k)\implies P(k+1))$
DootDooter
n is just being used to define b as a function I suppose.
I was taking it as these are 2 different "functions" 1 being recursive and not (not sure the correct word for the other) and show how all cases for using the non recursive one will equal to that of using the recursive one :v (assuming n = k). Yeah idk if it makes sense.
Oh I see what you mean.
Yeah that's one way to look at it I guess.
You would show they have the same domains (which is obvious)
Then show on the same inputs each expression gives the same output (roughly speaking).
And this is totally doable by induction.
But you might want to rename one of the sequences, because calling them both b would be super confusing.
Might be more trouble thinking of it in those terms though?
Since really you just gotta show in your inductive step that 2^(k+2)-1 is b_(k+1) with a bit of algebra and some inductive assumptions.
can anyone help me check if this proof is valid?
Are you sure line 1 is the assumption you wanna make?
using an universal instantiation is all i can think of when proving subsets, im really not sure tho kinda stuck on this question
So if you wanna prove A is a subset of B you'd usually start by assuming x is an elt of A.
If you assume x is an elt of some other larger set than A it might not work.
so instead of assuming an element is in divisors(b) i should assume the element is in b?
Nah, I mean the subset proof you're trying to do involves a smaller set than divisors(b) as far as I can tell?
<@&268886789983436800>
b&
Thank you rocket ❤
So to be specific the lhs of your subset relation you're trying to prove is divisors(b) intersected with divisors(a-b) rather than just divisors(b)
wouldnt line 3 show that? bc i showed the relation of divisors(b) intersection divisors(a-b)
I don't see how line 3 shows that.
Like 2|4 but 2|5-4 is false for ex (a=5,b=4,x=2)
Well ignore my crappy example it probably doesn't make much sense lol.
sorry so what should i do to show this, im kinda confused with this topic
I think the issue is that you started from the wrong assumption at line 1 and got led astray is what I'm saying.
Once you fix that you should be able to use the defn of divisors(n) to show x is an elt of divisors(a) and divisors(b) I'm thinking.
ok i will try that, thank you!
I did a somewhat similar proof but I don't know how that'd apply to this one
This is fine, maybe some more sentences. What did you attempt with the other problem, showing that the complement of the complement is the original set?
I will use $A^c$ for "the complement of $A$ in $X$". You might start by taking an arbitrary $x \in (A^c)^c$, and showing that $x \in A$.
matthew
Can someone have a look at my proofs and tell me if tere are any holes in my logic?
thank you
How do you know you can find n1,n2 such that f(n1)=b1 and f(n2)=b2 in theorem 2
@sweet steeple
You can't prove theorem 2
Your proof gives you that h is injective restricted to range(f) . You can't say anything more
also u can prove thm 1 directly instead of w/ contradiction
Theorem 3 proof is completely wrong
Yeah I see ok I'll fix
You repeat what you wrote as proof for 2nd theorem and say since range(f) is the whole set the statement is true
For 2nd one pick a counterexample
Pick a non surjective f
Counter example?
So like a contradiction?
Yea,A f and h which satisfies the premises but not the conclusion of the theorem
ur wording is confusing
This?
"proof." implies ur supplying a proof which validates the statement
but at the end u say its false
mb
in which case u must give a counterexample to support ur claim
Yeah idk what I was thinking
but spoiler, thm 3 is actually true
How do u concatenate n-1 . n
@twilit sierra what do you mean
you have n-1 copies of a and you attach one more a to it, what do you get?
@twilit sierra
If ‘f’ is a surjective function f: A -> B, is the domain of f equal to the set A?
try to come up with examples
I’m pretty sure it’s not but there’s this proof I need to do, which is easily disproven if the answer to my question is no
@obtuse lance
So I’m confused af
sounds good, show what you've got so far then
$\phi$ is a surjective function $\phi: A \rightarrow B$. $A_1 \subseteq A$. I need to prove that $A_1 \subseteq (\phi\phi^-1)(A_1)$
Orian
looks like you're over thinking it, try to come up with some examples of specific surjective functions first
you're like getting lost in the sauce or somethin
but if $A = [1, 2, 3], B = [1,2], A_1 = [3]$ and $\phi=((1,1),(2,2))$ then $\phi$ is surjective and $\phi\phi^{-1}(A_1) = \emptyset $
sorry writing in latex takes me so long
here's the example
Orian
and A_1 is not a subset of the empty set obviously
it's not a function from A to B. phi(3) is left undefined.
why does it have to be defined?
it's part of the definition of a function
informally, a function must associate an output to every input
and every input means every input, not every input except the number 3 just because you happen to be triphobic.
informally?
yes fuck that number
the book I'm using specifically mentions the existence of "partial" functions in which their domain is a subset of the original set
well phi is a partial function from A to B
but it is not total
and if you just say function without any context people will assume you are talking about total functions
so it's not really by definition then
??
or if I'm saying $\phi$ is a function from A to B then $\phi$ is by definition a total function
Orian
yes that's right
by default when you say function you mean total function
if you want to talk about partial functions then you have to mention that explicitly
Is there a way to "see" which graphs are isomorphic to each other?
the short answer is no. You can check something like same number of vertices of each degree, but that doesn't help always (and it doesn't help in this case). There is no polynomial algorithm known...
for this special case ||it might help to look how the remaining graph looks like if you remove one vertex and all its neighbours||
Thanks!
yes
Thank you!
How can I prove a product of two integers is an integer? I could give examples but that wouldn't be considered correct way to prove it
you will have to refer back to the definition of integer and product
Would this be a valid statement in my proof
I know that if x is an element of P(A) then it is an element of A
but is it true that A is a subset of P(A)
or like is that the right wording
I think it's wrong
Because if I understoord correctly, x can be a part of A but not necesarilly be a part of P(A)
Would I need to clarify A is not the empty set
(Sorry, I wrote nonsense).
The fact that x is an element of P(A) means that x is a subset of A, no more and no less.
The changed line looks right.
But "x must belong to B" looks wrong.
You can conclude that x is a subset of B, not that x is an element of B.
Looks like you're still writing "B is a subset of P(B)" which is not true in general (just like it wasn't for A).
Oh true
is there a way to describe the relationship between them
Like since B is ___ of P(B)
theres no need. once u say x is a subset of B u can immediately say x is in P(B)
Oh true
Also for my other proofs I wrote stuff like:
Also since x is an element of A and A is a subset of C, x belongs to C
I would need to change that to like
Also since x is an element of A and A is a subset of C, x is a subset of C
no, the 2nd requires x to be a subset of A
and hopefully the change is due to u knowing the difference in subset vs element
So could I keep the first statement the same
Oh so when I say x in an element of P(A) that means that x is a subset
yes, the elements of P(A) are precisely the subsets of A
And if in another example I say x is an element of A it means that x is a regular element
like it's not a set
oh true
{{1},2}
but like it doesnt need to be a set
where as a x in a power set it needs to be a set
true
yes, a subset of A is a certain kind of set
Thank you!
And like if x belongs to A and A is a subset of B then x belongs to B
or is there a chance it doesn't
this is true by the very definition of A being a subset of B
any element of A is an element of B
Oh I see my mistake from before now
I just said that B was an element in P(B) but B was a subset of P(B)
as said above B generally isnt a subset of P(B)
B is indeed an element of P(B)
but as i said, u dont need any of this to conclude x is in P(B)
u already said x is a subset of B
by definition of powerset, x is in P(B)
Oh so like an element of P(B) is a subset of B
yes, as said here
the elements of P(A) are precisely the subsets of A
ur welcome
I'm trying to figure out a regular expression that would build this language: L = {w | w consists of a and b, the number of bs should be even}
I'm not really sure where to start though. I have the definition of regular expressions but I can't seem to make the necessary connection for how it works. I don't want the answer, I want to understand how to come up with the answer
so far I have this:
(a)+ this matches one or more as in sequence.
(bb)+ this matches at least one case of two bs in sequence, but also matches bbbb and bbbbbb
(ab*ab*) seems like the direction I want to go to match multiple bs (possibly) separated by as
but how do I combine all this?
Hmm, would you find it easier to come up with a finite automaton?
I did make one actually, but I thought I would wait to ask about that
Okay.
I don't think that works completely -- it doesn't seem to match bb or abbbb.
I thought that there would need to be at least one a
Anyway, for the regular expression, can you devise a regex that matches strings with exactly two b but any number of as?
Oh, I see. By the usual conventions in this genre of exercises, I would firmly expect that "consists of a and b" means just "every symbol in the string is either an a or a b", but there's no requirement that both letters must appear.
that's a helpful tidbit
You're probably just missing a single intended transition in your drawing for recognizing abbbb.
not sure; I thought that it should be this, but it doesn't quite seem to work in the tool I'm using to check it: (a)*(bb)|(bb)(a)*
That seems to want to have the two b right next to each other and either at the beginning or the end of the string.
ah true, from q5 -> q2 when input is a b
You mean to q4, I hope.
yes
Perhaps think of it as "there must be exactly two b somewhere, but possibly with some a in front, and/or between and/or after them".
ahhhh ok now I get what I was doing wrong! (a*ba*ba*) the first a* is the a(s) which might come before, the second is in the middle, and the third comes afterwards. what I had before was backwards: (ab*ab*)
Right.
and (a*ba*ba*)* would be any number of such matches including words like abbbaab
Indeed.
Then you just need a special case for strings that do have a's but no b's to attach them to.
(a*ba*ba*)*|(a)+
so you asked me before about whether I would find it easier to draw a DFA (deterministic finite automaton); based on what I've learned so far it's possible to make a DFA for any regular expression and vice versa as they're both capable of "parsing" a regular language (wording?)
do I have that right?
Yes, that's true in principle. Systematic algorithms for converting a DFA to a regular expression tend to produce fairly horrible output, though. I was mostly asking about the automaton to gauge how far you had thought about the problem and where your hangups might be.
I would say (a*ba*ba*)*|a* so we also match the empty string (which is also a string over {a,b} with an even number of b's).
This can be said slightly shorter as (a*ba*b)*a* or a*(ba*ba*)*, by the way.
nice; it's cool to see how these things work for real after having seen them as mystical incantations for so long. step for step refinement and lots of thinking ftw
now I'm confused about my automaton though; I made the one for the case where there would need to be at least one a by first thinking about what states are possible:
q0 = (!a, !b)
q1 = (a, !b)
q2 = (!a, b)
q3 = (!a, b')
q4 = (a, b)
q5 = (a, b')
where !a, !b mean no a/b, b means uneven number of bs, and b' is an even number, q0 is the start state and q5 is the final state, and the set of functions were shown by a table of state transitions and inputs
but how can I represent the possibility of no got it; guess I think better when thinking aloudas or no bs leading to a final state for instance?
Question --> Prove that F = {(x, y) | x − y ∈ Z} on the set R is an equivalence relation
what does the ordered pair (x,y) mean in this context?
that x or y divides x-y?
Lochverstärker
recall that a relation F on a set R is a subset of R^2
what does R^2 mean, my professor never explained lol
cartesian product of R with itself
its the set of tuples (x, y) with x, y both in R
so its just that: a ordered list of two numbers, both from R
what would be the first step if i want to prove that this relation is reflexive?
you look up the definition of reflexive relation
every x in Z (xRx)?
hm?
F is a relation on R
so you pick an x in R
and plug it in
i.e. show that (x, x) is in F
F is reflexive: ∀x∈ℤ(xFx)
i think you need to review the definitions
how to approach this question?
I was thinking that the group of permutation transformations would be
(12345)
(12345)^2
(12345)^3
(12345)^4
(12345)^5
Idk if I'm wrong
Vertices 1,2,3 are each incident to 4 faces, whereas 4 and 5 are incident to 3 faces each. So a symmetry cannot mix those up.
can you elaborate more? I still don't quite understand
You can also count edges touching each vertex.
E.g. (12345) cannot be a symmetry because it takes vertex 5 (with three neighbors) to vertex 1 (with four neighbors).
so (123)(45) would be a symmetry?
Yes.
and then (123)(45) squared will be another?
Yes. That is just (132), of course.
thank you !
I'm trying to prove that {33a + 14b } is subset of an integers
does this proof make sense?
what are a and b?
oh right
they are integers
I forgot to add "assume a and b are integers" part in the screenshot
why not just say that since the integers are closed under multiplication, then 33a and 14b are integers
and since the integers are closed under addition, then 33a + 14b are integers
what do you mean by "integers are closed under multiplication"?
integers * integers is an integer?
yes
Ya, I was thinking about that but it felt simple. I guess I expected it to be little more complicated
nope
this proof is imo far too complicated and doesnt make much sense.
"an integer is a whole number or not a fraction" is not true. that would make any irrational number an integer
"for a number (presumably a real number) to be an integer, it must be reachable incrementally with just addition of ones" is also not true. what about -6 or pi + 1? i cant reach -6 by just adding ones but -6 is an integer. i can reach pi + 1 by just adding 1 to pi, but pi + 1 is not an integer.
"if a number is not reachable with addition of just 1's then it must be a decimal or a fraction" im not even sure how to interpret the last part of this sentence. it doesnt make much sense
You can also say that, since a is an integer, 33a is just an integer added to itself 33 times, which yields an integer. Similarly, since b is an integer, 14b is b added to itself 14 times, which also yields an integer. Since both components are integers, then their sum must be an integer too.
Got it. Thanks for the help guys. I really appreciate it!
Is the proof here valid?
The statement being proved is. If n is a bultiple of 10, then n+3 and n^2 + 1 are coprime
is this statement true? I know its prob too easy but im super confusedd
what do you think?
false?
do you have a counterexample?
nope 😦
what if P and Q are mutually exclusive?
so it is false?
well yes but you should convince yourself of that
what if P(x) is "x is even" and Q(x) is "x is odd"
(also side note, there is a parenthesis mismatch in your picture)
You’re right, but its only the second lecture so im tryna digest the concept
anyway thank u so much 🙂
Does the exponential time hypothesis hold if 3SAT reduces to a polynomial algorithm or an O(n^logn) algorithm in O(2^√n)?
maybe i should put them together lol
The “exponential time hypothesis” says that the problem $3SAT$ requires time $O(2^{δn})$, for some positive number $δ$ ($δ$ is allowed tobe less than 1).
Suppose that $3SAT$ reduces in time $O(2^{\sqrt n})$ to some problem $X$. Under the assumption
that the exponential time hypothesis holds, can $X$ be solved in polynomial time, or time
$O(n^{log n})$?
For the polynomial version my attempt's:
$\phi \in SAT \iff f(\phi) \in X$
and $n^c2^n$ for some constant c is less than $2^{\delta n}$ for all $n>=d$ where d is large enough, so X can't be solved in polynomial time.
I guess it's the same for $O(n^{log n})$ too since $2^{\sqrt[3]n} > n^{log n} $ (a guess) and then $2^{n^{5/6}} > 2 ^ {\delta n}$
but I'm not sure if this is correct?
duk
Does your "exponential time hypothesis" say that 3SAT can be done in time O(2^dn), or that it requires time Omega(2^dn)?
"Requires" with O(...) don't really fit together.
Amyway, a reduction from 3SAT to X doesn't give us any kind of upper bound on the complexity of X.
We can reduce 3SAT to the halting problem in linear time...
besides what troposphere said. a reduction in O(2^(n/2)) time is exponential so it's not conclusive to prove np-hardness. not even if you do what you're actually supposed to do to prove np hardness which is to reduce your problem to a known np hard one. and i'm not sure there did you get the n^(log n) from. so your intentions are unclear to me...
It's requires
Uhh, if there's an algorithm solving the problem of y in X in polytime, we can query f(x) where f is the reduction function, which is n^sqrtn and the query complexity is polynomial so overall it's <= stuff
I'm not proving NP hardness though?
That might give a lower bound on X.
Oh right
i realized that much
Ok gimme a sec
Upper bound c*2^dn
So now it's not "requires" anymore?
About n^log n, I'm trying to figure that out separately (if X runs in O(n^logn) does if ETH is true
How does "requires O(..." Change the meaning?
"Requires" implies that you're stating a lower bound.
Actually, "requires O(...)" is nonsense, because O(...) implies "or less". So "problem X requires time O(f(n))" translates to "it requires so-and-so-much time or less than that".
But an upper bounded lower bound if that makes sense?
Ok so probably just theta then
And not O
Sorry omega
So your hypothesis could be interpreted as either:
a) There exists an algorithm that always completes in time at most proportional to 2^dn
b) Every correct algorithm needs time at least proportional to 2^dn for some inputs
and these are radically different kinds of hypothesis.
And the somewhat flip-flopping answers here don't leave me very confident that I know which of them is the one you intend to be talking about.
(b)
Okay then.
So if we can reduce 3SAT to X in time O(2^sqrtn) and X has a polynomial-time algorithm (say, of degree m), then this reduction would allow us to solve 3SAT in time O(2^(m·sqrtn)), which is strictly faster than Omega(2^(delta·n)) for any delta. Therefore such a reduction would contradict your exponential time hypothesis.
Yep thanks!
And if X is solvable in O(n^{log n}) can we find any bounds?
Is n^logn < 2^n^c where c<1/2 ?
Hmm, the reduction doesn't have time to produce an X-instance longer than m=c·2^sqrtn bits. If we plug this into m^logm we get c·2^(sqrtn·log(2^sqrtn)) = c·2^dn, with a d is a constant that depends on which logarithm we mean in m^logm. In any case, this is now consistent with your hypothesis.
Notice how this story would go quite differently if the reduction was in time 2 to the cube root of n ...
how tf do I prove this
I have to prove it or prove the negation is true
but Idk how to take the negation of an exclusive or
I'd look at it as seeing if m^2-m=1 mod 3 has any solutions
since 1 is the only residue we care about having no solutions
well I'm saying that has no solutions is equivalent
because it means it must be 0 or 2 mod 3
which is what it means to write it as 3k or 3k+2
im so lost lol
i dont grasp the equivalence of any of that problem and mod
i don't get how it can be translated
How can I find the minimum of f given ranges for the parameters and all variables are natural numbers? The ampersand in the second image is the bitwise and
use the binomial theorem to write (a-b)^n as a sum, then find which numbers you should plug into a and b
@drifting sail I tried doing that but I coulnd't get it at all
would u tell me where to start
I can't even find a video or something to read on it
I have the binomial theorem written and thats it
Idk how to find the x and y in the sum
maybe it's clearer if you write it as
[
3^n(-1)^0\binom n0 + 3^{n-1}(-1)^1\binom n1 +
3^{n-2}(-1)^2\binom n2 +
\hdots
- 3^0(-1)^n \binom nn
]
derivada.schwarziana
it should be in any book on elementary number theory, I like Burton's
maybe in some discrete math textbooks but I don't know any
the binomial theorem tells you that any integer power of a binomial, $(a+b)^n$ can be written as a sum
[
(a+b)^n = a^n\binom n0 + a^{n-1}b\binom n1 + \hdots + b^n\binom nn
]
derivada.schwarziana
so the idea is to rewrite the sums here as a sum that kinda looks like the one given by the binomial theorem
yes, note that this sum is the same as
this sum
but with a=3 and b=-1
so your sum would be (a+b)^n=(3-1)^n=2^n
the alternating between + and - here can be written as multiplying by (-1)^0, (-1)^1, (-1)^2, ..., (-1)^n
since (-1)^0=1, (-1)^1=-1, etc.
generally (-1)^k is 1 if k is even and -1 if k is odd
that's why the sum in your exercise equals this
and since the powers of 3 start at n and then decrease, and the powers of -1 start at 0 and increase, you get a binomial sum
in other words, just replace a=3 and b=-1 here and you should get the sum
i see thank you
Hello
Can I get some help
For iii) if one of the points are not connecting
Does that it mean it’s not a function
that's right
since a function would need to assign a value to each point in the domain
here no value is assigned to F(6), so F is not a function from A to B
So would it be ii?
So none of them basically
(i) is a function since there's a single arrow starting from each point in A
I'm doing some graph theory atm.. I understand the theory behind the question, I just need some help with articulating the proof.. I'm not sure where to start.
just a small clarification about this - is the reason why we compose the functions (ie set m = 2^(sqrt n) in m^c) because the (2^(sqrt n)) reduction might result in the output of the reduction function increasing by a factor of 2^(sqrt n)?
Yes -- unless we have more specific assumption we assume that a reduction that runs in time f(n) might also produce an output problem of size f(n).
Of course it is possible to speak of a reduction that runs within a certain time bound but produces an output that fits within a lower bound. It just needs to be stated explicitly if we make such an assumption.
might result in the output of the reduction function increasing by a factor of 2^(sqrt n)
This should be "might result in the output of the reduction function having a size of 2^(sqrt n)".
thanks!
yeah true
(The reasoning here is that it takes the reduction function some constant amount of time to print each output symbol, so the output cannot be larger than the time it takes to produce it).
this isn’t true. if a graph has a hamiltonian cycle, then it’s not a spanning tree since trees don’t have cycles
hamiltonian cycles are hamiltonian paths
when you say permutation, do you mean all of the rectangles are just next to each other in a line, all oriented the same way?
in this picture i would just rotate each rectangle 90 degrees
to get a big stick
[ ][ ][ ][ ]…
I would think the permutations where the shortest one is next to the longest one ect. Would be the max perimeter?
Interesting!
What does the max area arrangement look like?
this feels like a knapsack type of problem
Maybe look at the geometry of the end arrangement?
i think the key is to look for repeated sub problems
and give a recursive dp type solution
why is that not a mathematical solution?
Is there a specific way to transform from the ordered arrangement , 1234... to the one with max perimeter?
max perimeter arrangement is 2314 if i’m not mistaken
Maybe going into geometry, isn't the way to think of this, you want the permutation of n numbers so that the sum of the differences between each number is maximum
Would the heights always be sequential 1234 or like 2467?
That makes it more difficult
eh
just order them
if the input ur receiving comes in unordered
just order it
if that makes it easier for now
am i missing something here then?
I would find the max perimeter arrangement for several sets of numbers and look for patterns
Or thinking that ordering the numbers sequentially gives the minimal perimeter, find the furthest arrangement from that
You could think of the line connecting the tops of the rectangles, maybe the line with the flatest slope is the one with max perimeter
Or a less elegant solution would be rather than finding all permutations, just skip certain ones you know won't lead to the max arrangement
If u pair a large one next to a smaller then you gain more perimeter
could you order it like 9,0,8,1… ?
oh mb
and is there a “better” way to define the range than the way they did
for number A
what if it wall the string that contained the 3 same digits what would it be
I want the same digit to repeat 3 times
@night merlin did you find anything?
This says that m is 1 more than n
Which is not always true
Is that not because one is odd and one is even?
The mistake is in the setup with the definition
So this actually proves that the sum of a number n and its successor is odd
Not for any two integers
since each vertex has 3 edges
can I say that the group of all geometric transformations that leaves the prism invariant is
(123456)
(123456)^2
(123456)^3 ..................... and so fort until the identity transformation is achieved?
or will it be (123)(456) ?
I was thinking this too, thank you
Can someone help me with b
What is transitivity?
For A union B, i get that this means that x is in the set A or x is in the set B. But it could also be that x is in A and B right? But we never worry about this for proofs?
Worry about it how? If x is in both A and B then of course x will be in their union
$x \in A\cup B \Leftrightarrow x \in A \lor x\in B$, the disjunction is true in the cases where:
- x is in A and not in B;
- x is in B and not in A;
- x is in A and x is in B.
.nai
So case 3) is covered by the very definition of union
does it mean if the first element is related to the second and the second is related to the third, then the first must be related to the third
Yes.
So we want to set up some variables representing 3 elements and find a way to reach the final conclusion that the first and third are related
ok
@hard citrus ah ok thank you.
I don’t understand what phi(p) is
How can I determine the general answer
If p is prime
If p is a prime then phi(p) = p-1?
Yea,come up with an argument for that
can you provide me an example beacause i am having a hard time understanding how
@unreal stump
So what's the special property of primes
If p is a prime ,p|a or gcd(a,p)=1
Does p divide any number less than it?
no?
actually idk i am guessing i am trying to translate what you saying in my head
i got lost on your github profile, nice projects
Your image seems to be saying gcd(7,7)=1 which doesn't look right.
On the other hand, your use of "..." in the phi(11) case looks like you essentially have the answer to the general question.
this is how i am doing it: gcd(7,7)=gcd( 7 mod 7, 7) = gcd( 0, 7) = 1
ohhh wait thats 7
Because 7 is a divisor of both 7 and 7, and they certainly don't have any divisor greater than that.
i get it now, thanks
can anyone help me understand this
How can you say A X (BUC) based off that information
We must now prove that (A×B)∪(A×C)⊆A×(B∪C). So we let v∈(A×B)∪(A×C). Then v∈(A×B) or v∈(A×C)
In the case where v∈(A×B), we know that there exists s∈A and there exists t∈B such that v=(s,t). But because t∈C, we can conclude that t∈B∪C and, hence, v∈A×(B∪C).
idk why that solution says $t \in C$ --- that need not be true in general
Ann
however we can say that $t \in B$ and thus $t \in B \cup C$
Ann
so you have $s \in A, t \in B \cup C \implies (s,t) \in A \times (B \cup C)$ by the definition of cartesian product
Ann
@sweet ingot
oh wow that makes so much more sense
without that weird assumption that was throwing me with t element of C
thank you so much
$A \times (B - C) = (A \times B) - (A \times C)$ Could you help me with the start of the proof on this one
let $k \in A \times (B - C)$
$k = (x,y)$
$x \in A$
$y \in B $ and $y \notin C$
thus $k \in (A \times B)$
is anything wrong here so far?
so far nothing is wrong, except for some 
haha im learning, my first go lol
shaka
you seem to be focusing first on proving $A \times (B-C) \subseteq A \times B - A \times C$, and to this end you took an arbitrary element of $A \times (B-C)$, whcih you called $k$, and you set out to show that $k \in A \times B - A \times C$.
Ann
you have shown that $k \in A \times B$
Ann
what else do you need to show?
dont I need to show that $k \in (A \times B) - (A \times C)$
shaka
have I done that?
Ann
$k \in A \times B - A \times C \iff (k \in A \times B) \land (???????)$
Ann
mm I dont know sorry
i am certain that you do
you already applied the definition of set difference in your work
you can do it again
if you'd like i can prompt you more directly
I honestly dont know. Id love a prompt here.
$x \in S - T \iff x \in S \land (????)$
Ann
sorry im lost now. its ok ill study some more and come back to this. Thank you for your help
I havent used Iff in proofs yet
...
Its probably obvious but I only just started this last week, on my second class. Only did my first proof today so im still pretty bad.
@sweet ingot whats the definition of setminus
hmmm as in A - B
yes
$x \in A$ and $x \notin B ??
shaka
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
thats what x in A-B means
its important to read the form not the exact letters used
what does k in AxB-AxC mean?
It means that k is in AxB and not in AxC
ye, so far u only showed k is in AxB, u also must show k isnt in AxC
whats the first step for that
am I on to the right hand side yet or still proving LHS subset of RHS
for this ???? part $k \notin (A \times C)$
shaka
lhs subset of rhs
yep im just stuck I dont know how to show that $k \notin (A \times C)$
shaka
I know that if it is then the proof fails. But how to show it
refer back to this
this work contains all the info you need to conclude k ∉ A × C
Good day! Can u help me? 👉 👈
I'm reading the proof for the following identity:
$$\sum_{k}A_{k}(r,t)A_{n-k}(s,t) = A_{n}(r+s, t), \ integer \ n \geq 0 \ -----(1)$$
where $A_{n}(x,t)$ is the $n$th degree polynomial in $x$ that satisfies
$$A_{n}(x,t) = \binom{x-nt}{n}\frac{x}{x-nt}, \ for \ n \neq x.$$
The author starts off by assuming that $r \neq kt \neq s$ for $0 \leq k \leq n$, since both sides of (1) are polynomials in $r, s, t$. I'm not sure I understand this. I get that we need $r \neq k$ in order to prevent division by zero in $A_{k}(r,t) = \binom{r-kt}{k}\frac{r}{r-kt}$, but I'm not sure why we can additionally assume $kt \neq s$ and $r \neq s$ for $0 \leq k \leq n$? I'm a noob and especially useless at inequalities so any help would be greatly appreciated.
mmerc
I'm reading the proof for the following identity:
$$\sum_{k}A_{k}(r,t)A_{n-k}(s,t) = A_{n}(r+s, t), \ integer \ n \geq 0 \ -----(1)$$
where $A_{n}(x,t)$ is the $n$th degree polynomial in $x$ that satisfies
$$A_{n}(x,t) = \binom{x-nt}{n}\frac{x}{x-nt}, \ for \ n \neq x.$$
The author starts off by assuming that $r \neq kt \neq s$ for $0 \leq k \leq n$, **since both sides of (1) are polynomials in $r, s, t$**. I'm not sure I understand this. I get that we need $r \neq k$ in order to prevent division by zero in $A_{k}(r,t) = \binom{r-kt}{k}\frac{r}{r-kt}$, but I'm not sure why we can additionally assume $kt \neq s$ and $r \neq s$ for $0 \leq k \leq n$? I'm a noob and especially useless at inequalities so any help would be greatly appreciated.
How would i solve part 1 in this?
I thought about using the inclusion exclusion principle
where A is the set of exactly 2 consecutive pairs, B is the set of exactly 3 consecutive pairs, and C is the set of exactly 4 consecutive pairs
i got as far as
$$\binom{19}{1}\binom{18}{2} + \binom{18}{1}\binom{17}{1} + \binom{17}{1}\ - .... $$
Adamfk1
as per the inc exc principle
im supposed to remove the intersection of A and B, B and C, A and C then add back the intersection of A B and C, but im not sure if this is correct or how to do it
For first part,first pick 2 consective numbers,that can be done in (19C1) ways
Now,you have picked 2 numbers,so pick 2 out of remaining 18 numbers
And that's it
Exactly 2 is a lot tougher
Actually it's still easy
Shouldnt it be 19C1 * 18C2
for the exactly two numbers?
19 possible consecutive pairs
and 2 out of the 18 remaining numbers --> 18C2
https://math.stackexchange.com/questions/3525172/in-how-many-ways-can-we-choose-4-different-numbers-from-the-set-1-2-3-8-9 here is a reference that i followed
You have one consecutive pair
The other 2 could also end up being consective
In other words
the answer i have is for at least two consecutive
as for the exactly two consecutives
Is it not the same as this?
not the same answer, the same concept rather
we have at least two consecutive numbers and we subtract all possible three consecutive and 4 consecutive and then add back the intersection of all three sets
How many ways to arrange the letters in the word ESTATE so that all vowels are adjacent?
My answer was (3!x4!)/(2!) but its wrong
Maybe you're missing a 2! in the denominator for two T's
I'm trying to work out the answer, the term on the right side is the maximum of the left side of all permutations for a given n. For n=3 it is half of all permutations then n=5 is less then less I think
suppose f: X->Y is a function and let A subset X. show that if f is injective then f^-1(f(A))=A.
for this proof do i need to prove both directions and how should this proof go?
i know f[A] = { y in Y | y=f(a) for some a in A}
and want to show f^-1(f[A])={a in A | y=f(a) in f[A]}
If you understand the question/definitions it should be straightforward
Both ways? You didn’t write iff in your statement.
A quick guess is n!/(n-1)
Wdym both ways then?
“There is no iff” now you are saying yes there is an iff
Those are the same thing you wrote lol
there isn’t an off
If and only if
there isn’t one
there isn’t an iff there unless it’s implicit
.
.
suppose f: X->Y is a function and let A subset X. show that if f is injective then f^-1(f(A))=A.
that’s the statement as written
okay moving on how do i go above proving this
i know f[A] = { y in Y | y=f(a) for some a in A}
and want to show f^-1(f[A])={a in A | y=f(a) in f[A]}
i don’t think iff is relevant here from what you’re telling me it’s an if then proof
Do you know A subseteq of f^(-1)(f(A)) already?
“Both ways” implies there is an iff statement
But again
I'm interested now, did you find the answer?
.
i don’t know anything other than the problem statement
suppose f: X->Y is a function and let A subset X. show that if f is injective then f^-1(f(A))=A.
This always holds
Im asking do you know this is true
For example is that a theroem/excercise in your book?
no
Start proving that then
unless it’s the preimage or something
So what is the pre-image under 1?
f^-1(f[A])={a in A | y=f(a) in f[A]}
thats where 2! is
So f^-1(f[A])={a in A | y=f(a) in f[A]} is the preimage under 1, should I change A to x^2?
😂 copied pasted what i wrote
Like I said at the beginning if you understand definitions its easy
That is not definition of preimage
So why not check your book for definition
Haven't learned pre-image
Then you can’t do it
what about my problem, how do i go about proving it
inverse is a function
preimage is a set
Show this
This is true for all functions f
how do you define f^-1(f[A])?
is it:
f^-1(f[A])={a in A | y=f(a) in f[A]}
b in f^(-1)(B) iff f(b) in B
ok
So a in f^(-1)(f(A)) iff f(a) in f(A)
is that what i wrote
here
Then you missed the one for two E's? There must be 2 2! In the denominator
ok
But here we have this holds since a in A
scrape i need help LOOK!!!!
what does f(A) mean because A is a set so what does f applied to an entire set mean? is that the same thing as the image or f(A) = { y in Y | y=f(a) for some a in A} ?
yes
k
more simply f(A) = {f(a) | a \in A}
so why is the first step of this proof ‘prove A subset f^-1(f(A))’?
my thoughts were to evaluate f^-1(f(A)) and then somehow use f injective to show f ^-1(f(A))=A
how does proving that get me to my goal
"this proof"?
i want to prove suppose f: X->Y is a function and let A subset X. show that if f is injective then f^-1(f(A))=A.
not sure how to go about it
you prove A subset f^-1(f(A)) and f^-1(f(A)) subset A
ok
its just writing down definitions
one of the directions should be always true, the other will require injective
f^-1(f(A))={a in A | y=f(a) in f(A)} by definition no?
let a in A, then a in f^-1(f(A)) since f^-1(f(A))={a in A | y=f(a) in f(A)} by definition therefore A subset f^-1(f(A))
is that a correct proof for that direction ?
@pale epoch
ye
ok cool
then let a in f^-1(f(A))={a in A | y=f(a) in f(A)}, we want to show a in A
f^-1(f(A)) = f^-1(y) but here is where i get stuck
Good day! Can i delete this(blue)?
i’m confused how to evaluate
f^-1(f(A))
because f(A) is a set and not a single element @pale epoch
Let a in f^-1(f(A)), you want to show a is in A
so i’m confused as to what it means when you say let a in f^-1(f(A)) too
just by definition of preimage it means that f(a) is in f(A)
so there is some a' in A such that ...
can you continue?
look at the definition of f(A) you gave above
the very first thing you did
also probably use a different letter, this might be confusing here
f(A) = { y in Y | y=f(a) for some a in A}
let x be in f^-1(f(A))
so f(x) is in f(A)
so f(x) = y = f(a) for some a in A just using your definition
yeah
and now you are basically done
why are you doing f^-1
because i am evuakaring f^-1(f(a))
because i want to show f^-1(f(A)) = A
you dont
you take an arbitrary x in f^-1(f(A)) and show it is in A
let a in f^-1(f(A) show a in A
yes, but as i said using a might mislead you
what does it mean for a in f^-1(f(A))
because you dont know yet if a is in A
a is arbitary
f^-1(f(A))={a in A | y=f(a) in f(A)} by definition
so a is in that set
now how do i use injectivity to show a in A
that definiton is not correct
what is the correct definition
{x in X | y=f(x) in f(A)} is better
so is this proof wrong then
super confused i’ll be back have to go in a meeting
you start with a in A and then you have to show that f(a) is in f(A)
which, as you said, is just definition
ok confused about the other direction
is this supposed to be round down?
yea, x^2 is getting floored
ye
you can just consider positive though
you seem to have correctly identified that your interval should be symmetric around 0
(if not, do that first)
so
when does a positive number get rounded down to 1?
So how should the pre-image under 1 be written, maybe I am not inputting correctly
depends
on what?
hm?
1-1.99..
1<=x<2
if its less than 1 it gets rounded to 0
big brain move from me
so your answer is wrong for multiple reasons
anways
now if we can agree that x^2 is always positive (or at least non-negative)
you just have to solve 1 <= x^2 < 2 in this case
let a in f^-1(f(A)) = { y in y | y=f(a) for some a in A} then… how can my argument continue? can i evaluate f^-1(f(A))
like:
f^-1(f(A))=
f^-1(y)=
a (since f is injective)
is that how it goes?
So this gets the preimage of 1 under f?
im confused here
you should convince yourself of that
i dont know why you want to evaluate f^-1(f(A)) or what that even means
i don’t know what do you after you say let a in f^-1(f(A)) or what that even means here
also this definition of f^-1(f(A)) is definitely wrong
you should check the defintion of f^-1
if that definition is wrong then how is it correct in my other proof
you didnt use this one in your proof
the preimage is a subset of X and the definition should reflect that
f^-1 = {(y,x) in Y x X | (x,y) in f}
idk that’s what my book states
what kind of a definition is that
So consider the related function g(x) = x^2. Then f(x) = (g(x)], and the function f will map x to 1 exactly when g maps x to an element in the half-open interval [1, 2],
you are reading this definition wrong
also wtf
is this the same source as the question?
i thought i did
if $f\colon X\to Y$ is a function and $B \subseteq Y$, then we define
$$ f^{-1}(B) \coloneqq {x \in X | f(x) \in B}$$
Lochverstärker
so in your case you have $f(A) \subseteq Y$ and just plugging this into the definition you get
$$f^{-1}(f(A)) = {x \in X | f(x) \in f(A)}$$
Lochverstärker
shouldn’t it be a in A
no
since A subset X
this is the definition
ok
the general definition doesnt care about any subsets of X
ok
and now you have to take an element of this thing
so some x in X that satisfies f(x) \in f(A)
and show that x is in A
you will need to use the definiton of f(A), i.e. what does it mean for f(x) to be in f(A)
and then the definition of injectivity
which you havent even tried to use until now
ok i will think about this
there is no reason to evaluate any set (in fact its unclear what this is supposed to mean)
other than using the definition as ^ here
Can I do this?
you can think of f^-1 as a function if you want
it maps sets to sets
but f^-1(B) is a set
you mostly have to be careful about where they live
reattmept
i.e. whether they are subset of the domain or codomain
so this makes intuitive sense to me since mod will always make sure the colors are spaced out
but I'm not comfortable enough with mod to know how to formally prove this?
suppose not
then some vertex i will have neighbours, say j and k and ij and ik must have the same color
translate this into modular arithmetic
Nobody?
Definition in use: S is most countable if S is finite or countable. Suppose A is at most countable such that for every a in A we have B_a is at most countable. Let S be the collection of at most countable sets B_a, is S at most countable?
alright I'll give it some thought, thanks!
i would start by looking at small examples
try to notice a pattern and then prove it via induction
there is probably a smart argument as well but 🤷
hm?
collection of?
i dont think this says what you want it to say
Ok, I looked at n being 3 and 5, after that too many lol
I have for each a in A, the set B_a and S is the collection of those sets.
if this si right?
what does collection mean mathematically
Lochverstärker
yes, that.
this just has at most cardinality of A
Hmm, yeah I see it.
It follows the map f : A -> S, where S is that set above is bijection.
let a in A, then a in f^-1(f(A)) since f^-1(f(A))={x in X | f(x) in f(A)} — i don’t see the justification for this since x could be an element in X not in A @pale epoch so how do i fix this part of the proof?
a in f^-1(f(A)) means f(a) in f(A)
Ok so n! / 2*(n-2) works for n= 3 and 5. @pale epoch how do you prove by induction?
(also notice that any a in A is also in X)
no idea tbh, i would hope there is some way to build the functions for n+1 from the functions for n
but thinking more about it, that probably doesnt work
so no idea, sorry
What do you mean by functions?
the permutations
let a in A, then a in f^-1(f(A)) since f^-1(f(A))={a in X | f(a) in f(A)} therefore a in f^-1(f(A)) and hence A subset f^-1(f(A)) — is that how the argument would go @pale epoch
also i should say n+2 from n
Ok ok, yea a that's what I was thinking, I way to elimate certain sets of permutations based on n
let a in A, then a in f^-1(f(A)) since f^-1(f(A))={a in A | f(a) in f(A)} therefore a in f^-1(f(A)) and hence A subset f^-1(f(A)) — is that how the argument would go?
😵💫
it feels like you are just permuting symbols
its hard to tell, you are just writing down definitions, sometimes correctly, sometimes less correct
but this proof is just writing down definitions
and i cant look into your head to see if you understand it
so i dont think i can help you any further, sorry
i’m not sure i understand your advice in my head it makes sense because it’s all the a in As where y= f(a) in f(A)
where A subset X
i don’t get your x in X because x in X could be an x not in A
you want to only consider a in As
not the general x in Xs
maybe if you better explained what you’re saying i would understand you.
i don’t write down anything willy nilly @pale epoch
if this is right?
for number 1
the answer should be 31C20 * 30!/30!?
for number 2 the answer is the 50!/20!*30! - 31C20 * 30!/30!
Oh you mean build the permutations that satisfy the equation, gotcha. I was thinking of it as a way to eliminate the ones that don't out of the set of n!
@pale epoch if you want me to explain why i am writing what i am i’d be happy to. i’m not just permuting symbols
but i think your advice isn’t so clear
yes this is precisely the point
the preimage of f(A) is all x in X that get mapped to f(A)
ahh
in theory it could be elements outside of A
i see, that clears up a major misconception
thinking f(A) had to all come from a in A
this is true
why does not p turn into all that?
but the preimage of f(A) is at first not defined like this
the preimage of f(A) is just all x in X that get mapped to f(A)
f(A) is the set of all images of element from A
like
if i set B = f(A), then i can still write down f^-1(B)
and there is no reason to mention A
i see
because the elements of f^-1(B) do not necessarily have to come from A
ok that was a misconception i had
f^-1(B) are elements x of X that additionally satisfy f(x) in B
ah - ok
now if you take an a in A you have to check two things to show that it is in f^-1(B)
you have to confirm that it is in fact also in X, this follows from A being a subset of X
and you have to confirm that f(a) is in B
but as B is just f(A), you have to show that f(a) is in f(A)
but thats just the definition of f(A)
now in the backwards implication this is a lot more important
because if you take an element of f^-1(B) = f^-1(f(A)), it is not at first clear that it is in A
its just an element x of X that satisfies f(x) in B = f(A)
and then you have to use the definition of f(A) again and the injectivity of f to conclude that x is in fact also in A
ok thank you — i will revisit the definitions and what you said and parse it carefully
you gave me a structure to follow ty
and cleared up a misconception i had
they used the distributive property, look closely at the parentheses
ohh i see it, thanks a lot !
Something like if an x existed that didn't satisfy the property then n wouldn't be an integer?
What does by cases mean?
Proof by exhaustion, also known as proof by cases, proof by case analysis, complete induction or the brute force method, is a method of mathematical proof in which the statement to be proved is split into a finite number of cases or sets of equivalent cases, and where each type of case is checked to see if the proposition in question holds. This...
in this case there are two cases worth making a distinction for: one is for when x is an integer, and the other for when it isn't.
So by making those two cases you prove it?
no, declaring those cases alone proves exactly nothing
@pale epoch would the first direction go like this: let $x \in A$, then $x \in f^{-1}(f(A))$ since $f^{-1}(f(A))={x \in X | f(x) \in f(A)}$ by definition, therefore $A \subseteq f^{-1}(f(A))$.
strings
So what then?
the idea is that after you make the split into cases, you prove your goal statement for each case separately - and once you do that, you conclude that you have proved it in general
Thanks, sorry I've got to learn about proofs more
can someone help explain how they arrived at this sequence?
I thought it would be like
sqrt(1), sqrt(2), sqrt(3), ....
idk where they are getting 1, 2, 2, 2, 3, 3, 3, 3, 3, 4
Lochverstärker
thats neat seeing they never introduced that
actually not only did they not introduce it
it is in the next unit
-_-
ok, thats just bad lmao
thats really dumb that they didnt introduce it but also knowingly have it on the next unit of the book :/
okay well I guess I got it now
look at that part I see there is also a floor function that has similar notation
I really just thought they were some bugged looking brackets [ ]
if the "hooks" are on the lower end its floor
and the weird thing is that sometimes you use [] for flooring as well
good thing it is located
