Questions   
Sort: 
Aug 28, 2017
 #1
avatar+2446 
+1
Aug 28, 2017
 #17
avatar+2236 
+4

Guest all you gave was an example of arrogance squared.

 

Sadly, melody's way of answering the questions is clumsy and complicated, and takes a lot of time when the numbers get larger (assuming you remember to count every combinations exactly once).

 

This isn’t sad, nor is this clumsy. It may be unwieldy because of its size, but it’s not clumsy. Complicated? Yes, of course, it is, and no matter how it’s answered it’s a complicated question.  Melody’s presentation explains what is going on inside the formulas and algorithms used to solve this. Very un-advanced students are the target audience, here. They don’t know what generating function is. I doubt there are five members that know what a generating function is –let alone how do one.  

 

This question is a famous one in combinatorics and has a much, MUCH simpler answer than the answers you gave. after reading Jz1234's last post i see he ALMOST got the right answer (and that is VERY impressive, well done!).

 

No, he didn’t almost get the right answer. 

 

jz1234's answers works only if we dont mention any upper bound in the question.

 

No it doesn’t. If the goal is Mars, that formula doesn’t get you the moon.

 

Let me explain:

 

[Sadly] Your explanation is laborious [Clumsy] and doesn’t produce a very usable result.

 

As far as i know there is no general, nice formula that finds the number of rolls, but that is the best way i can think of for solving this question

 

Well you don’t know much! I know of a general, [nice] formula that gives the exact result.  (Lancelot Link gave it to me when I was studying AOPS.)

 

\(\sum \limits_{k=0}^{m}\binom{n}{k} (-1)^k \binom{p – s*k – 1}{p – s*k – n} \leftarrow \text {where p is the point (sum) target, n is the # of die, }\\ \hspace {47mm} \text{s is the number of sides, and } m=\lfloor \dfrac{p-n}{s}\rfloor \\\)

 

 

This formula is from J. V. Uspensky’s Introduction to Mathematical Probability (1937). There is an extensive derivation here

 

Here’s the Wolfram code for this fromula:

This is compliments of Lancelot Link. (I think that Chimp could program Wolfram to bring back a burning sample of brimstone from heII.)

 

The variables are preset.  Paste this into Wolfram Alpha.

 

p=20,n=10,s=6;  sum (binom(n,k)*(-1)^k*(binom((p-s*k-1),( p-s*k-n))) from k=0 to  Floor[(p - n)/s])

 

Or click here.

 

Now, take your [much, much] arrogant and useless commentary and shove it up your [sad, sad] áss!

Aug 28, 2017
 #1
avatar
0
Aug 28, 2017
 #2
avatar+2446 
+1

One of the greatest ways to detect an error in solving is to do it yourself. I, too, have trouble spotting errors that others make--even if it is very obvious. However, if you do the problem and compare your answer with the given result, it is much easier to spot the error. I will also solve \(\frac{3}{x}+\frac{6}{x+3}=\frac{8}{x+1}\) because it is good practice. 

 

\(\frac{3}{x}+\frac{6}{x+3}=\frac{8}{x+1}\)First, the solver in this problem states that the LCD is \(x(x+3)(x+1)\), which is correct. Now, let's multiply both sides by the LCD
\(\frac{3x(x+3)(x+1)}{x}+\frac{6x(x+3)(x+1)}{x+3}=\frac{8x(x+3)(x+1)}{x+1}\)Simplify every fraction. Notice that, in every fraction, you can simplify it such that the fraction disappears. Let's do that.
\(3(x+3)(x+1)+6x(x+1)=8x(x+3)\)Right away, I already see a disagreement between my answer and the solver's answer. They are both different. This is the error. Since I like going the extra mile of solving, I will do that! First, I'll distribute 3(x+3) first.
\((3x+9)(x+1)+6x(x+1)=8x(x+3)\)You'll notice that it is not worth looking at the method that the solver uses, as I have already spotted the error. I can now use my own method to solve. Remember that \(ac+bc=(a+b)c\) by the inverse of the distributive property. I will use this in the next step.
\((6x+3x+9)(x+1)=8x(x+3)\)Combine like terms in the first set of parentheses and subtract \(8x(x+3)\) from both sides of the equation.
\((9x+9)(x+1)=8x(x+3)\)Unfortunately, I do not see a way to use the above reverse-distributive-property trick to simplify any further. I can factor out a 9 from both sides.
\(9(x+1)(x+1)=8x(x+3)\)Now, do \((a+b)^2=a^2+2ab+b^2\)
\(9(x^2+2x+1)=8x(x+3)\)Now, expand both sides.
\(9x^2+18x+9=8x^2+24x\)Now, subtract 8x^2+24 from both sides.
\(x^2-6x+9=0\)This trinomial happens to be a perfect-square trinomial. Let's use that to our advantage. 
\((x-3)^2=0\)Take the square root of both sides. Remember that taking the square root means taking the absolute value.
\(|x-3|=0\)The absolute value splits your answer into the negative and positive answers. Luckily, the absolute value of 0 is always 0--whether positive or negative.
\(x-3=0\)\(-(x-3)=0\)

 

For the left equation, add 3. For the right equation, divide by -1.
\(x=3\)\(x-3=0\)

 

For the second equation, we can stop because we already calculated the value for x when x-3=0. Of course, it's 3.
  

 

This value for x is outside of the undefined singularity point, so this answer is correct.

 

For your information, you were solving this equation using the quadratic formula incorrectly. Your first line using the quadratic equation is \(x = {-6 \pm \sqrt{(-6)^2-4(1)(4)} \over 2(1)}\), but it should be \(x = {\textcolor{red}{-}(-6) \pm \sqrt{b^2-4ac} \over 2a}\). Also, \(-3\) happens to be an undefined singularity point because it is a solution to \(x+3=0\).

 

Another thing to mention is that I agree with Cphill that it is easier to simplify the left-hand side first, but it might be harder to detect the error if you do not do the problem as the solver did it. 

Aug 28, 2017

0 Online Users