#discrete-math
1 messages · Page 130 of 1
but beyond that I've been reading that calculus and discrete maths doesn't really overlap
well it depends on the concept, there are many concepts in discrete mathematics which can be formally proven and defined using concepts in often taught in calculus
Anyone know whether or not this is true?
$$\left(1-x\right)^{-n}=\sum _{k=0}^{\infty }x^k\binom{n+k-1}{k}$$
nvm got it
Hey guys
Is it possible if someone can check my work
Just wanna know if it's right
it's not
just because 4 R 4 does not mean x R x for all x.
and in fact, there is a counterexample to x R x
Please explain sorry I'm new to this
What do u mean? For all x?
Would 5 R 5 be a counter example?
And how would I format it properly?
"5 R 5 is false, because 5 + 5 = 10, and 10 is not divisible by 4.
since 5 R 5 is false, the relation R is not reflexive."
you should know by this point that a relation is called reflexive if and only if it satisfies xRx for all x in its domain.
(∀x ∈ X)(xRx), if X is taken as the domain of R.
Ah alright I get it now
For this problem tho
There are multiple cases for transiitive right
Transitive*
wdym
I put it's not transitive for odd numbers or if the x and y are even and not the same number
you need to establish whether it is true that for all x, y, z in N, if x+y is divisible by 4 and y+z is also divisible by 4, then so is x+z
it's not "not transitive for odd numbers"
"transitive" describes the relation as a whole
your answer to "is this relation transitive?" can only be "yes it is transitive" or "no it is not transitive"
Well since it's only transitive when the numbers are even and the same, which would mean x=6 y=6 and z=6 for example lol
no
my point still stands
there are checklists for both of those things
to be an equivalence relation, you need all of the following properties:
- reflexive
- symmetric
- transitive
to be a partial order relation, you need all of the following properties:
- reflexive
- transitive
- antisymmetric
I need help guys
I need to see if there is a tautology in this proposition or not using the laws of equivalence
But I dunno where to start
hmm get rid of the implication
How?
$a \rightarrow b$
deekaan:
$\neg a \lor \ b$
deekaan:
so those two are equivalent
So I will have ~(p ^ q) v (p v q) ?
yes
then you translate the first term in its equivalence
and you're pretty much done
no worries
Ann:
yeah that's what it'd be
That is a tautology iirc
yes
whats in the intersection of A and of complement A?
Where exactly?
second term bro
That's a union I think dude
Ah I see it yeah
that one should be easy
Isn't it A
no
Oh hold up is it no set
yes it's empty
Ah aight
okay that makees things easier
Is the work so far correct?
now substitute A intersects complement of B with X
X??
yes
Never heard of that sorry
you never heard of X
it'll make things easier for your brain
Ah ok
substitution is your friend
Lol
Once thats done you have a term you should know how to deal with X union (A intersect C)
Ye
hello can someone explain how su<tv came up?
All it is saying is that if a, b, c, d are positive, and a < b and c < d, then ac < bd
This is necessary for the next step, where you apply this to sqrt(n) < a & sqrt(n) < b
hrngh
no, i wouldn't say so
"6R8 and 8R12, but 6 R 12"
"therefore R is not transitive"
also i'd change "for example" to "counterexample"
Counter example?
Ah I see
Cuz it's countering the transitive property
Alright
Thank you
I'm reviewing Proofs, and the question looked so similar, but your solution is weird.
We havent gotten to that topic thats why
Thx
Can someone translate this for me? 😮
into what language?
p,q,r,s
how is ~p built to be "at most three of the 22 days fall on the same days of the week"
i thought a negation would be.. "Not"
negation is more like opposite
i just dont undestand how "at most three days" is the opposite of "at least for days"
well
if you know that at least four days sth is wrong
then you know sth is not happening on 4, 5, 6, ... days
so it must happen at most 3 days
so 0, 1, 2 or 3
this is kinda paraphrased, but ...
maybe it is clearer if you first think of a specific day
the opposite of "at least 4 of the 22 days fall on a monday" is "at most 3 days fall on a monday"
because the first is equivalent to "4 or 5 or 6 or ... or 22 of the days fall on a monday"
and if that is not true, then you know that "0 or 1 or 2 or 3 days fall on a monday" must be true
i.e. "at most 3 days fall on a monday"
need some help having a hard time getting how id go about A. Like i know its a combination issue because order doesnt matter but im not sure if its something like C(7,1) + C(9,4) or if theres more to it
Does this show one-to-one correspondence? Meaning one-to-one and onto. I'm not sure if I did it right.
Well, clearly, it's not injective. If n = 3, then 2^3 = 8 but you can have two strings 1011 and 1101 that would be preimages of 8.
ahh ya good point
Indeed, it was a good point.
Well, which one? You've shown that it's not injective. Now, you're trying to prove or disprove the claim that the function is surjective, right?
So, how will you approach it?
could i swap the domain and codomain of the ordered pairs i found, and if f(x)=y then it is onto?
You need to show that $f(S) = \bZ^+$. You already know that $f(S) \subset \bZ^+$. Now, you need to show that $\bZ^+ \subset f(S)$.
Suppose we have an integer that isn't a power of 2. So, something like 3, for example. Then, it's clear that $n$ is not going to be a natural number. We certainly can't find a bit string such that the sum of all the digits in the bit string is $\log_2(3)$. So, this function cannot be surjective.
Abhijeet Vats:
nice good explanation
im not really sure how i showed that it was not injective? Esecially after you mentioned that there is more than one way to arrange the bitstring to get the sum
Well, a function $f:A \to B$ is injective iff $f(x_1) = f(x_2) \implies x_1 = x_2$. In other words, every image must have a unique pre-image.
Abhijeet Vats:
In this case, if 8 is what we're concerned with, then n = 3 is the sum of the digits in the bitstring. However, 1011 and 1101 both yield a sum of 3 when we add their digits together. In other words, 8 has two preimages.
So f(1101) = f(1011) = 8 but 1101 =/ 1011
Yeap, that proves that it is neither injective nor surjective.
yeah, nice i think i got the neccessary explaination in order to do it thank you
You're welcome.
can i ask what chapter is that
My method of iteration, that I am emulating from my notes is not working
Would it be possible to get help on how to find an explicit formula?
$a_1 = 3a_0 - 5$
$a_2 = 3a_1-5 = 3^2a_0 - 5 \cdot 3 -5$
$a_3 = 3a_2-5 = 3^3a_0 - 5 \cdot 3^2 - 5 \cdot 3 - 5$
So, looking at the pattern that's developing, it stands to reason that:
$a_n = 3^n - 5(3^{n-1}+3^{n-2}+\ldots+1)$
Abhijeet Vats:
Now, simplify that by recognizing that the there is a geometric series in there
And use that to find a_10
@sacred furnace
Let me know if you have any other difficulties
Thanks again Abhijeet, I am having trouble finding the common ratio. I know to find it you can divide a_2/a_1. But this ratio does not hold for the sequence
No, there isn't a common ratio in the terms of this sequence.
However, there is a geometric series in the general term $a_n$
Abhijeet Vats:
Can you see it?
$-5(3)^{n}$
chrondo:
Nope. It's $3^{n-1}+3^{n-2}+\ldots+1$. That's your geometric series in the general term.
Abhijeet Vats:
Where a_1 =1 and r=3^(n-1) ?
Wut
Well a geometric series is a_1(r)^(n+1) ?
No
Actually I guess r might be 1/3
A geometric sequence has the following form:
$a,ar,ar^2,ar^3,\ldots$
A geometric series is, then, either a finite or infinite sum:
$a+ar+ar^2+ar^3+\ldots$
Abhijeet Vats:
You don't have to guess
This isn't something that requires a guess
@sacred furnace Do you understand the pattern developing above?
All until a_n
So you're not sure how I got a_n?
Well when I try to plug in a_4 for example.into a_n, I get -59
But a_4 should be -119
So I'm about -60 off
You made a calculation mistake in using the formula above
Try calculating it again when n = 4
Nope
See, the geometric series we want to get a general formula for is this:
$$S_n = \sum_{k=0}^{n-1} 3^k$$
Abhijeet Vats:
What you've written is just a few terms from that series
$a_n = 3^n - 5$\sum{k=0}^{n-1} 3^k$$
chrondo:
Compile Error! Click the
reaction for details. (You may edit your message)
Wow, why does that look like it was written by a 5 year old
But yea, it looks correct 🙂
I kinda scratched it out
But ya, ok, that took awhile, but thanks for your patience
You're welcome.
What would be the best algorithm for 'dividing equally a cake' between 3 people? Obviously im assuming the cake is not the same on any one third of it, players having preferences. Let me clear it up on 2 player game, where best algorithm is that one player divides the cake into 2 equal halves from his point of view and the 2nd one picks one of the two he prefers. I found a 3 player one but I think there would be faster one
Oh lol so thats a thing ok
Yeah I found 6 cuts and the best one seems to be 5
@neon thorn what you can do is find their gcd and divide that out one of the moduli
If not coprime, existence is not guaranteed, consider 2 mod 4 and 1 mod 2
gcd of 2, 4
the gcd is 2
because they would be independent
anything one modulus claims has no bearing on what it is in the other modulus
it can lead to no solutions, yes
Yes
But when your moduli aren't coprime and you do have a solution, you again have a unique solution
Since for example, the system
x = 0 (mod 2) and x = 0 (mod 4)
Has the exact same solutions as x = 0 (mod 4)
yes
oh, right, how would have solved it?
4 couples (8 people), and making sure each couple is together, I want to place them in a line.
Yep
Well, 4
So I assumed (4)!
Right, but if you did that
The other couples wouldnt be able to
Be next to each other.
Yeah, tho the one that was confusing me was figuring out all the situations where "no couple" is sitting next to each other.
Yeah I guess.
I'll give it a go
Hmm still not sure how to do it so none of the 4 couples are sitting next to each other.
So here's my thinking:
I have 8 people/4 couples: A,a,B,b,C,c,D,d
At first I have 8 choices
A _ _ _ _ _ _ _
But now, I only have 6 choices since a cannot be next to A
So I guess I can put it here:
A _ a _ _ _ _ _
But now if I put B, in between A, I have 5 choices
A B a _ _ _ _ _
But if I put B outside of A, I have 4 choices:
A _ a B _ _ _ _
And I'm not sure how I can account for this.
anyone know a good way of finding the values of 3 unknowns that's constrained between Natural 0-40 ? I've got a formula that combines them into a single value and a set of values I need to decode that generates those values but I'm not sure how it would be done.
So as an example. I want to encode ABC, where A = 1, B = 2, C = 3
I can encode it as:
A + 41 * B + 41^2 * C
= 1 + 41 * 2 + 41^2 * 3
= 5126
but idk how you'd do it in reverse
May someone pls explain this table of predecessors
I usually write it in a different way
so im not sure what this one is trying to say
eh who cares about proper decoding techniques. I'll just brute force it 😄
look at the number mod 41
and that will give you A
mod 41 is looking at the remainder when you divide by 41, or the operator % in C
@runic cedar
@faint narwhal oh that's pretty neat. Thanks
fair. Thanks
does anyone here know table of predecessors and hasse diagrams
i need someone to check my work if its possible
we're all your homies then
can someone tell me how the highlighted part came up
i understand under it is factored but I'm not sure why it's necessary to do this when there already an answer above it
Why do we have to add (k+1)? is that the step after P(k+1)
this is not clear to me?
This is the original question
This is a proof by induction
You show it works for a base case, assume it works for k, then show it works for k+1.
So just above hype first pic you submitted, it should say something like “note: if n=1, we have 1=(1(1+1))/2”
To establish the base case
Huh?
???
Because you aren’t just adding up the first k integers anymore, you’re adding up the first (k+1) integers now
If you look at my blue highlighted pic, you notice I didn’t highlight the (k+1) on either side
yes
For the proof itself we have to do this in general, meaning with variables, but let’s just see what happens if we pick something like k=5
so like p(k) + (k+1)?
That’s exactly it
It should be p(k+1) = p(k) + k+ 1
AH
now this one is a problem
Where did (2k-1) come from? shouldn't it be k?
And I know that odd numbers are (2k+1)
is there a reason why it chooses that vs the regular one
Look at the original statement of the problem. Like, look at the result that's being proved
hey how can i prove that this function is Surjective?
h: N -> 2N
2N represents even natural numbers.
h(n)=2n
by giving a pre-image for every element of $2\mathbb{N}$
Lochverstärker:
no
then that won't do
@neon thorn do you not have precise definition of big o and little o
your understanding of big-oh is wrong
what is a pre-image for even numbers?
do you know what a pre-image is?
i know what a "image" is but im not sure about pre-image
ok, take your function h(n) = 2n
if you plug in 1, you get h(1) = 2
so 1 is the preimage of 2
and 2 is the image of 1
both under the function h
that is the terminology
and what you have to do is take an arbitrary even number
and show that there is a preimage under h
i see.
i.e. that there is a natural number n, such that h(n) = your arbitrary even number
can it be h(2n)?
h(2n)=2(2n) =4n?
and 4n will always be a even number
can i conclude thaT?
no
you have to show that every even number has a preimage
like, 6 is even, but you can't write 6 in the form 4n
so this argument doesnt work for 6
what
h(n)=2n if n is natural number 1,2,3...
h(1)=2, even
h(2)=4, even
h(3)=6, even
etc...
yes, but that is not what you have to show
uhm
ok, so
i have to show that for all image have one pre-image right?
at least one preimage
but yeah, in this case it will even be unique
take your function h
what's the preimage of 128?
128/2?
/2
n/2
no, you don't
2n/2
a natural number
yes
@neon thorn ye, that's somewhat better. ofc you can think more methodically about this, by writing down exact definition of big/little-oh, but i would say that you will find examples pretty fast by just trying
try more "traditional" functions that appear in big oh notation
also, your functions are weird anyway
they are defined in terms of n, which makes no sense
and x! isnt even defined if x is not a natural number
(at least not without some more thought)
hey loch thank you
Hello again
So I have this preposition: (~p ^ (p -> q)) -> ~q
Need to check if there's a tautology or not
But I'm stuck and dunno where to start
Try to find a falsifying assignment of truth values
How do I find that?
Assume that the entire statement is false.
Then, the antecedent is true and not(q) is false. Hence, q is true.
Now, if the antecedent is true, that means that not(p) is true. So, p is false. Now, p is false and q is true. Clearly false implies true is true. You've successfully found an assignment of truth values that cause the statement to be false. It's not a tautology
-.- Make sure you mention such things beforehand
Yeah sorry
Have you attempted to reduce it into a series of equivalences?
hey @pale epoch u know what equipotent is?
@sleek swallow yeah I got it, thx anyway
Aight
Hey guys, sorry if this is a silly question, but can this be classed as Symmetric or not because it has -1 and 1, so I wasn't sure if a negative/positive of the same number counted as a factor. Thanks!
well symmetric means if (a,b) exists so (b,a) as well
-1 and 1 are obviously different elements
I got (1, -1) => (-1, -1)
but it would need to be (1, -1) => (-1, 1) to be symmetric right?
yes
what youre saying is -1 <= 1 therefore -1 <= -1
because the relation is symmetric
it makes no sense
got ya. thank you for your help!
is that topic about relation?
ye
need some help getting around this
I have the following work but Im stuck
This is involving combinations and permutations
deekaan:
now in sexy latex
but look it says $2^k+1 + 2^k+1 $
Yo Mama:
Yo Mama:
deekaan:
$2^{k+1} + 2^{k+1} $
Yo Mama:
oh yes
$2^{k+1} + 2^{k+1} = 2(2^{k +1})$
deekaan:
its like $a + a = 2a$
deekaan:
something like that sure
but now you know the trick and recognize is when it pops up again
deekaan:
and $2* 2^{k} = 2^{k+1} = 2^{4}$
deekaan:
and $2 * 2 * 2^k = 2^{k+2} = 2^5$
deekaan:
Yo Mama:
It's just algebra
See that second term?
That was just put over the same denominator as that of the first term
i just couldnt figure out how the addition in the numerator happened
Have you understood it now?
Alright good.
it cancelled thank you
Yeap
Yo Mama:
what are you even doing
HAHA lmao
you should spend less time on boxing random fractions and more time on writing actual words
i think im solving the problem using math induction
Yo mama, p(k) is not a polynomial. It's a proposition. More specifically, it's the statement that:
$\sum_{k=1}^{n}k^3 = \frac{n^2(n+1)^2}{4}$
ok, i dont see that
Abhijeet Vats:
not bad wouldn't have been able to tell from just looking at it
Also, you think that you're solving it using induction?
at one point you start an equation with =
and at one point you end one with a random =
no no im on mathematical induction
$\sum_{k=1}^{n+1} k = \sum_{k=1}^{n} k + (n + 1)$
deekaan:
you should explain with words what you are doing
maybe then you would notice that you are doing nonsense
is this problem solved by something else?
yes i did the induction, but the bottom is not matching
You're not using induction
You've written some random gibberish that doesn't make sense
try explaining it in words
Oh i have to write the words as well?
math is not a magic spell, where you write down random symbols that make a proof
You've tried to use induction in skeleton of the argument. But write words and explain what you're doing
generally you should explain what you are doing, if you want people to understand you
OH okay okay
a proof is not a string of mathematical symbols
its an argument
it should at least involve a few sentences
let me try again
use my hint!
i def thought that the senteces in my book was just explaining me how the steps are done
Can I also get some help with the problem I posted earlier?
well and now you're trying convince us that the thing youre trying to proof is true
what problem?
lol posted it earlier but i can do it again
One sec while I show what I have so far
from induction to this oof
well lets start with one restriction
all positive integers less than 1000000 with exactly one 9
how many?
right and so because i need the 9 I can subtract that from the sum i need from the numbers which is 13 -9 = 4
so the remaining ints would have to add up to 4
that would be 2+2, 3+1, and 4+0
so i know i have to do the possible combinations for (9,2,2) (9,4) (9,3,1) with the rest of the integers being 0 but I just dont know how to setup the combinations or permutation equations to it
You're forgetting that you could also have 1+1+1+1 or 2+1+1 or 3+1 or 2+2 or 4+0
Do it case by case
Not quite sure if there's an elegant way to do this right off the top of my head
oh man you are right with the 1's
Im sure there is an elegant way to do it because for example the 9 with 4 there would be a ton of combinations if you have to fit it within a 6 digit number
You can build up restrictions on the number of digits. For example, if it was the case that this number had a single 9 in it and had 4 1's, then it has to be at least a 5 digit number. So, you can handle two cases over there
If it had a single 9 and a single 2 and two 1's, then it has to be at least a 4 digit number. So, you can do the calculation like that
cant you just think of 6 slots, fill any one with 9
and fill the others such that the sum is wtv u want
there are x ways to choose digits, position anywhere
fill anything else with 0
but the bottom is hard to fix
yes, this is better
now i can see where you are going wrong
why do you assume p(k) \implies p(k+1), isn't that what you want to prove?
Loch, there aren't just 6 slots. You have to consider 5 digit, 4 digit numbers and so on
what is p(k) = something supposed to mean
you stated that p(k) is a proposition, so how am i supposed to understand this?
Hmmm
the sum below that does not make sense
you are adding popositions to a sum of numbers
I think I will probably schedule and appointment with my prof
yes, but just fill the empty slots with 0s
But loch's point can basically be extended, Red. You can consider the amount for 6 digit numbers, then for 5 digit numbers etc
yo abhijeet
Hallo friend
sorry i figured out the problem thank uu again
ok, my idea is pretty much the same you did
so my wording was wrong
The same who did? Me?
ye
No u
thanks
@whole shard not just your wording is wrong
you also seem to be doing something wrong in the inductive step
huh
but it's hard to tell exactly what and why, if you don't explain your reasoning
oh so including in the inductive steps i need my wording?
you should explain what you do any why
like the equals sign where you wrote IH above, that is good
but you formulated your hypothesis wrong, so im not sure what to make of it
and you used it wrong
you used a lot more than what your hypothesis should be
and like
what is your end result supposed to signify
i want to prove p(k+1) true
you have to prove p(k+1) assuming p(k)
yes, but you didnt
you defined p(n) correctly in your latest pic
so what is p(k+1)?
its not whatever you boxed
Yo Mama:
my equation is wrong?
what equation?
its p(k)+p(k+1)
i cant tell what you are actually working with, because you add 2 propositions to a sum
and the sum has an n in it, that you promptly ignore
😦
oh okay let me rewwrite everything
$\sum_{k=1}^{n+1} k = \sum_{k=1}^{n} k + (n + 1)$
deekaan:
tbh i dont even think he needs the hint, he has more of a problem with the general structure of how induction works
AHAH
what
do you know what a proposition is?
or did you just use the term because it sounds cool?
yes statements that are true or false

