#discrete-math
1 messages · Page 166 of 1
Does a * after a parentheses mean that said state is acceptable?
(101)* means {λ, 101, 101101, 101101101,...}
So basically an expression followed by an asterisk means that it occurs: never(λ), once -> infinite?
Hmm yeah mb, I understand what you meant.
I was just trying to express it in words and my poor english screwed me over I think
i mean (a)* just means that any string of the form {a.aa.aaa.aaaa....} and also empty string is in lang
that is all possible concatenations
Yeah exactly, thanks for the explanation. Much clearer now.
yw
Could anyone help me with part b. I believe the first equation is the one which holds if R is non commutative but I dont know how to give a counter example for the other equation.
need to find a way to show
that a set of n-1 edges from a graph with n vertices is connected
In graph theory, if X is a set of vertices, should I assume that normal set notation applies and |X| is the cardinality of X?
are there other restrictions? idt you can prove this as stated
oh yeah i messed up
the graph contains no circuits
I think i proved it tho
w induction
yeah this is the "trees must have n-1 edges" thing then right
hey i'm an idiot and have suddenly forgotten, what graph is represented by E?
like K4 is the complete graph on 4 vertices, what's E4 again?
no a little different
I would think E4 just means the edges of K4
but idk ive never seen that notation
this is a question in my homework and i literally have no idea what E4 is lmao
graphclasses.org "all classes" search isn't working for me 🤷
hi, im having a hard time trying to make the truth table for this if its a Tataulogy
(P <-> Q) <-> [(P -> Q) ^ (Q -> P)]
heres the given truth table
P Q
T T
T T
T F
T F
F T
F T
F F
F F
what do you mean that's the given truth table. That doesn't make any sense
It's wrong
yah our teacher gave that truth table wait so whats the correct one?
Well first off that's not a truth table, its just 2 columns for the truth values of p and q except each row is repeated for no reason
there should only be 4 rows for a truth tables with 2 statement variables
If you don't know what a truth table is you should just look up an explanation
and then if you have a more specific question ask it
ik the truth table but its just there so i thought I have to use that given truth table
I feel like I'm looping. This is what a truth table looks like
I don't understand your question
oh so it doesnt exceed to 4 rows?
hello 👋
im new to strong induction; i understand that we have base case n=1, and then inductive hypothesis where we are assuming n = k, but then i dont understand the last part. usually in normal induction we prove it for n = k + 1, but here they are doing something else
(there may be errors in the picture above because thats just what i wrote based on my understanding from reading other sources)
They're just relabeling a little
In (weak) induction, you could instead have an inductive hypothesis where you assume the n = k - 1 case, and then prove the n = k case
This is basically what they're doing here
but, here,
they first have n = k in the inductive hypothesis
and then, idk, they're just using n?
oh wait i found smth else
they use 2N in the proof and it seems to work out nicely
They say that (assume that N is a power of 2) at the beginning
So you can think of it as setting N = 2^k and inducting on k i guess
like this, right?
ik how to find max flow but how do u find min flow
Is it true that this regular expression would accept binary strings with an even amount of 0's and an even amount of 1's?
(00+11)*[(01+10)(00+11)*(01+10)]*(00+11)*
why if 5 and 7 have the same rest mod 2 and 3 and 5 have the same rest mod 2 then 5+3 and 7+5 also have the same rest mod 2?
what
Can someone help me on this problem?
what do you think
I think its a bijection but idk
why
Well because I know its not A, or C
yes its that its both injective and surjective
I think from the info we have we can predict that f is not one-to-one
yeah that's a better guess
f(x) 1/x^2 is this one to one, onto, neither, both?
is f:R -> R?
do you want a proof @weary tiger
like intuitively
not like a written proof
cause that's useless tbh
written proofs are kinda useless
@errant bear
lol
not if you understand them
intuitively its obvious since b modm modm = b modm
i feel like formalizing all proofs at least once is a useful move
Hey so how do you make a partition of a set {0,1}^5
I understand a partition but I don't get how to make a proper partition of an N-ary set
just partition it into one whole part with every element 
Ah so am I basically forced to write out all 32 elements and partition them into groups? I was trying to figure out how to define the partitions in set builder notation instead of roster notation
b modm modm is m
like 7 mod 2 is 1 ,1 mod 2 is 1
??
?
you said b mod m mod m is b mod m but that is wrong
I think Godel's right and your example backs him up, no?
7=1 mod 2
this is equals not equivalence
(b mod m) mod m is not equal b modm lol
give an example?
like 7 mod 2 is 1 ,1 mod 2 is 1
7 is 1 mod 2
1 sec
ya dun goofed
7 mod 2 is 1 right?
yes
1 mod 2 is 1 right?
yes
yeah.
yes
(b mod m) mod m is b mod m indeed
so b mod m mod m equivalent b mod m (mod m)
anyways nvm I understood it
Hi i have a question about what counts as a distinct denomination in a poker hand? lets say i draw 4 cards, i want 2 distinct denomination, does A, B, C, C count as 2 distinct denomination? or does A, A, B, B count as 2 distinct denomination?
Should be the latter
but it is dependent on what you define as a denomination
Do you want numbers:picture cards? Or Diamonds:Clubs:Hearts:Spades?
Does the following machine recognize the language generated by this expression (00+11)*
does your language contain the word 00011?
Not sure what you mean @obtuse lance.
what about the word 11
i'm assuming the state with a double circle is a final state
and the initial state
it's been a while. does this machine have to recognize only those strings in the expression? i thought with a DFA it "recognizes" a language if and only if it accepts valid strings of the language. in your case it looks like the DFA accepts strings not contained in the expression
@obtuse lance I just started reading about state machines etc so I'm no expert. But I'd say that the machine would not accept the word 00011 because it would get "stuck" in state 3.
@candid pier Hmm, wouldnt the expression I wrote accept the word 11 or am I mistaken?
- indicates "0 or more instances of" and + indicates "1 or more instances of", right?
generally in languages those symbols are quantifiers. do you have a different definition of them?
yeah I asked because + to me means at least one and * means 0 or more
as a regular expression I read (00+11)* as allowing 00011 but your FSM doesn't allow it
Yeah you are right
ah, well it would depend on how it's defined
I mixed it up with boolean algebra
mathematicians are lazy. so you'll find the same symbols overloaded in every field of study
No wonder ive struggled with the frickin state machines
😆
so (00)*(11)* would be more like it?
In this context I’d think + means or
are you given the expression, or are you given a description and you have to generate the expression?
Because one or more ‘a’s is usually denoted by aa*
A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that specifies a search pattern. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation. It is a technique developed in theoretical compute...
@candid pier all im given is the picture of the machine and im asked to formulate the regular expression that represents the machine
ohh ok
The machine only accepts a 0 followed by another 0 or a 1 followed by another 1, 0 or more times, right? ex) 001100110000 would be recognizable
yeah yours is close
but yours only accepts 0s first then 1s last then stops
Right, exactly—I think the problem writer wrote + for | which does happen a lot
It might have been clearer with a space
But again idk what the statement was supposed to be cause I didn’t write it 🤷
😄
I guess it's 0 (0+1)*
I was going to say ((00)*(11)*)*
Wouldnt that only accept strings that begins with a 0?
Yeah but that is what your language say.
You said it starts with 0
"Some As are C", one of the options doesn't match this restriction
Hmm yeah that makes sense.
the problem is start from the FSM and make the regex so what's written doesn't matter actually lol
I said it could start with a 0 followed by a 0 OR a 1 followed by a 1
Then followes by 0,1 (0+1) and so on this making it (0+1)*
Thanks for the explanation.
It would be great if you could post actual questions.
So I can see what you trying to say .
you should sort out the notation in your book if + means kleene plus or OR
Regex have very fine langauge thus altering any grammatical wo d will change the regex too .
Which one
It's never an issue as one is raised to power while other is normal plus .
the one where none of the As are C oh sorry i misread your diagram
lol
Yeah my bad. I just hopped onto regular languages and i had boolean algebra stuck in the back of my head.
Don't know what was funny but lol
you're saying there's some kind of universal when it comes to notation when there isn't, you're just wrong
Ohk how did you do that .lol .the edit if line.
That is okay
if someone writes ^+ but ^ also has a meaning when written in regex
In latex you will usually see it raised above like a power
But like you can’t do that with code
@worn vale can you post your question again . It's making me dizzy lol . Coz I didn't understand what you said or may be because my regex was wrong .
hm.. i'm not sure which one is "best". both of the diagrams satisfy the conditions o_o
I have this picture and I want to formulate a regular expression to represent it.
So I wrote the expression I formulated and asked if it was correct(it was not).
Ah thanks
this seems right.
Firstly you must tell which is the start state ( though obvious but it affects the answer ) .I see it's s0
Also your regex (00+11)* was right too .
So was ((00)(11))*
u can write \ before * to prevent discord from making text cursive. @glacial musk
but i thought "+" meant something else
@worn vale no it's standard in regex to represent OR with +
But if raised to power it's kleen's closure
depends on what formalism is used. if your textbook or instructor uses + to indicate boolean or, then yes.
but if your textbook or instructor uses + to indicate "one or more instances of [what comes before]" then no
@candid pier that is okay
My book gave a pretty scuffed explanation. But I found this if it makes stuff any clearer.
Where + and · is used to describe the meaning of kleene*
yeah in that case you can consider it a boolean or
I don't thing it needs and argument from my side.
Here '+ ' means "or"
How to i check if this is a graph
you could construct it directly
well, there's no unique graph satisfying that, so construct an example
im not sure if it is even possible
I constructed 3 simple graphs that satisfy that
there are more if you don't restrict to simple graphs
just play around a bit
the degrees are only 1 and 2 so it's not really that crazy to try to find one
ok thanks
How does someone find out how many loop-free (not multigraphs) graphs exist given a degree pattern?
well the only way I could think to try to rule out if it was not a graph was using the formula,
$$\sum_{v \in V} \deg (v) = 2 |E|$$
Merosity
so I just did the check first, if the sum of degrees is odd, there can't be a graph
I assumed you were asking about the previous problem, I didn't do anything
but
I just explicitly could construct all 3 because it was so restricted
how woudl it be possibel to add 2 sets tho
like wouldnt it be something like A=(1,2, 3) and B=(4, 5, 6)
so (1+4, 3+5, 3+6) -----> (5,6,9)
but how could that = 11
hmm?
|P(A)| is an integer
| A | means number of elements of A, |P(A)| means number of subsets of A, in fact you can show that if |A|=n, then |P(A)| = 2^n.
@pastel mica
Not really sure how to go about proving this. Any hints?
take an isomorphism from G_1 to G_2 and extend it to an isomorphism between their complements
i did, i assumed you can use the same bijection
so what are you having trouble with?
it makes sense now
Given a positive integer n, how many binary strings of length n are there such that neither “11” nor “000” is a substring?
Bonus: how many of such strings do not begin with “00” and do not end with “00”?
Show that if a, b, k, and m are integers such that k ≥ 1,
m ≥ 2, and a ≡ b (mod m), then a^k ≡ b^k(mod m)
I saw a proof by induction online but I came up with a proof but idk if it is correct
my proof is that if a congruent b (mod m) then a modm =c and b modm =c so a^k modm = (a modm x a modm x a modm ... k times) modm and a modm =c so a^k modm = c^k modm and same for b we have that b modm=c so b^k modm = (b modm times b modm times b modm (k times)) modm = c^k modm hence a^k congruent b^k (modm)
what does "a modm =c" mean
a mod m
is equal to c
the remainder of the division of a by m equal c
@pale epoch
then this is just stating a special case of what you are asked to prove
(you just replace a and b by some other representative c mod m and claim you can do this)
sorry I didn't understand what you mean
why not?
I didn't quite get it can you clarify more
you claim a mod m = c implies that a^k = c^k mod m
this is a special case of what you want to prove, i.e. a = c mod m implies a^k = c^k mod m
yes I proved this
how
so I have a equivalent b (mod m) correct?
yes
ok so a mod m = b mod m = some constant c right?
thats not what this means
you are conflating the ideas of modular arithmetic and division with remainder
the congruence ? doesn't it mean that if I have a congruent b (mod m) meaning the remainder of the division of a by m and b by m are the same?
usually you define it as (a-b) is divisible by m
yes true also that a mod m = b mod m
you can phrase it via division with remainder but its not a good idea
but even if you do, your "proof" does not work
then you get that a and b have the same remainder when divided by m
call it c if you want
yes this is what I did
and now you have to prove that a^k and b^k also have the same remainder when divided by m
yes exactly
so now you have to perform division with remainder
ok
so a^k mod m = (a modm * a modm *a modm (k times)) modm
well there is a formula saying that if we have (a.b) modm it is also equals to ( ( a mod m ) times (b mod m )) mod m
yes I also used this
well, ok
then you have to prove this first
and then you have to prove that every number has a unique representative mod m
also that modular arithmetic defines an equivalence relation, but i guess you already have that anyway
and then this works i think
there's this part in generatingfunctionology
i was wondering why they can just replace the summation with the infinite sum of a converging geometric series?
its only valid for |x| < 1, but not for any other x, right?
hmm it explains this in the second chapter on series but i didnt really understand it but another book says that this is valid because we never actually use the value of x and are just interested in the coefficients of the series
ig that works ¯_(ツ)_/¯
does anyone know what tool i can use to build truth tables for these two expressions? cant find one that has both the triple = and the <->
yea i understand that but i have to build one for each to "show"
Alright then write out the truth tables
and i cant find a generator that has both operator
yea thats tru, only two variables
Was this from a test?
yeah has trouble on these ones
If I have a= qd+r how to prove that (q+1)d >a
I mean it is obvious but how to prove it
ops fixed
142 = 8 * 10 + 62 but (8+1)*10 is not greater than 142
hmm
either you're missing something or you're asking us to prove a false statement
looks like I am missing something
let me think
ok you wrote it wrong
142=14x10 + r
i wrote nothing wrong, you didn't say r was supposed to be the remainder
i.e. you didn't say 0 ≤ r < d
here What I mean by q is the quotient and r the remainder
anyway, now that 0 ≤ r < d has been made explicit
yes
it should be obvious that qd + r < qd + d
yep
but where is a < (q+1)d
ops
qd+r is a
and qd+d is (q+1)d
lol
well that was obvious
xD\
ok cool thanks @stray reef
the answer is D
how
definition of an equivalence relation
An equivalence relation is one which is reflexive, symmetric and transitive
R is just a symbol
no, R is just a name
this is B correct?
yes
is this D?
yes
why are u copying and pasting questions in test format without caring ab reasoning
there are countries that are not in the americas lol, it's not the middle of the night everywhere
^
im coping and paste them because i need help on these question and no its not a test
can someone explain to me how to answer the this question
recall the definition of an equivalence relation
reflexive, symmetric and transitive.
- is every person the same age as themself?
- if i'm the same age as you, are you the same age as me?
- if i'm the same age as you and you're the same age as this other person, are me and the other person the same age?
yes
yeah so
bingo
recall the definition of a partial order relationship
reflexive, transitive, and anti-symmetric
in particular, notice that for R to be reflexive we would need (d,d) in R, which we don't have
so false?
yes
@tepid fulcrum I think I helped you before! Anyway, do you know the definitions of those terms?
Given this degree sequence (5,5,5,4,4,4,3) how do i show its nonplanar using the complete bipartite graph K_3,3
Which option is correct ?
The second one is correct( my point of view ) but i am asking about the first one .
@past gate do you know how to start?
Correct me if im wrong:
So
f(x) = x -> injective and surjective, since injective and surjective then bijective
f(x) = x/2 -> injective and surjective, since injective and surjective then bijective
f(x) = x^2 -> not injective and not surjective, not bijective
**f(x) = 1/x **-> injective and not surjective, not bijective
you working within the reals?
i dont know if this mesage is ment for me but the reals?
to talk about these things you need to specify the domain and codomain
all functions are defined as f: R-> R
how is f(x) = 1/x defined from R to R?
wait that may not be possible since x cannot equal 0. if it did it would make it undefined
I do not sadly...the professor was really bad explaining this...
it's just manipulating the exponents
on the right side, you have e * e^(-n)
so that's the e^(1-n) on the left hand side
anyone want double check my question?
Which of the following are NOT the official rules for a function?
A. Every input in the domain maps to come output in the codomain
B. Equal input produces equal output
C. If the inputs are different, the outputs are different
D. For every possible output, there’s at least one possible input that produces it
Ok im confused. So i have my intial thought that A and B are correct, but C and D are not because it should be producing 1 output with 1 input?
Those are just the given statements so thats why im kinda confused on how specific or lenient this is
I guess when can there but multiple inputs?
snore
How do I find the factor group (ZxZ)/H the standard from from the subgroup H={(5a+8b,10a+20b), a,b element of Z}
This is probably more suited for #groups-rings-fields
okay
hi does anyone know how to solve this? all i've gotten so far that R is an order
Hi! Does anyone in here know how to do graph theory?
Oh what is this
a way of saying you should ask your question right away rather than wait for someone knowledgeable in graph theory to show up
Oh well it is very advanced so I didn't want to spam with pictures. It's shapes not questions.
I was trying to be decent . Sorry.
I want to learn how to do it.
uh... am i overthinking this sequence? have to get first 10 terms, but the only thing it tells me is that nth term is 3, and... im lost as to whether it just means everything is 3 or if im missing something that should be obvious
picture?
only instructions i have regarding a starting point is assume that first term is 1, beyond that
wait i may have misread it.. is index of 1 meaning it starts as 1
dunno. whoever wrote this needs to express themselves better.
or you're cropping out some instructions that would make it all fall into place.
its from my textbook on the class lol the instructions i have are as follows: give first ten terms of the following sequences, assume the sequences start with an index of 1, logs are to base 2
the rest is determining whether its increasing, decreasing, etc but i gotta get the sequence itself before i can determine that
got all of em except E
okay so. yeah
it should be all threes then
but in that case, why the 1 in the beginning?
or was that put in by you?
i assume i misread it initially as assuming the first number is supposed to be 1 because that was put in by me
starting with an index of 1 means you consider the term at the start of the sequence as the 1st term (rather than the 0th)
this stuff probably confuses me more than it should but its also my first experience with a strictly discrete math class and i haven't touched sequences or what-not in a while since for longest time i was in programming stuff instead of math classes
@stray reef do you have any good sources of info on dot multiplication or whatever it is with matrices, im still struggling to really get how to do it without a graphing calculator... initially learned how to multiply them on one back in 2 year college or high school but now in uni i can't use the graphing calculator on the tests
dot multiplication?
some weird thing encountered in the last chapter that dealt with matrices and graph powers, this kind of stuff as an example
like determining which rows/cols of A and B to dot product?
im gonna be honest that i don't understand dot products or how to do it without a graphing calculator
a dot product is a sequence of multiplications and additions on two vectors. you multiply the corresponding elements in each vector and add them up.
e.g., (1, 0, 1) * (0, 0, 1) = 1*0 + 0*0 + 1*1
for two dimensional vectors it might be easy to see:
(2, 5) * (3, 6) = 2*3 + 5*6
you just walk through the vector and multiply the corresponding value. the first element of vector A is multiplied by the first element of vector B. the second element of vector A is multiplied by the second element of vector B, etc. etc. and you take the sum of everything to yield the dot product
once you understand how a dot product works, it's just a matter of figuring out which vectors you need to determine the dot products in a matrix multiplication , as in your example
okay... uh.. next question. is this how a recursive sequence is supposed to work, or...
the first equation looks like a recurrence relation. , the last equation looks like you have the initial values of g2 = 2 and g1 = 1?, so g3 = 7?
g1 is 2 and g2 is 1 which makes me feel like it should be going down, i have no limitation that says it has to be over 3 or something similar
must've put em backwards initially
agh
question, how would it be 5 for third index though, doesn't it end up being either 7 or 9? cause one way is gonna end up with 3 * 2 for 6 then + 1 as 7, or 2 + 1 for 3 then * 3 to get 9?
i thought you said g2 = 1?
oh right i forgot the one above had them backwards
if g2 = 1 and g1 = 2
then g3 = 3 * g2 + g1
= 3 * 1 + 2 = 5
would the 6th one be 351 then
g6 = 6*g5 + g4 = 6 * 110 + 21 = 681
oh right
okay i think this may be right then for the next one now that i've got a better... understanding
c3 = 20
c4 = c3 * c2 = 20 * 5 = 100
for that one make sure you re multiplying the previous two terms
oh whoops
but yeah looks like you're getting the idea of recursion.
this shit was confusing the few times i encountered it in programming and it still is now to an extent
so long as you have a base case (initial conditions),you'll find recurrence relation just refers back to an earlier value in the sequence. one that is either defined by initial values, or one that can further be recursed. in programming you'll find recursion useful for breaking a problem down into (hopefully) easier to solve subproblems
Could someone help me with a conjecture for the problem in red?
does anyone know how to solve this?
I know i have to use Fermat's Little Theorm (a ^ p - 1 = mod p ), but the other steps im a little lost on
break apart 9^45
So how would I do that?
Wouldn’t it be (9 ^ 22) ^ 18) and 9 ^5?
Or am I wrong there
2^5 = 2 * 2 * 2 * 2 * 2 = 2^2 * 2^3 as example, you're breaking it apart wrong
but how would I get a and b tho?
you have a+b = 45
and you're working mod 23, so what do you think one of them should be?
Is anyone able to help me out with the highlighted, I have the first one as reflexive and symmetric, but for b and c I proved everything false
do you have a graph?
for what
so which one in particular are you unsure about
@deft current b and c
I feel as though there was definitely an error in the way I disproved them
well presumably if they're false, you give a counterexample
Correct, and I gave a counterexample for each one
so what's the problem lol
If they’re all false, what’s the final answer? Are there just no relations?
so for b, are you saying it's neither reflexive, symmetric or transitive
what was your counterexample for transitivity
X = 0, y= 1, z=3
you sure that works
it does, I'm being slow
Oh okay😂 ur good
yeah I mean, seems fine what you're doing
Ok so that final answer is just no relation?
well it is a relation
says it in the question
just it doesn't satisfy those properties
Does the line over each A mean the complement of A?
plz help I gotta do this homework fast before I pass out
that's all I need to know
I never seen it written that way
yes.
thank you!
nw
I can do my work now!
where can i find questions for forward chaining and back substitution for recurrence ?
A relation is a set R which is a subset of A x A. Since A has only 4 elements, so you can find A x A and see which ordered pairs (x,y) satisfy x > y + 1
yall im so confused in my discrete class
my professor's lecture notes and the textbook dont align at all
how so
@stray reef like this
can you say exactly what the difference here is?
Then why are you saying they don't align?
because the content is completely different
so what exactly are you asking
the slides talk about sets as in a data structure
the book talks about sets as in set-theoretic objects
thanks for clarifying
i didnt know how to say it myself
i understand the math stuff
i just dont understand how to turn it into computer stuff
May be a dumb question, but the first index in $A_{k}={2^0, 2^k, 2^{2k},2^{3k},... }$ is $A_{1}=2^0$ right?
therealcain
Ann
Here is my exercise: $A_{k}={2^0, 2^k, 2^{2k},2^{3k},... } = { 2^{nk}|n\in \mathbb{N}} \
Find\ a\ natural\ number\ k\ so\ the\ set\ will\ be\ equal\ to\ A_k: \
- \bigcup^{\infty}_{k=0}A_k \
- \bigcap^{5}_{k=2}A_k \
- \bigcap^{\infty}_{k=1}A_k \
- { x/8, x \in (A_1 - A_2) \cap A_3}$
therealcain
therealcain
Now i wonder if the value of $A_0$ is $\emptyset$ since his index does not exist in the $A_k$ set
therealcain
That's why i want to know if the index counting is starting from 1 rather than 0 ( as programming languages do )
@stray reef
$A_0$ still makes sense with the definition they gave, it'll just be ${1}$
Ann
Is this correct? $\bigcup^{\infty}_{k=0}A_k = {2^0}\cup { 2^0, 2^1 } \cup { 2^0, 2^1, 2^2 } \cup ...$
therealcain
No
Then i did not understood the big union 😫
you seem not to have understood the A_k themselves somehow
No, you are not understanding the definition of the sets
$A_1$ is the set where you replace all the k's with 1's so it is
$${ 2^0, 2^1, 2^2, 2^3, \dots } $$
And $A_2$ is the set where you replace all the k's with 2's, so it is
$${ 2^0, 2^2, 2^{2(2)}, 2^{3(2)}, \dots } $$
Lunasong
So each A_k has infinitely many elements, except A_0 because then all the elements become the same one since it's always 2^0
So the big union essentially unions $A_1 \cup A_2 \cup A_3 \cup ...$ ?
therealcain
yes
It makes so much sense now, Thank you!
big intersection is essentially the intersection equivalent
Yeah it didn't occur to me like that, my brain confused the behaviour of it with arrays from programming languages
in the third exercise, i showed that $A_0 \subseteq A_k$, but i can't figure out how to show that $A_k \subseteq A_0$ to show that they're equals.
therealcain
Can i get a hint please?
Ann
of course you can't figure out how to show $A_k \subseteq A_0$! it's false! you can't prove a false statement!
Ann
Then what $\bigcap^{\infty}_{k=1}A_k = ?$
therealcain
I need to prove that it indeed equals to that. And to prove equality i need to show that both of them are subsets of each other
okay so you just went and omitted the intersection symbol
and expected whoever replied to you
to just magically know
I did a replay to the image, and said "in the third exercise"...
still, there's a big difference between saying $\bigcap_{k=1}^{\infty} A_k \subseteq A_0$ and just $A_k \subseteq A_0$
Ann
anyway, whatever, not that anyone ever listens to me...
you need to show that if x is a member of every A_k at once then x=1
You're right, i did that also on my paper, i should change that
mirza, i didn't mean listen in the literal/auditory sense
Can anyone here help with coding theory?
how is weight of codeword defined
the number of 1's in it
I thought about it indeed
that if w(x)>75 then you are forced to violate either i) or ii)
can you elaborate a bit?
well assume you have codeword x with w(x) > 75
you have to show that either it has substring of the form ...1111...
or ..101.. 01... ...10
hmm
so let x be our codeword with w(x)>75
let us denote w(x) by just w
then if first symbol of w is 0 you then are forced to have second symbol as 0
thus 123 symbols and w ones
otherwise

