Hi, all.

I took single-variable calc in high school, and will be moving on to multi-variable calc (calc 3) this summer at the community college. However, it surprises me that in all of this we have not yet nor will we discuss probability theory. The only probability I learned was very basic stuff from grade school algebra. About the only thing I remember is that the probability of

events happening given

instances, with each event having an individual probability of

, is

. That's pretty much all I have to go on.

That said, I came across a random problem which I think I've solved, but which I'd like someone to explain to me in more proper, formal language...

Suppose you have a die with

sides, and you roll it again and again, until you roll a certain single-number result (e.g. roll a six-sided die until you get a 4). Then you repeat the experiment ad nauseum. Out of the multiple experiments, what is the average number of rolls it will take for you to get that certain result?

My solution is as follows:

Step one: The probability

of rolling an undesired result

times in a row is

.

Step two (*this is the step with which I need the most help*): To get an average number of throws, we must let

. I know this intuitively, but how do I show it on paper?

Remaining steps:

Thus,

is the average number of throws.

First, is my conclusion correct? If so, can someone please help me understand the steps?

Thanks!