#discrete-math
1 messages · Page 85 of 1
Density of water:
1000kg = 1m³
1m³ = 261.17 gal, based on google
So
204kg/min × |1m³/1000kg| × |261.17gal/m³|
== 204*261.17/1000
1331967/25000 = 53.27868
@weary tiger
Hmm shouldn't this go somewhere else... Doesn't seem like a discrete math problem lol
Hah, I guess that's true. Attempt to be more on-topic in the future, @weary tiger
i thought i could go help someone in #discrete-math... my hopes got crushed when i had no idea wtf he was talking about 😂
You are gaining experience as a helper.
the thing is that it wasnt a discrete math problem lol
and i dont really stray outside of discrete math
People talk about math I have no idea about all the time
Category theory is fairly popular here and I know none of it
anyone know how to do this probability
Given that exactly one of the dice shows 4, what is the probability that the sum is 7 or 11?
(given two dices are thrown)
I know how to do it bu i wont:
-model the problem with a proba space
-reformulate that problem in your model using events and that proba
-express those events to prepare a proba calc
-do the proba calc
-interpret the result
how can u gat 11 with 4 and another dice ?
i’m trying to insert my induction hypothesis into the inductive step claim but i’m stuck here, any help?
Multiply your induction hypothesis by 20 and then subtract out what you don't want
i don’t understand
why multiply it by 20?
sorry i think there’s suppose to be a + in between the 4pow(n+1) and 5pow(2n-1)
The sever owner has disabled that command in this location.
sorry you really lost me hahaha
Okay so do you agree that (4-3)4^k = 4^k
yeah
Now when you expand that you get 4^k+1 -3 * 4^k
That's how you should try get your 4^k+1
For 5^2k-1 you need do do a similar thing except you need to multiply it by 25
So (25-24)(5^2k-1)
wait what do you expand to get 4^k+1 - 3 * 4^k?
Yeag
That gives us the k+1 wee need
And by our induction hypothesis it's still the original expression hence it's divisible by 21
as in, which expression did you expand to result in 4^k+1 - 3 * 4^k?
So the expression 4^k + 5^2k-1 = (4-3)*4^k + (25-24)(5^2k-1)
I just split up each part
wait but the expression is 4^k+1 not 4^k
oh god hahaha is there something i’m not seeing
Now expand out (4-3)*4^k + (25-24)(5^2k-1)
isn’t it just 4^k + 5^2k-1?
16^k - 12^k + 125^2k-1 - 120^2k-1?
4 * 4^k = 4^k+1
yeah i agree with that expression but what am i suppose to do with that
So expand out (4-3)*4^k + (25-24)(5^2k-1) and see what you get
i got this 16^k - 12^k + 125^2k-1 - 120^2k-1 ?
That's not the correct expansion
it’s not????
4 * 4^k = 4^k+1 not 16^k
3 * 4 ^k is not 12^k
There is no easier way of writing 3 * 4^k
It's just 3 * 4^k
Almost but 25 * 5^2k-1 = 5 ^2k+1
oh right i’m an idiot
Now group the 'k' terms and the 'k+1' terms together and notice that that whole expansion is still 4^k + 5^2k-1
Which means that expansion is divisible by 21
i don’t understand why the expression is equivalent to 4^k + 5^2k-1
Because you just expanded (4-3)*4^k + (25-24) * 5^2k-1
why’d you choose to use the numbers (4-3) and (25-24)?
Because I know I want 4*4k = 4 ^k+1
But I can't just multiply by 4 without changing the whole thing
So by multiplying by (4-3) I get the 4*4^k
Same story with 25-24
hey guys i was wondering what the current research in graph theory is focusing on?
also what is the best place to find out about the current research being done in mathematics
there's a polymath rn on the hadwiger-nelson problem (chromatic number of the plane)
other than that idk about research in graph theory
alright thanks
The bound just improved recently for that didn't it?
From 4-7 to 5-7
By some biologist XD
Hey guys, I have a Discrete Math module next semester for compsci and I was wondering if there are any good books / resources to get started
you will have fun, @blissful basalt !
Hey guys, i have a question regarding cardinality of sets, can someone help me out?
Say more.
Okay
soo
Definition about cardinality i read, isn't clicking a bit
We say that two sets A and B have the same cardinality if there is a bijection A -> B
right?
but let's say
We have 2 sets A = {0 , 1, 2} B = {100, 3, 19}
do they have the same cardinality?
Yes.
Well, easiest way is to just form one
but what if it doesn't exist?
You would have to prove that it doesn't exist
What if there are 2 sets with the same number of elements, but bijection doesn't exist?
Not possible.
^what he said
so, if 2 sets have the same number of elements
there must exist a function such that it is surejctive and injective?
Between the two, yes
Mhm
thanks guys, love u a lot ❤
you are welcome