the first symbol of x you mean

sure
Commander Vimes
i guess your argument should use it
are we assuming here w>75?
well yes since we want to show that counterexample code does not exist

then in the 123 remaining symbols we'd need to have at least 76 bits of 1
oh
probably i got the hook
in each group of 5 symbols you can put at most three ones'
yup
Result:
25
,calc 25*3
Result:
75
oh
so basically if we want to maximize the number of ones in a codeword of C
we'd need to divide it into 5 substrings of the form 11100
well you have to be careful here
there are 25 such substrings
but yes
Thanks a lot !!
yw
anyone heard of non-graph clustering algorithms? I have a homework question which asks something about the possibility of clustering a graph, but with a non-graph algorithm. Im not sure I understand what a non-graph algorithm is?
How can I show that the binary code C with a number of 1's divisible by 3 is linear?

be more precise please?
if you're considering the code of all, say, 8-bit words with hamming weight a multiple of 3, then this won't be closed under addition
Actually I don't know if my counterexample is correct
I found that for $n=6$ the codewords $x = 111000$ and $y =110010$ we have $x\oplus y=001010$ which clearly doesn't have a number of 1's divisible by 3
Laïka
its a general case here, so I guess I can disprove it for a particular value of n
My bad, I haven't tried for some values greater than 3
you can construct similar counterexamples for all n > 3
thanks!
I have a question about graph theory. If you have 5 edges and 2 colors, what can you say about the 5 colored edges? At least ... what?
I have not learned that before but I just read into it
How does it apply to this situation/what is the pigeon and what is the pigeon hole?
hey can somone help me with bayes theorm, my prof introducing it but im really confused, i dont know how he derived the equation at the top and when i search up the formula i get somehting completly different
Hmmmm
I also have no clue how he can conclude the probability of E is = to the p(E|F)p(F) + p(E|(complement of F)p(F)
uhhh 😅
@wise parcel
pigeonhole theory is like if i have 5 pigeonholes, and 6 pigeons, it must mean that at least 2 pigeons are in the same hole, i think that the person was saying is that u can say that at least 3 edges will reside in one of the colors
oh and nbm i got it
Does anyone have a fun math problem that I can try to solve?
Also not super difficult but a cool concept. Prerequisite of combinatorics and below
Maybe a challenge will be good though
For $n,m,k \in \mathbb{N}$, if $n=mk+1$ objects are assigned to m places then at least one place is assigned at least k+1 objects
Laïka
An important result of discrete mathematics to keep in the back of your head especially when doing counting problems
just the way, we represent a poset on a set A by (A, <). what's the general notation for a lattice. Since a lattice is also a poset, we can use the same representation. But is there a stronger way to even record the lattice properties?
In a class with 280 students, how many students have their birthday the same week
Perhaps the most important formula in probability.
Brought to you by you: http://3b1b.co/bayes-thanks
The quick proof: https://youtu.be/U_85TaXbeIo
Interactive made by Reddit user Thoggalluth: https://nskobelevs.github.io/p5js/BayesTheorem/
The study with Steve:
https://science.sciencemag.org/content/185/4157/1124
http://www.its.caltech.edu/~...
remind me, how do i get the lcm of two numbers, without using a graphing calculator or some other device, i guess using this one i gotta do as an example
i figured that one out... um... somewhat struggling to get the prime number theorem down
it gave an example with 10^3 which had a formula that looked like that except for having 3 instead of 5... but im unsure if this is the right approach
i need some help
parentheses
and yeah, combinations, but it's not quite that
not 15C5
it'd be... 20C5 if i didnt do a fucky wucky
look up stars and bars
also uh
19C5 my bad
19C5 not 20C5
15 stars, 4 bars
or
15 objects, 4 separators
i think i got 20c5 by brute-forcing it
yes
multinomial coefficient maybe?
@weary tiger 228? Pigeon Hole principle.
Not quite
people
no, 3 3 3 3 3 is valid
it's how many is a plus 1 of 52 weeks right?
What do you mean by inversible?
can someone help with this bayes theorm question, the handwriting is shit but the question is basically trying to probability of F given E, (E and F and their complements are listed in the bottom left). But i dont understand how the probability of you having the disease given that you test positive (P(F|E)) to be such a low number (right side). Even though the probability that a test gives a positive result 99% of the time if the person has the disease. i get the math behind it but it doesn't make sense intuitively
\
basically there are so few ppl who have the disease as a proportion of the whole that there's just gonna be way more false positives
even if the test is mostly accurate
1 million ppl take the test, 100 ppl have it
then 99 of those 100 will get a positive result
but also 0.01 * (1000000 - 100) = 9999 will get a false positive
I don't quite understand. My fundamentals for this subject is really bad.
so dispite the accuracy of the test (being close to 100%) the chance of you having a disease when u test POSITIVE for it will be 0.002% dont these statments contradict eachother, dispite the rarity of the disease.
bruh
basically there are so few ppl who have the disease as a proportion of the whole that there's just gonna be way more false positives
the test is quite accurate, but not accurate enough to compensate for the rarity of the disease
the smaller the thing you're looking for the more precise you gotta be
ohhhh okk i see this kinda makes it mroe understanable
tyty
like, 99% accurate
but 0.01% chance of having the disease, so it's not enough
fun times
also how did u calculate this if 1 in 100,000 get the disease the chance of getting it is 0.001% so it would be 0.00001 * (1,000,000 -10) = false positives?
so 1% of the time the test is wrong
1000000 - 100 ppl don't have the disease
so the test will be wrong about 0.01 * (1000000 - 100) people who don't have the disease
ohhhoh mbmb ty
Does the universal set contain the universal set?
yes
In how many ways can 12 otherwise-identical socks be hung on a clothesline if there are 6 black socks, 4 brown socks and 2 blue socks and the brown socks must be kept together?
When two numbers dont have similar modular residue classes
how do we prove that they have gcd of 1
can you be more explicit on first part
oh sure like
lets say an aribtrary number
and another number n^2+1 is 1 mod 50
need to prove that they are coprimes
thats what i have got the problem down to rather
what are you talking about
the universal set is a subset of itself, just like any other set is a subset of itself
since they dont have similar residue classes they have gcd of 1 right
insert russels paradox

meliodas sorry still not really clear what you mean
n+7 = 7 mod 50 means n is congurent to 50
n^2+1 = 1 mod 50 means n^2 is congruent to 50
yessir
basically
Just use bezout?
who says you can't
how would you implement it then
cause only place i have seen bezouts is for solving congruence equations ahhaa
Ok, That's not very simple
yeahh
i was thinking of ways to prove gcd of 1
bezouts did pop but like the implementation didnt
uhhhh
or you know
prolly you can do induction
@quick folio i got it
prolly
ah no
nvm
what was ur thought process anyway
well
let a = 2500k^2+1
b = 50k+7
denoting gcd(a,b) by (a,b)
(a,b)=(a-b,b)
a-b has to be even
and b is odd
but we are not guaranteed they do not share common odd factors

I think this falls under discrete (tried in calc, Ann questioned it)
Im assuming that A_n is suppose to be natural numbers =< n, but I'm struggling understanding how a function would map 1 number to infinitely many
$f_1:{1}\to S$
moshill1
what is S
S is infinite
what it means set of natural numbers leq than N
Yeah, joining a call with the prof in half an hour to ask for clarification, but I assume it's meant to be $A_n ={x\in\mathbb{N}|x\leq n}$
ok this is more readable
moshill1
so A_n = n^+

well i use von neumann construicton of naturals
so n = set of all naturals less than n
Yeah, just not sure how I would define f_1 from the singleton to some arbitrary set
given idk what S is aside from infinite cardinality
well
you can use the very arcane and hard to prove fact
that if a set is infinite
then it is not empty
woaaaaaaaaah crazy
But I'm still stuck on how 1 element can map to infinitely many, cause in my mind i just have a vertical line in R^2, but if S is like, a set of not-numbers, then I struggle
you dont need f1 to be surjective, moshill...
what exactly confuses you
$f_1 : {1}\to S$ How can you make a function when you only have 1 input and infinitely many outputs?
moshill1
that is that S always contains equinumeruous to n subsets
f(1) = arbitrary element of A
if f(n)=2f(n-1)+6, f(0)=3 how would i find f(2)=?
you prolly need aoc here
what's aoc?
axiom of choice
find f(1) then f(2)
and also recursion
Yeah still no clue
Pick an element in S
@amber prism how do i find f(1)?
plug in n=1
moshi1 if you are struggling with induction you can do contrapositive
Repeat this infinitely
@amber prism for f(1) is it 12?
assume exists n s.t no injective function from A_n to S exists
show then that S is finite
And then map {1} to {a} ,{1,2} to {a,b} and so on
but {a} isnt S?
no
{a} is a subset
{a} is subset of S
basically you want f_n to be f_{n-1} U {(n, some element not in ran f_{n-1}}
@amber prism is f(1) = 12?
ok wait want to make sure I fully understand, how is a point injective (for the n=1 case)?
given the definition of injective needs 2 points/values?
for n = 1 it is injective because no two distinct point are possible for input
right cause only 1 point exists?
yes
yes
Ok it finally clicked lolol
@amber prism then whats next?
find f(2) by a similar method
30?
ty @unreal stump @last timber
yes
Commander Vimes
Let $T=\{n \in \omega | \exists f_n : n^+ \to S, \text{ f_n is one-to-one}\}$.
$0 \in T$ since $f_0 : 1 \to S$ can be defined by $f(0) = c$ where $c$ is arbitrary element from $S$ (such a function obviously exists by an axiom of choice and injectivity is obvious). Now assume $n \in T$, we show $n^+ \in T$.
Let $f_{n^+} : n^{++} \to S$ be defined by
$$f_{n^+}(k) = \begin{cases} f_{n}(k) \text{, if } k \in n^{+} \\ \text{ some element of } S - \text{ran } f_{n} \text{, otherwise}\end{cases}$$
```Compilation error:```! Missing $ inserted.
<inserted text>
$
l.65 ...f_n : n^+ \to S, \text{ f_n is one-to-one}
\}$.
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.```
$n^{++}$? what a dumb way to say $n+1$
Ann
where tf i have missed $
or would that be n+2
$n^{++} + n^{++}$
idk, seems like a plus to me
Ann
${}^{++}i + {}^{++}i$
Ann

vimes is struggling more than I did 
-i--;```
Commander Vimes
@amber prism so here remains to show that f_n+ is injective
Let S be the subset of the set of ordered pairs of integers defined recursively by: Basis step: (0, 0) ∈ S. Recursive step: If (a, b) ∈ S, then (a + 2, b + 3) ∈ S and (a + 3, b + 2) ∈ S. a). Which of the following ordered pairs is an element in S?
A. (2,2)
B.(0,3)
C.(5,5)
D.(2,0)
is this one B?
so if you have (0,0) in S then (0+2,0+3) and (0+3,0+2) are in S aswell as (0+2+3,0+3+2) and (0+3+2,0+2+3)
How would I figure out the number of different edge colorings of a K_102 graph using 2 colors? Each vertex would have 101 edges correct?
what counts as an edge-coloring in this case?
just any assignment of colors to edges?
2^(51*101)?
Yes
Wher does the 51 come from and is the 101 just n-1
51*101 is the number of edges in K_102
wait
it might be 50*101
ok look so it's n(n+1)/2
sum to 101
ok so yeah it's 51*101
When I do (102(102+1))/2 I get 5253 but when I do 51*101 I get 5151
yeah so there's 102 vertices
so from the first vertex to every other vertex there's 101 paths
then from the second vertex to every vertex except the first there's 100
then from the third to everywhere except 1st and 2nd, 99...
sum to 101, not to 102
Oh okay that makes sense. So every vertex just has one less path than the one before it. But where does the 51 come from, I am still confused about that
sum as i goes from 1 to n of i is n(n+1)/2
here, we're summing from 1 to 101
101(102)/2 = 101 * 51
Ohhhh okay. I see what I did wrong. So there are 101*51 edges in the K_102 graph right?
think so
So then there are 2^5151 colorings of K_102?
yep
Hmmm. So if I am trying to calculate how long it would take a computer to calculate if K_102 has an orange k_6 or a black k_6 for every coloring...how would I convert that large number to a time
bruh
Because my calculator cannot give me that large number
wait no. I think I got it
Thank you for your help
How many distinct permutations are there of the four letters C, C, Z, Z? List them. Of these, how
many are distinct circular permutations? List them
any ideas guys?
Should the first one be 4!/4
so 6
by what?
oops
sorry my message didnt fully send
basically
if element b is in the partition of a
thats not a partition anymore is it?
because Pa U Pb wouldnt give us the set of S anymore?
it doesn't have to?
P_a and P_b are parts of the partition, not necessarily all parts
