Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**alexman617****Member**- Registered: 2012-02-18
- Posts: 6

iv been trying to get this problem on excel but so far nothing anyone think they can help?

Say that every single class in a College Masters Degree in Game Design has a 5% failure rate per month. Say also that when a student fails once, he or she drops from the program. There are twelve months. Given a cohort of 100 that starts the program, about how many are left after twelve months? help?

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi alexman617;

You do not require a computer for this answer. You can derive the formula and then use a calculator.

The first month we have

.95 * 100 = 95 left.

The second month we have:

.95 * .95 * 100 = 90.25 left

The third month we have:

.95 * .95 * .95 * 100 = 85.7375

For the nth month we have:

.95^n * 100

For 12 months we get

.95^12 * 100 = 54.0360087 left.

We can round to 54. Welcome to the forum.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

Hi alexman617,

If looking for whole-body eliminations (as opposed to partial bodies, which could get a bit messy!), using Excel's INT function for each month's calculation is a good option. That gives a final count of 51 students that remain after 12 months.

The image shows the formulas I used. Just enter B2's and A3's values and B3's formula, select A3 and B3 (combined) and drag the fill handle down to row 14.

I couldn't think of a one-liner formula to solve your problem that way.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

**alexman617****Member**- Registered: 2012-02-18
- Posts: 6

hey thanks guys helps me alot, i have 2 more i need help with, if you want to help it would be appreciated thanks

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Please post them.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**alexman617****Member**- Registered: 2012-02-18
- Posts: 6

heres the second one

You are going to roll four twenty-sided dice. If the rolls total to 20 or less, roll two more twenty-sided dice and add that to the total. For instance, if the total of my four die rolls is 32, then that is the score of the game. If the total is 17, then I roll two more dice and add that to the total. If these two bonus dice total 20, then the score of that game is 37. Of ten thousand games, what is the average score?

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi alexman617;

Okay, I will work on it.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**alexman617****Member**- Registered: 2012-02-18
- Posts: 6

thanks for the help im glad theres people out there that are willing to help

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi alexman617;

The average value of this game is 1364349 / 32000 = 42.63590625.

The above answer is the exact answer given by expanding the generating function that represents this problem. It will do you little good because it appears they want you to write an excel program to do this.

Programming is a very personal thing and you should do it on your own. Anyways, I do not program in excel but the exact answer can at least point you in the right direction.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi HambrickWeldon;

Sadly I have the same problem mathematically I have it figured out

As far as I know I am the only person in the galaxy to have figured it out using mathematics. If you have another solution then I would like to see it.

Excel is not the end of the world. There are other programming tools, try one of them.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

That is what I would like to see your math.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**bob bundy****Moderator**- Registered: 2010-06-20
- Posts: 7,705

hi HambrickWeldon

Earlier versions of Excel don't allow 10 000 rows so check by doing CTRL <down arrow>.

The function RAND() will return a random number between 0 and 1 0 can be returned but not 1.

So = 20 * RAND() will raise the values to 0 and 19.9999

Then take the integer part.

=INT(20*RAND())

The range is now 0 to 19.

Finally = INT(20*RAND()) + 1

to get numbers in the range 1 to 20.

Copy this into 5 more columns so you are simulating 6 throws.

The IF command will then allow you to sum up just 4 columns or all 6.