happy christmas or merry holiday or whatever i'm supposed to say now
You are welcome.
Hint: geometric sum.
Try harder.
Use this: $\sum\limits_{k=0}^nq^k=\frac{1-q^{n+1}}{1-q}$.
what would q be in this case
1/2
so q will always be everything that is not the thingy below
what do you mean ?
the index
what is "the other formula" ?
first + last * amount of things/2
but either way
i dont understand what happens here
if n = 0
then it means that it becomes -1?
does that mean that n has to be at least 1?
it's not defined for n=0 here
in standard notations at least
anyway, i think you were talking about that formula
$\sum_{k=0}^nk = \frac {n(n+1)}2$
Tuong:
join me in voice chat
@craggy gale so n has to be greater than 0
yes
ty
first one looks wrong
looks okay now
i dont get how many n's they want me to try
like should i always try the 3 lowest n's
like in this case n=1
n=2
n=3
yea but like the first step
they want us to check a few n's
but i dont know how many
0, 1, 2 should be enough if you're asked tro check for a few ns
well not 0 but ye
Why are you tagging us for that
!15m
ya just ban tbh
🤷
If they come back with a genuine question, then cool.
@weary tiger
Math
Let $n \in \mathbb{N}, n\geq 2$, you have $6^n = 6^2 * 6^{n-2}$ right?
emeric75:
what O.o
but 6^2 = 36 = 9*4
so $6^n = 9\cdot(\underbrace{4\cdot 6^{n-2}}_{\in \mathbb{N}\text{ since }n\geq 2})$
emeric75:
yes
6^2 = 36 = 9*4 + 0
thats what i mean
maybe im not understanding you correctly
well here it's a question of proving it for every n >= 2
you wanna list all the cases?
yes i want to show right side = left side
i wrote right and left wrong
lol
left side = right side
that's what i just did 
but your way
is advanced way
like
this is how we do these thingys
i just wrote random numbers
Hey
6 = 3 x 2 and 9 = 3 × 3
6^n = 3^n × 2^n
So if n is greater than equal to 2, then 9 divides 6^n
@rocky girder is it clear?
i
j
k, what's going on?
@rocky girder
Do you understand how
6ⁿ = 9(4×6ⁿ¯²)
no
Discrete math is basically math with clearly separated numbers, it is widely used in computer science
Cryptography.
It's the opposite of continuous math/calculus, where you operate with infinitesimals
When using sums, the math is discrete, when using integrals the math is continuous/calculus
Partially true.
Hmm you are thinking of finite mathematics @somber ember
Discrete mathematics usually entails a lot more then just that
This is how I've been explained what discrete math is, so now I'm kind of unsure
"Discrete mathematics is the study of mathematical structures that are fundamentally discrete rather than continuous. In contrast to real numbers that have the property of varying "smoothly", the objects studied in discrete mathematics – such as integers, graphs, and statements in logic[1] – do not vary smoothly in this way, but have distinct, separated values."
This was the first lines on the Wikipedia page on Discrete math
what's the minimum amount vertices needed such that you can ALWAYS find at least 1 subset of 5 vertices that form a complete graph, or are completely disconnected
@pale berry hey emp
The answer would be 1 + whatever the maximum graph size where such a subset cannot be found
So I would guess 17 = (5-1)^2+1
Where an example of a maximal graph at 16 would be 4 fully connected 4 graphs
hiya
@quick karma The minimal amount of vertices you need to satisfy the above, but for subsets of 4 vertices is 18 vertices
Huh, I'm missing something

