Original Problem
There are three boxes, each with a different combination of gold and silver bars in them: One has two gold bars, one has a gold and a silver bar, and one has two silver bars. If a bar from a box is chosen at random, if that bar is a gold bar, what is the chance that the other bar in the box is gold?
Although the solution may seem to be $\frac{1}{2}$, it is actually $\frac{2}{3}$. There are three gold bars that could've been chosen:
There are two gold bars that could've been in the same box, and one silver bar, therefore the probability is $\frac{2}{3}$. (This problem is very similar to the Monty Hall problem.)
Generalization
There are $n+1$ boxes, each with $n$ bars that are either gold or silver, so that the first one has $n$ gold bars, the second has $n-1$ gold bars and $1$ silver bar, and so on. If a bar chosen at random is gold, what is the probability that another gold bar is chosen at random from the same box?
Arranging all the boxes side by side, we see an $n$ by $n+1$ array of bars, so there are $n(n+1)$ bars total. Half of them are gold, so there are $\frac{n(n+1)}{2}$ gold bars. The number of gold bars is also equal to $n+(n-1)+...+2+1$, which is also equal to $\frac{n(n+1)}{2}$. This means that the chance of each gold bar being chosen is $\frac{1}{\frac{n(n+1)}{2}}=\frac{2}{n(n+1)}$.
The probability for the gold bar chosen being in the first box is $\left(\frac{2}{n(n+1)}\right)(n)$, because there are $n$ gold bars there, and a $\frac{2}{n(n+1)}$ chance of each. If the gold bar chosen is in the first box, the probability for the other bar chosen later being gold is $\frac{n-1}{n-1}$.
the probability for the gold bar being in the second box is $\left(\frac{2}{n(n+1)}\right)(n-1)$, and the probability for the other bar chosen later being gold is $\frac{n-2}{n-1}$.
Continuing the pattern, we get the sum
$$\left(\frac{2}{n(n+1)}\right)(n)\left(\frac{n-1}{n-1}\right)+\left(\frac{2}{n(n+1)}\right)(n-1)\left(\frac{n-2}{n-1}\right)+\left(\frac{2}{n(n+1)}\right)(n-2)\left(\frac{n-3}{n-1}\right)+...+\left(\frac{2}{n(n+1)}\right)(2)\left(\frac{1}{n-1}\right)+\left(\frac{2}{n(n+1)}\right)(1)\left(\frac{0}{n-1}\right)+\left(\frac{2}{n(n+1)}\right)(0)\left(\frac{-1}{n-1}\right).$$
The last two terms in the sum can be canceled, and we can factor out the $\left(\dfrac{2}{n(n+1)}\right)$ to get
$$\left(\frac{2}{n(n+1)}\right)\left((n)\left(\frac{n-1}{n-1}\right)+(n-1)\left(\frac{n-2}{n-1}\right)+(n-2)\left(\frac{n-3}{n-1}\right)+...+(2)\left(\frac{1}{n-1}\right)\right).$$
Now we can also factor out $\frac{1}{n-1}$ to get
$$\left(\frac{2}{(n-1)n(n+1)}\right)\left((n)(n-1)+(n-1)(n-2)+(n-2)(n-3)+...+(2)(1)\right).$$
Because $(1)(2)+(2)(3)+(3)(4)+\cdots+(n)(n+1)=\dfrac{(n)(n+1)(n+2)}{3}$ (enter link description here), $(n)(n-1)+(n-1)(n-2)+(n-2)(n-3)+...+(2)(1)=\dfrac{(n-1)n(n+1)}{3}$. Therefore the answer becomes
\begin{align*} \left(\frac{2}{(n-1)n(n+1)}\right)((n)(n-1)+(n-1)(n-2)+(n-2)(n-3)+...+(2)(1)) &= \left(\frac{2}{(n-1)n(n+1)}\right)\left(\frac{(n-1)n(n+1)}{3}\right) &= \boxed{\frac{2}{3}}. \end{align*}
This is the same answer as the original problem. Why is this the case?
Further Generalization
How would you solve the problem for $k$ different metals? Also, how many different boxes with $k$ different metals and $n$ bars per box are possible, without order mattering?
Note: drhab below has found the answer to another generalization; can anybody explain why the answer is so neat?