huh
thats 12
are you fucking with me
yes
why did you write it down
it makes no sense
yet you wrote down $\sum_{j=0}^nj^3 + p(n) + p(n+1)$
Lochverstärker:
but i don't understand what it is supposed to mean
because p is a true/false statement
and the thing before that is a sum
Yo Mama:
?
Why do you have a random sine curve in the middle of your working 
i was having a hard time building my words
Also, no. That last statement you wrote to the left of the vertical lines doesn't look like anything that makes sense.
you are getting closer though
the complete left side is correct
and i can also understand it
wait no
What you want to write is
$\sum_{j=1}^{k+1}j^3 = \sum_{j=1}^{k}j^3 + (k+1)^3$
Abhijeet Vats:
It's not correct, loch
the words are correct
but the sums you set up are weird
like, you dont seem to understand sigma notation
Go to sleeeeeepp
and the right side shouldnt really start with a random =
But yea yo mama's gotta understand sigma notation
like if your sums were set up correctly
then you would have to prove p(k+1)
which you wrote down almost correctly
i just noticed what this question is actually asking
i was followig the example form the book
The sums weren't set up correctly. What they wrote was:
$\sum_{j=1}^{n}j^3 \ldots +k = \frac{k^2(k+1)^2}{4}$
just the layout
Abhijeet Vats:
It's pretty meaningless
ye, thats what i mean
he doesnt understand sigma notation
so my next question would be you to write down $\sum_{j=0}^{10}j^3$ explicitly
Lochverstärker:
so anyways
i had my students derive and prove and explicit formula for $\sum_{j=0}^nj^k$ this week
Lochverstärker:
i mean if you cant tell what $\sum_{j=0}^{10}j^3$ is, then yeah
Lochverstärker:
Yo Mama:
yeah
Is there a general formula for that, though? I know there are inequalities you can construct from that but not an explicit formula, surely?
then i would ask you to write it down with n instead of 10
and then with n+1 instead of 10
and then take a closer look at your proposition
ok wait
and what it really says
yeah, there is a general formula
but it's like, not pretty
the interesting thing is, that it is always a polynomial in n
computing the actual coefficients is impossible for large enough k and n i think
Yea it's a polynomial in degree n+1, yea?
n is a variable
the degree will be k+1 or something
yeah, should be
like gauss formula is a polynomial of degree 2 in n
and this exercise of degree 4
checks out
n is the exponent in what ya wrote beforehand
But yea it'll be one higher than the highest degree in the sum
🤔
Im going to rewrite it, with a better summation
i had my students derive and prove and explicit formula for $\sum_{j=0}^nj^k$ this week
@pale epoch this is correct
Lochverstärker:
and the result will be a polynomial in n of degree k+1 for fixed k
you can actually express the coefficients with binomial coefficients and stirling numbers
and factorial
but i dont think you can easily compute stirling numbers
That sounds interesting. I might try that if I have time this week.
its called faulhabers formula
I have lots of shit to do before going to uni
yes, if you dont finish your degree in 1 semester you are a literal failure
Exactly
Gotta make sure I finish it in 1/2 a semester if i want to do a masters
1/3 if i wanna be in the top 10%
OH wait
So this is what I have so far for contrapositive, but I'm not sure where to go from here. Any help would be appreciated.
Right, that looks like a decently good start
So $32k^5+7 = 32k^5+6+1 = 2(16k^5+3)+1$
Abhijeet Vats:
And since $16k^5+3$ is an integer, the number above must be odd.
Should I let k=1? Is that viable? If so I Could show that n^5+7=39 which is odd
Abhijeet Vats:
you have no control over k
If $n$ is even, that just means that there exists an integer $k$ such that $n = 2k$. Since you don't know what $n$ is, you can't say anything specific about k
Abhijeet Vats:
k is a strong independent variable
Yea that works too. Being very explicit is probably necessary at this stage
k dont need no man
not really
NO
$\sum_{j=1}^{k}j^3 + \ldots +k$ does not make sense at all in the context of the problem you're doing
Abhijeet Vats:
it's quite obvious that you are trying to copy the proof of the gauss formula
without trying to understand what the symbols mean
$\sum_{j=0}^nj = \frac{n(n+1)}{2}$
Lochverstärker:
You don't have a good working knowledge of the summation. So, either stop using it or get a good working knowledge of it first.
I know you do. So either stop using summations or understand how to use them first.
Like, there really is nothing wrong with just writing:
$1^3+2^3+3^3+\ldots+k^3$
Abhijeet Vats:
Abhijeet Vats:
OH I see
What you wrote above doesn't make sense at all. You want to PROVE that:
$\sum_{j=1}^{k+1}j^3 = \frac{(k+1)^2((k+1)+1)^2}{4}$
Abhijeet Vats:
So you have to show that:
$\sum_{j=1}^{k}j^3+(k+1)^3 = \frac{(k+1)^2((k+1)+1)^2}{4}$
Abhijeet Vats:
by proving, you mean using this? $\sum{j=1}^{k+1}j^3 = \sum{j=1}^{k}j^3+(k+1)^3$