= IF(SUM(A1:D1)<21, SUM(A1:F1), SUM(A1:D1)

If the first four add to under 21 then add 6 columns otherwise add 4 columns.

Copy that row to another 9999 rows to 'do' the experiiment 10 000 times.

You can then put

=AVERAGE(G1:G10000)

in cell G10001 in order to get the average score.

The screen shots below show my results for a few rows (it's random so you'll get different values) and then the formulas.

I've shrunk columns C and D to make it fit into one shot.

Hope that helps, post again if you get stuck.

Bob

Children are not defined by school ...........The Fonz

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**Jenniferm****Member**- Registered: 2012-04-26
- Posts: 1

I am not sure how a forum works sorry, I am a mom of teenagers and just returned to school. So its been a looong time since I have done math besides adding things up at the grocery store. Can I post the math problems in this topic? I am going to and see if I get any feedback? I need help with a problem that has fractions in it but I don't know how to put it on this post, can someone help?

Thank you for your time

Jenniferm

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

*EDIT*: Seeing Bob's nice formulas gave me this idea.

See image:

(a) RANDBETWEEN(x,y) returns a random number between the specified numbers. My Excel v2007 has that function, but I don't know if other versions have it.

(b) Enabling iterations in Excel can keep the spreadsheet entries to a minimum, and this is demonstrated in the little program (see below) that runs from just a few lines. I'd initially entered the formulas into column A, but changed to column B in order to show and explain them better (see image).

To run the program in Excel v2007:

1. Add the 'Calculation Options' button to the Ribbon: Office Button/Excel Options/Customise/All Commands/Calculation Options/Add/OK.

That button enables quick selection of manual or automatic calculation mode. Click the button and select 'Manual'.

2. Enable iterations: Office Button/Excel Options/Formulas/Calculation options. Tick the 'Enable iterative calculation' box and in the 'Maximum Iterations' box enter 10000. I left 'Maximum Change' at the default 0.001. Click OK.

3. Enter the formulas from my spreadsheet image.

4. Press F9 (or click the 'Calculation Options' button and select 'Automatic') to start the ball rolling (dice, actually)...and sit back and watch the spinning tumblers in column B.

5. To reset column B results, first click the 'Calculation Options' button and select 'Manual'. Then in each cell to be reset (B2:B5), left double-click it and press Enter.

6. Press F9 to start the calcs again. Each subsequent press increases the number of games by 10000.

7. You can check the validity of the program by setting iterations to 1 and then pressing F9 to monitor the column B results. Calcs can be set to either manual or automatic for this.

8. If you want more automated results per F9 press, increase iterations (max 32767 in Excel v2007).

9. You may want to re-enable auto calcs for your other programs...which you can do from the new Ribbon button that was set as per note 1. When leaving this program you should probably also disable iterations by removing the tick you put in the box (see note 2).

10. The "B2*0+" in B2 is the trigger that sets off the iterations to automate the calculations.

Here's a link to my spreadsheet in action: Animated results

*Last edited by phrontister (2013-04-29 15:34:53)*

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi Jenniferm;

Welcome to the forum. You should post your problems in Help Me. Just start a new topic. This topic is for other problems.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**bob bundy****Moderator**- Registered: 2010-06-20
- Posts: 7,705

hi HambrickWeldon,

This is a bit complicated but it will work.

(i) Simulate one flip with =IF(RAND()<0.5,"H","T")

(ii) Do that for another nine cells in a row, so you have 10 cells containing some Hs and some Ts

(iii) Build this into a single 'word' with =CONCATENATE(A1,B1,C1,D1,E1,F1,G1,H1,I1,J1,"HHHH")

You'll notice I have put an extra HHHH on the end. The reason for this will become clear after the next step.

(iv) Detect where a sequence of four Hs starts with =FIND("HHHH",K1)

This function returns the position number for the first instance of HHHH in a word.

eg. If K1 contains HTHTHHHHTTHHHH you will get 5.

The function doesn't like it if there is no instance of HHHH at all. You get a VALUE? error. Adding a 'dummy' of HHHH at the end of the word avoids this happening; so you'll always get a number.

If the number is < 8 it's a win. Otherwise it's a loss. = IF(L1 < 8, "Win", "Loss")

There's a function that will count the wins =COUNTIF(M1:M10000,"Win")

The screen shot shows two rows of results, with a COUNTIF on just the two rows.

Bob

ps. Thanks phrontister. I didn't know you could do that. I'm still a bit unsure so I've stuck to my 'long way' for this second question.

Children are not defined by school ...........The Fonz

You cannot teach a man anything; you can only help him find it within himself..........Galileo Galilei

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

Hey! HambrickWeldon's posts have vanished!!(??)

Anyway, I found it on a couple of other websites (as a homework question).

Below is an image for my solution. Again, inspired by Bob's method.

Same idea re iterations as for the dice puzzle (see my post #14).

The "B2*0+" in B2 is the trigger that sets off the iterations to automate the calculations.

You can check the validity of the program by setting iterations to 1 and then pressing F9 to monitor the column B results. Calcs can be set to either manual or automatic for this.

Here's a link to my spreadsheet in action: Animated results

*Last edited by phrontister (2013-04-29 15:35:42)*

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

**anonimnystefy****Real Member**- From: Harlan's World
- Registered: 2011-05-23
- Posts: 16,018

He deleted his posts.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

The knowledge of some things as a function of age is a delta function.

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

Does anyone have the wording for HambrickWeldon's coin-flip puzzle, so that we can include it here as reference for anyone interested in this?

If not, I can probably make something up.

*EDIT:* Found it on a couple of other websites, and included it in my post #17.

*Last edited by phrontister (2012-04-27 03:52:37)*

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

HambrickWeldon has deleted his posts!

I will not speculate as to why he did that. I am sorry for the inconvenience that action has caused.

Hi phrontister;

Make something up or I can if you want.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

Hi Bobby,

I found the puzzle on a couple of other websites and have included it in my post #17.

Offline

**Raito****Member**- Registered: 2012-04-27
- Posts: 50

Hello Mr phrontister

I am new on this forum! I am looking forward to talking to you

Are you good with Excel?

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 106,353

Hi phrontister;

That is a good example to use. Easy by computer and a little nasty by mathematics.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.****No great discovery was ever made without a bold guess. **

Offline

**phrontister****Real Member**- From: The Land of Tomorrow
- Registered: 2009-07-12
- Posts: 4,452

Hi Raito,

Welcome! You'll enjoy your experience here and you'll be able to learn much from this excellent website and by participating on the forum!

I don't know how to rate my proficiency in Excel. I'm self-taught, having picked up my knowledge from a limited amount of spreadsheet use at work and from occasional puzzle solving.

There is a huge amount about Excel that I don't know and never will know, because the program has such diverse application.

I like to use it when I can, and the more I do that the better acquainted with it I'll become and the more tricks I'll learn along the way.

Excel has good tutorials and good help files that you can copy and paste into your spreadsheet to get a quick and easy idea of how things work. There's also an incredible amount of knowledge available on the internet and you'll find an answer somehow to practically any question you can imagine.

Although this forum isn't specifically Excel-oriented many members here use the program - or one similar to it. So if you have any questions just post them here and more than likely someone will post back the answer.

Offline

**Raito****Member**- Registered: 2012-04-27
- Posts: 50

Ok,Mr phrontister,thank you!

Offline