Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Assume the dice are numbered from $1$ to $k$. My hunch is that this will form a normal distribution with a median at $n\cdot\frac{k}{2}$. However, I have no idea as to

  1. turn this fact into an answer (I have a minimal knowledge of stats, but I know that I am missing the standard distribution)
  2. and this is probably the wrong approach

How can I approach and solve this problem? (Aside, this is not for a class, stats or other, so any and all approaches welcome).

*Edit: * I want to find the number of ways that the sum of the numbers that are rolled has a particular value, if $n$ dice are rolled, and each has $k$ sides, numbered $1$ to $k$.

share|cite|improve this question
How is your $k$-sided die numbered? from $1$ to $k$, or from $0$ to $k-1$ or $2345$ to $2344+k$? – user21436 Feb 9 '12 at 3:51
@KannappanSampath, see edit – soandos Feb 9 '12 at 3:53
So, you'd like to know that, $P(X=l)$ for a natural number $l$ and $X$ represents the sum of all outcomes, right? – user21436 Feb 9 '12 at 3:55
Quite honestly, I have no idea what that notation means. I want to know the number of ways that a number can be rolled. – soandos Feb 9 '12 at 4:08
up vote 6 down vote accepted

The exact probability is a bit complicated: the chance of getting a total of $p$ when you throw $n$ $k$-sided dice is: $${1\over k^n}\sum_{j=0}^{\lfloor (p-n)/k\rfloor} (-1)^j {n\choose j}{p-kj-1\choose n-1}$$ You can see an explanation and examples here, see equation (10).

You are correct that for moderately large $n$ the distribution is well approximated by a normal curve with mean $n(k+1)/2$ and standard deviation $\sqrt{n(k^2-1)/12}$.

share|cite|improve this answer
Perfect, and thanks for the references. – soandos Feb 10 '12 at 2:56
@Byron Schmuland : I'm sorry to bother you, but there's something I'd like to ask. I'd like to find every $p$ such that $P(p,n,k)=P(p+1,n,k)$ where $P(p,n,k)$ is the expression you write in your answer. It seems easy to conjecture the answer, but I'd like to have a rigorous proof. If you have any ideas or references, could you please show me them? Thank you for taking your time to read this comment. – mathlove Aug 12 '15 at 19:16
@mathlove I suppose you mean that $p\mapsto P(p,n,k)$ is symmetric about the midpoint $n(k+1)/2$ and strictly increasing for $p$ up to the midpoint if $n\geq 2$. The best way to prove this is with generating functions and induction on $n$. – Byron Schmuland Aug 12 '15 at 22:36
@Byron Schmuland : Thank you very much for your reply. Yes, that's what I meant (So, my understanding was that I need to prove that (1) $P(p,n,k)=P(n+nk-p,n,k)$ for every $p$ such that $n\le p\le nk$ and that (2) $P(n,n,k)\lt P(n+1,n,k)\lt\cdots\lt P(\lfloor (n+nk)/2\rfloor,n,k)$ for $n\ge 2$.) From your hints, I thought a generating function $f(x)=\sum_{i=0}^{\infty}P(i,n,k)x^i$ where $P(i,n,k)=0$ for $p\lt n\ \text{or}\ p\gt nk$. But I've been facing difficulty in proving (1)(2) by induction on $n$. Could you please elaborate on that? – mathlove Aug 13 '15 at 10:46
@mathlove The argument is a little long for a comment. You can email me directly and I will send you a (one page) proof. – Byron Schmuland Aug 13 '15 at 22:31

As $n\to\infty$ with $k$ fixed, the sum of the outcomes divided by $\sqrt{n}$ approaches a normal distribution with mean $(k+1)/2$ if the numbers on the dice are $1,2,3,\ldots, k$.

As $k\to\infty$ with $n$ fixed, something quite different happens.

share|cite|improve this answer
Just guessing, but perhaps $(\frac{k}{2})^{n}$? – soandos Feb 9 '12 at 4:43
if k went to infinity would the probability of get anything out of k sides go to 0. I think we may need someone with rigrous probability theory to answer this one. – Comic Book Guy Feb 9 '12 at 5:35

I am not certain what you mean to ask but based on your comment. The odds of ending up with a particular side out of your k sided die is 1/k, that's assuming your die is unbiased. Now you can throw it over and over the odds of a particular side showing up would be the same 1/k.

your answer can be found at


share|cite|improve this answer
see edit to question. – soandos Feb 9 '12 at 5:33
that is easy but the number of ways that the sum of the numbers that are rolled has a particular value, if n dice are rolled, and each has k sides is dependent on the sum. – Comic Book Guy Feb 9 '12 at 5:36
In the "classic" 2 six sided dice, not all numbers can be rolled the same amount of ways... – soandos Feb 9 '12 at 5:39
There are 36 possibilities... Also, I do not want to enumerate all the possibilities. I want a formula that will do that for me – soandos Feb 9 '12 at 5:45
Honestly, I don't see how your approach is relevant to my question, nor is your answer (did you see the edit?). – soandos Feb 9 '12 at 5:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.