That is just exactly what I wrote above
It doesn't constitute a proof of anything
But you're on the right track
one small step for a man
let me write the whole thing again
I think i get what everyone is saying now!!!
? What's IH?
induction hypothesis
OMG TANK U
You got it?
For the last time
$\sum_{j=1}^{k+1}j^3+\ldots+k+(k+1)$ MEANS ABSOLUTELY NOTHING IN THE CONTEXT OF YOUR PROBLEM
Abhijeet Vats:
But yes, otherwise those last few lines are fine
Huh, should it have said solve it by math induction?
becos the topic was math induction
you're like combining two things that mean the same thing while also messing up I think
$\sum_{j=1}^{k+1}j^3$ and $1^3+\cdots+k^3+(k+1)^3$ are the same thing
Merosity:
I've said this many times by this point
Why are you repeatedly doing these things even when I'm telling you not to?
Nah i wasn't directing that at you mero
Oh its a review for my exam next week
NO
yikes
WHY ARE YOU REPEATEDLY WRITING:
$\sum_{j=1}^{k+1}j^3+\ldots+k+(k+1)$
WHEN I HAVE TOLD YOU THAT IT IS MEANINGLESS IN THE CONTEXT OF YOUR PROBLEM
Abhijeet Vats:
i just folowed the book i was reading
Show me where your book has written that
And if it really has written that specific thing, the author deserves a kick in the nuts
No look
Either use a summation
Or use the notation in the image you just sent
Don't use both at the same time
Especially when what you're writing really doesn't make sense
I'd argue that what he's writing doesn't make sense in any context
it's not clear what writing j^3 + ...+k+(k+1) could even mean
I cound understand if it was something like j^3 + (1+2+3.....+k+(k+1))
Something like that
AH
But this is not meaningful at all
just j^3.......+(k+1)
oh yes 1 ... +(k+1)
what does that mean
Yo mama, writing j^3 + (1+2+3+.....+k+(k+1)) is not helpful for the problem at all
It doesn't do anything
Either use $\sum_{j=1}^{n}j^3$ or $1^3+2^3+3^3+\ldots+n^3$
Abhijeet Vats:
I've told you this a million times at this point
You're welcome.
Anyone know how to solve this?
let P(n) denote the number of alternative parenthesizations of a sequence of n matrices. What is the value of P(6)?
how many different ways can you set up grouping parenthesis around 6 matrices
I'd start with some smaller numbers of matrices and see if maybe there's a pattern...
like for 2 matrices, AB there's only 1 way
But for 3 matrices, I could do A(BC) or I could do (AB)C, so that's 2
and for 4 matrices, I could do (AB)(CD) or ((AB)C)D or (A(BC))D or A(B(CD)) or...
and I now notice the time stamp and you probably aren't here anymore, but that would be how I started @keen yew
how many possible words can i make from the letters 'abcdef' (they don't have to be real words and i cant use each letter more than once)
no, i haven't yet
ok i think i remember it a little now
it would be 6!
im guessing for my question then, the answer would be 6! + 5!+4! +3!+2!+1 if i were to include words with less than 6 letters
for example, what if i wanted to include "a" as a word
6+6*5+6*5*4+6*5*4*3+6*5*4*3*2+6*5*4*3*2*1
So apparently there is some function which tells you the number of ways n cents can be made from 2 and 5 cents.
A better way of saying this would be:
f(n) = Number of solutions for 2x + 5y = n, n is some integer.
How would I figure this out, apparently the recurrence relation:
f(n) = f(n-2) + f(n-5) - f(n-7), n >= 7
f(0) = f(1) = f(3) = 0
f(2) = f(4) = f(5) = f(6) = f(7) = 1
Can do this? Why is this?
Any ideas?
That would be great
So let's create a magical function
You wanna climb a staircase
With n steps
You take 1 or 2 steps at a time
Tell me if I go too fast aka interrupt me
Yep, so far so good, sounds like induction
f(n) computed the number of ways to get to step n with 1 or 2 steps
How can we find a way to compute this?
Well the trick is to work backwards
Let's imagine we are at the end
Our location is step n
Are you with me
No?
Where must you have been before step 12? Remember you only go up 1 or 2 steps at a time
Keyword before
Well I guess either 10 or 11
Cool
So do you see why f(12) = f(10) + f(11)?
In order to get to step 12, you either went to step 10 first or step 11 first
Sure, right now interpreting + as an 'or' I guess.
Ohh yeah, so f(10) + f(11), is because rule of sum, you can't have gone both at the same time.
Yep
f(10), the case where you went up from 10
f(11), the case where you went up from 11
Can you generalize for f(n)?
f(n) = f(n-1) + f(n-2)?
Very important note
f(n) came from either:
Took steps from f(n-2) or f(n-5) or f(n-7)
Yea?
Oh wait the minus
Look carefully at the sign of f(n-7)
yea
Why would we subtract that?
Hmm..., probably a duplicate case
Be more specific
Looks a bit like inclusion/exclusion. My guess is that it accounts for the case where both f(n-2) and f(n-5)
Or something like that.
yeah
Apparently there is a double up between coming from step -2 and step -5
If you look at the previous steps of n -5 and n-2, there is overlap
Reason we care is cause we deal with coins not steps this time
Cause the order of coins doesn't matter here
Ah right
(I encourage you to think this through very deeply)
Quite important distinction
Anyways, you now see the recusion?
Yeah, right now I'm seeing it as:
f(n-5), the case where 'n' coins are made out of 5's
f(n-2), the case where 'n' coins are made out of 2's
f(n-7), the case where 'n' coins are made out of both 5's and 2's
I think it looks much like the inclusion/exclusion principle:
|A u B| = |A| + |B| - |A n B|
but in this case I think f(n) = |A n B|?
So |A n B| = |A| + |B| - |A u B|?
Or maybe I did the opposite..