Is my first statement correct? That I'm least sure of
No it has to be
What's your thinking?
I can rephrase it
we're looking for a graph, where we can always find subgraph of 5 vertices, that is either complete, or whose complement is complete
Yeah I think I understand
The proof that we need at least 6 to always find a complete subgraph of 3 is:
Suppose a vertex a is adjacent to at least 3 vertices, b, c and d
b can't be connected to c, as that'd mean we'd have complete graph of degree 3 (a,b,c) WTLOG
So b is not adjacent to c and c is not adjacent to d
That leaves one more relation, b and d
And C5 shows that in fact it's the minimum. Right
C5?
🤔
that you can find a counter example in a graph of degree 5 indeed shows that 6 is minimal
Because we have to ALWAYS be able to find this 3 way relation
Yh
An introduction to a beautiful area of combinatorics. More videos at www.youtube.com\randellheyman
Puts it in laymans terms
But I'm strugling to think of an example for with 17 vertices for n=4
It looks deceiptfully easy
Ahah you little bastard
uwu
So have you got an answer? 😁
What would the sum of 2^k * (n choose k) for k=0 to n be?
im having trouble with solving these and i cant really find anything online that explains it very well
@pale berry hint: $(1+2)^n$
EpicGuy4227:
@dapper rose hmmm neat
Can someone give a logical expression with variables p, q, and r that is true if p and q are false and r is true and is otherwise false.
The solution shows (not p and not q and r)
i'm trying to figure out how they arrived at this answer, thanks for the help
"p is false" is not p
^
cool!
@sour flax Hi 😃 It'd be preferable to write down your thoughts on the question and what you tried, as I doubt anyone would do the homework in your stead.
Well @weary tiger I did the question successfully!
@sour flax Great!
Hi guys, preparing for my exam right now but I can't figure out this one simple proof.
Proof by induction that $n^3 \leq 2^n$ for $n \geq 10$.
I have proven the base case for $n=10$, but I'm stuck near the beginning of my induction step.
Assume $k^3 \leq 2^k$ holds true for a $k \geq 10$. Then, $2^k \cdot 2 \geq 2k^3$. From this, $2^{k+1} \geq 2k^3$.
But honestly I'm stuck there 'cause I just can't figure out what to do or where to even look. Other proofs have seemed to work but idk, seems like my head just crashed.
shit accidentally pressed enter, hold up
James:
You need to expand k^3 and then show that the lower terms aren't greater than k^3
I'm retart
You need to expand (k+1)^3 then ... k^3
what is the negation of n^2>=n^4 n>0
and can the negation be proven with math. induction?
Yes should be true, thx. Where can I find negation rules for the signs
im puzzled why >= beco ms <
They're opposites, in a sense. They have no numbers in common, but each covers all numbers, if that makes any sense
@sour arrow @weary tiger actually the negation is n^2 < n^4 for some n > 0
i.e 1 is not possible
So the negation is true
Because 2^2 < 2^4
Which is exactly the same as saying that the original statement is false
I just dont get why negation of >= is <
wouldnt it be <= rather?
why does equal go away
A<=B is the same as saying A<B or A=B
There's this thing called trichotomy where exactly one of A<B, A=B or A>B holds
So the negation of A<=B is "neither A<B nor A=B"
Which by trichotomy gives us that A>B since the other two cases are ruled out
To be clear, the negation of a statement is a statement that is true exactly when the original is false and vice versa
But A<=B and A>=B can be true at the same time
(When A=B)
So they can't be negations of each other
@weary tiger
say F1 = a'c'd' + a'bd + acd' and F2 =a'b'c'd' + a'bc'd + a'bcd' + acd
both are simplified boolean function. Is there a way to simplify them both knowing that they will be on the same circuit board? My goal is to simplify the used Gates/IC in a breadboard.
would anyone know how to find the return value for this?
my understanding is that it might have something to do with logs/exponents
but i'm not sure how to get there
log((4n)^2)^2/4 maybe?
would that be a valid 'return value'
@wanton sable assuming log base 2 and you're rounding down, yes, assuming integer division so that 3/2 = 1, for example.
Well may want to be a little careful with i * i / 4 if it equals i * (i / 4) instead of (i * i) / 4
i'm not really sure with the question notation though
is keeping it in the equation format I had okay?
idk
Why cant x be a subset of C when x is an element of A?
What are C and A?
they are not related at all, excluding than from being a part of a total called U
meaning total U = A+B+C
makes sense?
it can\
For example, $A = {\varnothing}$, $B$ and $C$ are whatever
Xaositect:
x is an element of U
that's all info
so x is an element of A and B, but not C. IT is also an element of U
but x is not a proper subset of B here
why?
x isn't a set
You could define a set that contains only x, then that WOULD be a proper subset of B. But that isn't x
But is it so that a set can't be an element of and a propser subset of at the same time?
Careful with your terminology. x is not a set
Disregard that VENN diagram for a second
well
what does an element consist of?
If we say that x is an element of C
and if z is a proper subset of A
z is (2, 4) and A (2 ,4 , 10)
then z is proper subset of A, correct?
Yes. Every element of z is also an element of A
whats the difference between the notations "element of" and "proper subset" then?
A set contains elements.
Let A be a subset of B if every element of A can be found in B
Proper if A ≠ B
Note that subsets are sets. Elements are the things contained in your sets
For example, let $A = {2, 3, 4}$.\
$2$ is an element of $A$, and ${2}$ and ${2, 4}$ are subsets of $A$ (there are 8 subsets in total).\
There is a difference between $2$ (an element) and ${ 2 }$ (a one-element set).
Xaositect:
Hey guys! Can someone help me with step 2 in this question? ( p => p + 1 )
tfw using "not greater than or equal to" instead of "less than"
$$2^{n+1}\cdot(n+1)<2^{n+1}\cdot(3n/2)=3\cdot2^n\cdot n$$
Simple_Art:
"!" mean factorial
exactly
its step 2 that i dont understand
i have i answe but i dont under stand it?
!*
Oh no, I meant that my teacher gave us an answer to this question but it was fucked up!
Look at what i selected he assumed that ( 2 ^p )* 2! is 3^p
$2^{n+1}(n+1)!=2(n+1)2^nn!\geq2(n+1)3^n\geq3^{n+1}$.
Is this correct? "If cardinality of A is 0, then A is a null set".
Well how do you define the null set?
It's an empty set, right?
They're the same thing
Yes.
Unless you do measure theory
Hm... not my case.
But yeah it's correct
Oh, great. Thanks! 
Hi would someone explain to me about how i should go about doing this? the only information i know is that the symbol over there means 'phi
(a) Construct a truth table for ϕ```
you would have columns for P1, P2, not P2, P0
then for P1 implies P2 and P2 implies P1
and the implications together to get the bidirectional
then negate that
then do a column for not P2 disjunct P0
then a column for the conjunction of the bidirectional and the disjunction
@weary tiger so would P1 be like p and P2 be like q respectively?
and P0 would be like r
This is false since the sum of all degrees of all vertrices in a graph is 2E(edges)
So the sum has to be even not add as the P statement is
Do I have right?
pretty sure that's false.
And Q who knows
hold up
Maybe they meant Q to be "an arbitrary graph is a tree"
oops 😦 didn't catch something. Yeah it's true.
If P is always false, the whole statement is true.
you can just memorize it or ... the way I was told was ... P --> Q is a promise. If P never happens, then the promise wasn't broken.
example: "If one day pigs fly, I'll be happy to buy you a steak dinner."
That works too.
but in this case P is false
If P is false. you're looking at the last two rows. And for both p -> q is true.
Yeah I know, ty
yar. yw.
I've got another question about induction proof
So in this proof, there's an error
I don't know how to do induction proof when it comes to relation
Can someone let me know what the error is in the proof ?
Okay let me try to find it, give me some minutes
If a= 0, then a|b means that b = a · k = 0 so then we also have b= 0.
is it that part?
where B can't be 0 for sure
?
No :)
You gotta struggle
Its a very blatant one
If you dont see it go again
More carefully
Reading proofs is an important skill
No
Thats what the second part proves
Maybe try to find a counterexample for the claim
So you have an idea of where the mistake must be
Z is all the negative numbers, and when dividing 2 negatives it gives u a positive?
we can't assume a = 0 when it's on Z we are doing the proof for
there is no division 🤔
I think what salmon said is misleading, or maybe there is mismatch grammar
but ya try to find a counter example
does there exist two integers a,b in Z
such that a|b and b|a
AND
a≠b
first, what is | ?


Nope if that's the case b divides a, but a don't divide b
My hint will be on the identity of k1 and k2
When they talked k1 and k2 are 1. Think from thus sentence and see is that the onpy option for both values k
so k1 and k2 can be -1
So what that said about a and b
And thus u can find the counterexample of what woog said
a≠b since k1 and k2 can be 1, -1
Thanks
also it says the same proof will work if we change the statement a bit
is that by changing a= b to a≠b
I would say a = -b or b = -a would be more better than a not equal to b
what is \models sign for
how do I find a test for the existence of a Hamiltonian Cycle in any reflexive, symmetric graph?
exhaustive search, it's NP-complete
... how stupid
when you think you're getting close and then find out it's NP-complete
Since 10a-9b=1 by Bézout's identity, a and b are coprime. By Euclid's lemma a divides c.
Thus true.
@cursive flame ?
I don't got the correct answer, but you probably have right
Can you explain the identity, euclids lemma?
t!wiki Euclid's lemma.
Okay I understand euclids lemma, basically if a prime divides 2 integers, then the prime divides first one and prime divides second one
but how did you know that a and b are coprime?
Use Bézout's identity plus 10 and 9 are coprime.
Alright let me read about Bézout's identity
okay okay, so by knowing that 9 and 11 are 2 coprimes and throyugh bezouts identity it gives us 1, that means gcd(a,b) is also 1 and then we know that a divides b
and eculids lemma says that if a prime divides 2 ints bc in this case they will be divisble as well
Alright thank you so much. I've got another question if you don't bother
Go ahead.
it says For all non-empty sets A,B, C we have always..
How do you approach these kind of questions?
I know that you should do (x,y) x ∈ A and so on
but that equation seems very long and hard to do it on
I don't know where to start
$\forall(c, b)\in C\times B, (c, b)\in B\times A \iff c\in B\land b\in A$.
Fix one element like c in C then for all b in B, the couple is in BxA thus all b are in A. Then do the same for c with b fixed.
What do you mean by fix one element like c in C
$U\times V\subset X\times Y\iff U\subset X\land V\subset Y$.
If you use that then you have proved it.
Alright let me try
C × B ⊆ B × A <=> C -> B $\subset$ B -> A
kanavibes:
Yes.
But i dont understand it
cuz then i write a truth table i dont get the write answear
Right*
??
$C\times B\subset B\times A\iff (C\subset B\land B\subset A)$.
$C\times B\subseteq B\times A\iff (C\rightarrow B\land B\rightarrow A)$.
kanavibes:
@verbal furnace
And ?
is this how to rewrite the left side?
What is the arrow ?
arrow is $\subseteq$
kanavibes:
guys, how do i do this q when there's a negative
i know how to with positive, but i tried applying the same general formula and got the wrong answer
(changing it to 162 x + (-78y)=12)
im talking about this formula
What's your first solution? @weary tiger
I have a question about the Gentzen System that i posted in questions alpha if anyone can help me I'd appreciate it^^
Also it seems very difficult to find online resources for the topic, maybe it has another name..?
{1 ,3 } ⊆ {1,3{1,2} this is true right
Any tips or tricks on how to use Kuratowski's theorem for graphs?
Hey guys, does someone know how to solve this question?
@sudden knot
I need help with the question above...
okay
too much maths help can lead to dependence, like alcohol its arguably helpful in moderate amounts but in large doses it can be quite harmful
if you ask about every question then when it comes to a test you wont be able to get by without someone to guide you through it
not that theres anything wrong with asking that specific question, but you've been asking about a lot in the past couple days
so I think its worth mentioning
we need this in #❓how-to-get-help #rules 👏🏽 👏🏽 👏🏽
n different letters form n! permutations
how do wr prove this
i know induction is one way
how else can we do this
what are other ways
@narrow escarp define permutation
number of arrangements
to me, such a proof would be either induction, or by definition
this depends on the definition
what about number of bijections from a set of n elements to itself
that's a pretty good definition to me
then again sb asks u to prove that bijection onto itself is n!
i don't see how u can say n! is the definition
induction makes sense, i was just wondering if there were other tricks
there probably are, but they're probably roundabout
induction seems the most natural
An argument could be made that n! is defined inductively, and as a result any proof would need an inductive step.
Of course you could always find an alternate definition, or maybe something else clever to avoid it, but something like that would probably be quite complicated
oh nice, that sounds like very logical tbh
Is this true or false?:
"lcm(a,b) = ab/gcd(a,b) then this is also true lcm(ax,bx)= x^2lcm(a,b)"
I came to the conclusion false, after doing some test with random ints
also the a,b are positive integers
Can someone confirm that this is false
$$\text{lcm}(ax,bx) = \frac{ax\times bx}{\gcd(ax,bx)} = \frac{x^2ab}{x\gcd(a,b)} = x\frac{ab}{\gcd(a,b)}$$
emeric75:
Can you solve this problem in the same manner as the answer given https://math.stackexchange.com/questions/553690/expected-number-of-steps-in-a-random-walk-with-a-boundary if instead of tails meaning take a step down, it means take two steps down?
I think the recurrence relation becomes $$p_n-p_{n-2}=p_{n-2}-p_{n-3}-2$$, but then I don't get the nice telescoping like it does if you only step down one stair, so I'm not sure what to do.
I don't think this is correct, but if instead the recurrence is $$p_n-p_{n-1}=p_{n-1}-p_{n-3}-2$$ then get the answer if I did it correctly 7N^2-3N+2
nice_prax:
Compile Error! Click the
reaction for details. (You may edit your message)
quick statement about this problem is that with two steps down/one step up
it will grow exponentially with N
have to sleep soon so cant give a full answer
but keep in mind n+1 is further down
so n+2 is what you should be using instead of n-2
im also not sure why you chose n-3, since I didnt think your version involved a change to the upward direction
the modification also changes the problem less than you are thinking
ill also say I personally find this problem fascinating for some specific reasons
If I remember correctly, you are guaranteed to get an even number for any choice of number of steps, and any number you choose for steps to go back, as long as you choose to go forward by 1 at a time.
Never worked out if it's always even if you can go more than one step forward and a time.
@light path I start with $$p_n=(p_{n-1}+p_{n+2})/2+1$$, and that can be rewritten as $$p_{n+2}-p_n == p_n - p_{n-1} - 2$$ and if you subtract 2 from all of the ns you get $$p_n-p_{n-1}=p_{n-1}-p_{n-3}-2$$
nice_prax:
But then I can't take the equations to the base case by substituting the right side of the equation into the left repeatedly, like in that stack overflow where you can bring $$p_n - p_{n-1} = p_1 - p_0 - 2(n - 1)$$
nice_prax:
It's also unclear to me what the base case $$p_k$$ is, because both $$p_k$$ and $$p_{k-1}$$ are special cases. The case $$p_k$$ is the same as the 1-step-down problem, and it gives us that $$p_N - p_{N-1} = 2$$, which lets us solve the equation $$pn - p{n-1} = p_1 - p_0 - 2(n - 1)$$. But there's also another special case $$p_{k-1} = (1/2)(p_k + p_{k-2})+1$$ that is different from the other cases, does that screw up the recursion?
nice_prax:
Apologies for my inability to use latex
Been stuck on this for over a day now. The proof statement is wrong it should be a_n <= 2^(n!)
Have already asked this 2 times here but to no avail so sorry for spamming this will be the last time
@sick lagoon i think your problem is wrong
i've seen this problem before (in engel?) and it uses backward induction
where you suppose $$a_n\geq 2^{n!}$$ for some $$n$$ and prove that $$a_k\geq 2^{k!}$$ for $$1\leq k\leq n$$ - by supposing that the assumption is proved for $$m+1\leq k\leq n$$ and proving it for $$m$$
Jazza:
woah this isnt mathbot
@pearl basin so tbh the way that I solved both of these problems is different than what is used in the stack exchange post. Since it was late I didn't have time to think about whether the approach used in the stack exchange post would cause problems, but it looks like it does.
The way I used involved labeling the bottom step as step 0, and the step above it 1 etc. I then assign each step a number, call it q_n, so that with each coin flip, the expected value of q_n of the step you are on increases by 1.
For the original problem this gives you $q_n = \frac{q_{n+1}+q_{n-1}}{2} - 1$
ixsetf:
So instead of a boundary condition you have a base case
For the sake of getting good results, I'm choosing $q_0=0$.
ixsetf:
Well actually you do get a boundary condition for $q_1$, because you can't go below the bottom step, so $q_0=\frac{q_0+q_1}{2}-1$, thus $0=\frac{q_1}{2}-1$, thus $1=\frac{q_1}{2}$, this $q_1=2$.
ixsetf:
before calculating the rest, we'll solve for $q_{n+1}$:
$q_n=\frac{q_{n-1}+q_{n+1}}{2}-1$,
$q_n+1=\frac{q_{n-1}+q_{n+1}}{2}$,
$2(q_n+1)=q_{n-1}+q_{n+1}$
$q_{n+1}=2q_n-q_{n-1}+2$, and by shifting $n$ by 1
$q_n=2q_{n-1}-q_{n-2}+2$
ixsetf:
thus we have:
$q_2 = 2q_1-q_0+2=2(2)-0+2=6$
$q_3 = 2q_2-q_1+2=2(6)-2+2=12$
ixsetf:
note that $q_0 = 0^2+0$, $q_1 = 1^2+1$, $q_2 = 2^2+2$, $q_3 = 3^2+3$
ixsetf:
So note that if for $k < n$, $q_k = k^2+k$, then $q_n = 2q_{n-1}-q_{n-2}+2 = 2((n-1)^2+(n-1))-((n-2)^2+(n-2))+2 = 2(n^2-2n+1+n-1) - (n^2-4n+4+n-2) + 2 = 2(n^2-n)-n^2+4n-4-n+2+2 = 2n^2-2n-n^2+4n-4-n+2+2=n^2+n$
ixsetf:
This means that $q_n$ is the same as $p_N$ in the original answer, and thus gives the expected value of number of coin flips to reach the $n$th stair.
ixsetf:
I have an exam later today so I don't want to spend the time to prove that this isn't a chance occurrence, but the idea is that because for each coin flip the expected value of $q_n$ increases by 1, for any given trial, the expected value of $q_n$ after $k$ flips is $k$, and so you can work out the expected number of coin flips to reach stair $N$ in reverse using the expected value of $q_n$, which is always $q_N$.
ixsetf:
This idea can be applied without much change to the case with one up two down.
More context.
Mathematical context, it's still not enough (direct sum of what ?).
thats all it is
the chapter, is set operations
these are the sets C = {a,b,y,z} , D = {a, c, k, l, x}
That's not really a standard operation
k, what if i have Simga = {a,b}
and i have to find Power set (Sigma)
do i put the empty string?
is it = { λ, {a}, {b}, {a.b}, {b,a}}
or u dont put empty string?
What do strings have to do with set theory?
I think what you're trying to say is empty set ∅ or {}
oh so the power set(sigma) has 4 subsets?
cuz 2^n?
2^2
so is {{a}, {b}, {a.b}, {b,a}}
And 𝒫({a, b}) = {{}, {a}, {b}, {a, b}} because sets don't care about the order you put things in.
oh, i thought empty set was when u only have numbers
Is anyone here
@light path Thanks! I did it and the equation seems to be the disgusting -(2 z)/((-1 + z)^2 (-1 + z + z^2))
Are you sure thats right? something about that looks a bit off to me.
primarily the function would tend toward 0 as z tends to infinity
that would be correct, this is nonsense
I get the sequence 0 ,2 ,6 ,14 ,28 ,52 ,92 ,158 ,266 ,442 ,728 ,1192 ,1944 ,3162 ,5134 ,8326 ,13492 ,21852 ,35380 ,57270 ,92690 ,150002 ,242736 ,392784 ,635568 ,1028402 ,1664022 ,2692478 ,4356556 ,7049092 ,11405708 ,18454862 ,29860634 ,48315562 ,78176264 ,126491896 ,204668232 ,331160202 ,535828510
that looks about right to me tbh
I can confirm the first 4 are right
the formula you sent me looks different than the sequence
how did you calculate it?
I plugged it into WolframAlpha and that's what it said
I don't know anything about generating functions unfortunately, and this sequence isn't anything I recognize, so I think I have hit the end
how did you get that out of wolfram?
if you want I can also give you a specific method you can use to calculate terms in that sequence
I got the sequence with a python script
ah nice
def f(n):
if (n==0):
return 0
else:
x = max(n-3, 0)
return (2*f(n-1)-f(x)+2)
for i in range(40):
print(f(i),",",end='',flush=True)
BRB class
ok gl
q∨(p∧¬q)∨¬p≡(q∨p)∧(¬q∨¬p) do you guys know what law is being applied here?
or laws*
im not sure how they changed the (p∧¬q) to an or statement
how do you guys remember all the laws anyway? do you just keep practicing or have another tip
Anyone good at sets mind helping me out at "questions-n" ?
Can someone help me with this question
Wow nice handwriting
Lol
How do i find the image of a piecewise function?
The images of each piece
Im confused on wat it means by the image
Same thing as the range, if you know what that is
Like, how does interval notation work?
Yes, you can write it in interval notation. Maybe want to throw it up? Use it as an example?
so i can just write it like that?
Ya is real numbers
That's the codomain, not the image
codomain is real numbers?
can anynone explain how cifras work, julio cesar, english and portuguese?
I have no idea what that question means
maybe "can anyone explain how ciphers work, julius cesar (referring to the cesar cipher probably?), english and portuguese" ¯_(ツ)_/¯
Hey guys, so i was learning summations, and i came across a proof that i can't quite understand
Can you someone help me clarify it?
@stable chasm, which part don't you understand?
first, why do we multiply it by r?
And also, one more question
Here, in the definition, why did they write |x| < 1, and not x=0 ?
@somber ermine, Caesar cipher is the simplest encryption. It simply shifts the alphabets some numbers down the alphabet list either to the left or right. So, if you choose a shift of 3 to the right, A becomes D, B becomes E, ...., Z becomes C. So, under Caesar cipher, "hey" is encrypted as "khb" with a shift of 3 to the right.
@cedar stone ?
It's just algebraic manipulation during the proof to get what you want. As long as it is valid, you can do that. Similar idea to how you would add construction lines in geometric proofs.
Well, if you can write a statement in an alternate equivalent form and it will help you prove it, why not? 😅
Oh, so you're saying it's just a guess "let me try if it works" ?
Some proofs are not straight forward like that.
You will see them yourselves after you see more proofs.
but when he gets to the "removing k = n + 1 term and adding k = 0 term"
but yeah when you're not used to it 😄
Ah, it's a nice trick too.
In this section we will formally define an infinite series. We will also give many of the basic facts, properties and ways we can use to manipulate a series. We will also briefly discuss how to determine if an infinite series will converge or diverge (a more in depth discus...
why does he subtract "a" here?
I know about index shift
but the screenshot i sent u is not clear to me
isn't the last term just ar^n+1 ?
why -a ?
$$\sum_{k=1}^{n+1}ar^k = -a+a+\left(\sum_{k=1}^{n+1}ar^k\right)$$
emeric75:
you're reincorporating the k=0 term into the sum
(ar^0 = a)
so
$$\sum_{k=1}^{n+1}ar^k = -a+\left(\sum_{\mathbf{k=0}}^{n+1}ar^k\right)$$
emeric75:
^^^
In that step, you are adding k = 0 term to summation and removing k = n + 1 term from summation. To keep the statement remains the same, you add their negations.
aghhh i feel so frustrated 😢
honestly it's just a cheap trick
it's literally adding 0
(but adding 0 in a way which allows us to rewrite our sum)
Since for k = 0, you have a and for k = n + 1, you have ar^(n + 1), when you add k = 0 term to summation, you remove a using -a and when you remove k = n - 1 term from summation, you add ar^(n + 1) so that it doesn't change to original statement.
okay
thanx a lot guys
yeah
emeric75:
this notation hides a limit
$$\sum_{k=0}^{+\infty}x^k := \lim_{n\to + \infty} \sum_{k=0}^n x^k$$
emeric75:
just the limit of the partial sums as n approaches infinity basically
so now we can use the formula we just showed to start evaluating the limit
$$\sum_{k=0}^{+\infty}x^k = \lim_{n\to + \infty} \frac{x^{n+1}-1}{r-1}$$
emeric75:
(assuming r different from 1 ofc)
if r=1, it clearly diverges (from 2nd part of the formula)
so now the fact that the expression diverges or not depends only on that x^(n+1) term
for $x \leq 1$ you can show that $\lim_{n\to\infty}x^n$ doesn't exist
emeric75:
and for $x>1$ you can show that $\lim_{n\to\infty}x^n = +\infty$
emeric75:
(ie for those two cases the limit diverges)
but for $|x|<1$, $\lim_{n\to\infty} x^n = 0$
emeric75:
intuitively that limit seems pretty obvious, if you multiply a number less than 1 by itself a lot of times, it will become very very close to 0
yes
ie, |x|<1 is the only case for which the infinite sum converges
but how is |x| < 1, and x = 0 different?
isn't 0 the only value for x such that |x| < 1 ?
(x is a real number)
^^^
(yeah they should have said that)
in calculus, unless otherwise noted, they r talking about real number unless u r doing complex analysis.
👌
In Number Theory, unless otherwise noted, they are talking about non-negative integers.
oh, thank you a lot
@opal crescent dude, how is -3 mod 10 = 7 ?
7=10x1-3
For a mod c, where a < 0, the answer is a + kc, where k is in the naturtal set and a + kc is like the minimum greater than 0. Which essentially means, you add c to a, until it's greater than 0. In your case, a is -3, c is 10, and k would be 1.
one other viewpoint is that 7+3=0 (mod 10) so just like in our usual numbers we label 7 as -3
numbers by a difference of n under mod n are equal by that mod
7 - 10 = -3
mod(7,10) = mod(-3,10)
any can explain the functions sigma and tao?
in what context?
i dunno, teacher didnt gave examples
well those letters denote a lot of different things in math so without knowing the context no one can help
nr of divisors of 1 number and some of divisres of 1 number i guess
how to use them
well you'd just apply them ig? I don't think i get what you mean
there are many theorems by the chinese. which one?
most likely means CRT
is it bipartite matching
wiki has an article
In graph theory, a branch of mathematics and computer science, the Chinese postman problem (CPP), postman tour or route inspection problem is to find a shortest closed path or circuit that visits every edge of an (connected) undirected graph. When the graph has an Eulerian c...
i would like an example but i cant find any
?
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
if I had a set of {a,b,c,d,e,f,g} and I wanted to know how many permutations are there that contain {b,g,e} in that order how do i calculate that?
do they have to be next to each other?
oof
treat {b,g,e} as a single element then
hello i need help with discrete math
the question is:
look for positive integers that are not the sum of the cubes of nine different positive integers
Not clear, there are 2, 3, 4, 5, 6, 7, 10, ... (not 1, 8, 9, ...)
oh hey we meet again :>
but i think the teacher told us to code a program out of it
so.. uhh..
Hello again, did you change your nickname ?
it was me! the guy who needed help with lstms
can i have more examples?
You can generate some of them by hand like 1, 8, 1+8, 27, 27+1, 27+8, 27+8+1, ...
so
1, 8, 9, 27 are "sum of the cubes of nine different positive integers"?
im not good with english you see
The small ones are good.
I mean, the smallest number which is a sum of 9 distinct positive cubes is $1^3+2^3+\ldots +9^3$
Gonzo17:
Unless you meant sum of up to 9 cubes
No, that's just the smallest one
ahh i see
$1^3+2^3+4^3+5^3+6^3+7^3+9^3+11^3+1019^3$ is also a sum of 9 cubes
Gonzo17:
wellp
looks like i have to find a way to turn this into code
i have another question
look for positive integers greater than 79 that are not the sum of the fourth powers of 18 positive integers
sooo
$1^4+2^4+\ldots+18^4$
kinda like that?
Pana:
Then I can write it as sum of repetitive 1^4 (or others).
yep
@verbal furnace i tried doing a pseudocode
but i'd like to see how you would code it
Try the code, no pseudo (you can't test).
this is a fail im sure
im just using a calculator to do my math
and i have no idea what im doing
im so not done
If $n=\sum_{k=1}^ma_k^3$ with $a_k<a_{k+1}$.
What is the smallest candidate ?
2025
Yes.
#include <stdio.h>
#include <stdbool.h>
#include <math.h>
bool isTrue(int remaining, int lastnum, int pos){
if(pos == 9 || remaining < 0){
return false;
}
else if(pos == 8 && remaining == 0){
return true;
}
else{
for(int i = lastnum; i >= 9-(pos+1); i--){
if(isTrue(remaining-pow(lastnum,3), i-1, pos+1)){
return true;
}
}
}
}
bool startCheck(int remaining){
for(int i = cbrt(remaining); i >= 9; i--){
if(isTrue(remaining-pow(i,3), i-1, 0)){
return true;
}
}
return false;
}
int main()
{
for(int i = 1; i < 10000; i++){
if(startCheck(i)){
printf("%d, ", i);
}
}
return 0;
}
@verbal furnace heh
but im not doing that 2nd one
i wanna sleep
its 11:32pm
The language C doesn't have the type bool.
#include <stdio.h>
#include <stdlib.h>
int check(int n, int d, int level)
{
int d3 = d * d * d, r;
if(n == d3 && level <= 0)
return 0;
if(n <= d3)
return -1; // false
n -= d3;
d++;
while(d <= n) {
r = check(n, d, level - 1);
if(r == 0)
return 0;
else if(r < 0)
break;
d++;
}
return 1;
}
int main(int argc, char *argv[])
{
int n = atoi(argv[1]);
if(check(n, 0, 9))
printf("Valid\n");
else
printf("Not valid\n");
return 0;
}
```.
There is still room to improve the quality.
yeet
solid resource to start learning: https://trevtutor.com/discretemath/
Does simplifying a proposition need to follow order of operations?
Asking to shut a friend up
@steady axle
No such thing as order of operations at that level. There are axioms and rules that show how algebraic simplification is done

