Poll

 I love math! 20 votes (46.51%) Math is great. 14 votes (32.55%) My religion is mathology. 6 votes (13.95%) Women didn't speak to me until I was 30. 2 votes (4.65%) Total eclipse reminder -- 04/08/2024 12 votes (27.9%) I steal cutlery from restaurants. 3 votes (6.97%) I should just say what's on my mind. 6 votes (13.95%) Who makes up these awful names for pandas? 5 votes (11.62%) I like to touch my face. 12 votes (27.9%) Pork chops and apple sauce. 9 votes (20.93%)

43 members have voted

teliot
Joined: Oct 19, 2009
• Posts: 2496
October 21st, 2021 at 6:46:19 AM permalink
Quote: Wizard

Any objections to:

beers_i_owe_charlie+=1.0; ?

None.
Climate Casino: https://climatecasino.net/climate-casino/
chevy
Joined: Apr 15, 2011
• Posts: 117
Thanks for this post from:
October 21st, 2021 at 7:00:21 AM permalink
Quote: Wizard

Quote: ChesterDog

The sheep started grazing 4.5 days after the grass started growing.

Let t stand for the time starting at t = 0 when the sheep first start grazing in that field. And let L be the length of a uneaten grass blade. Then L = a + bt, where a is the length at t = 0, and b is the growth rate of the blade in inches per day.

Call the eating rate of the sheep, expressed as pounds per day, M. It is related to their eating rate expressed as acres per day by:
M = K( a + bt ) dA/dt, where K is some constant related to the number of blades per acre.

Rearranging the equation:
dA = M/[K( a + bt )] dt

Integrating the equation from 0 days to 3 days gives:
1 acre = M/(bK) ln [( a + 3b ) / a]

Integrating from 3 days to 8 days gives:
1 acre = M/(bK) ln [( a + 8b ) / ( a + 3b )]

Equating and dividing both sides by the constants gives:
ln [( a + 3b ) / a] = ln [( a + 8b ) / ( a + 3b )]

Exponentiating both sides to the power e:
( a + 3b ) / a = ( a + 8b ) / ( a + 3b)

Solving:
( a + 3b )2 = a2 + 8ab
a2 + 6ab + 9b2 = a2 + 8ab
9b2 = 2ab
9b = 2a

The length of a grass blade is L = a + bt = a + (2a/9) t.
To achieve the initial length a, the blade would have had to grow 9/2 = 4.5 days.

I agree!

I think this one is beer worthy. Thus,

(int)(beers I owe Charlie)++;

Quote: Wizard

Any objections to:

beers_i_owe_charlie+=1.0; ?

I am not a lawyer, but as a sometimes Public Offender, I humbly object on behalf of ChesterDog that apart from all this discussion, you seem to be advancing the wrong variable???

beers_i_owe_ChesterDog+=1.0; ?

(NOTE: I don't know "C++" so maybe variable names only go by the first two letters & CHarlie and CHesterDog are the same.)

(NOTE: I am not implying any sock puppetry...too much of that lately)
Gialmere
Joined: Nov 26, 2018
• Posts: 2589
October 21st, 2021 at 8:01:17 AM permalink

Channeling your inner Marty McFly, you travel one week back in time in an attempt to win the lottery. It’s worth \$10 million, and each ticket costs a dollar. Note that if you win, your ticket purchase is not refunded. All of this sounds pretty great.

The problem is, you’re not alone. There are 10 other time travelers who also know the winning numbers. You know for a fact that each of them will buy exactly one lottery ticket. Now, according to the lottery’s rules, the prize is evenly split among all the winning tickets (i.e., not evenly among winning people).

Last edited by: Gialmere on Oct 21, 2021
Have you tried 22 tonight? I said 22.
teliot
Joined: Oct 19, 2009
• Posts: 2496
Thanks for this post from:
October 21st, 2021 at 8:58:05 AM permalink
Let x be the number of tickets I buy.

Then my win is given by:

win(x) = x*(9999990 - x)/(10+x)

Taking the derivative and setting the numerator to 0 gives a quadratic with positive solution x = 9990 tickets.

Plugging this back in gives a maximized profit of \$9,980,010.

My calculus is rusty, so surely I made an error somewhere. I am also not sure if the final prize pool is 9999990-x or 10M - x, based on the problem description.
Last edited by: teliot on Oct 21, 2021
Climate Casino: https://climatecasino.net/climate-casino/
DRich
Joined: Jul 6, 2012
• Posts: 10107
Thanks for this post from:
October 21st, 2021 at 9:47:02 AM permalink
Quote: Dieter

I don't think 6 decimal places of partial beers is what they usually mean by "microbrews".

Okay, that was funny and nerdy. My kind of site.
Order from chaos
Wizard
Joined: Oct 14, 2009
• Posts: 25287
Thanks for this post from:
October 21st, 2021 at 10:21:45 AM permalink

I agree with Eliot's answer. Hopefully I can get some of the credit by showing a more complete solution.

Let n = tickets purchased.
Let f(n) = Net profit = 10,000,000*(n/(n+10)) - n
f'(n) = 10,000,000*((n+10)*1 - n*1)/(n+10)^2 - 1 = 0 (using the quotient rule)
A little cancelling and moving things around gives us:
100,000,000 = (n+10)^2
10,000 = n+10
n = 9,990

I'd like to request that Eliot and I split a beer, on G.
Last edited by: Wizard on Mar 21, 2022
“Extraordinary claims require extraordinary evidence.” -- Carl Sagan
teliot
Joined: Oct 19, 2009
• Posts: 2496
October 21st, 2021 at 10:26:38 AM permalink
Quote: Wizard

I agree with Eliot's answer. Hopefully I can get some of the credit by showing a more complete solution.

Let n = tickets purchased.
Let f(n) = Net profit = 10,000,000*(n/(n+10)) - n
f'(n) = 10,000,000*((n+10)*1 - n*1)/(n+10)^2 - 1 = 0 (using the quotient rule)
A little cancelling and moving things around gives us:
10,000,000 = (n+10)^2
10,000 = n+10
n = 9,990

I'd like to request that Eliot and I split a beer, on G.

Mike, I would request that my 1/2 beer be donated to The Animal Foundation -- https://animalfoundation.com/
Climate Casino: https://climatecasino.net/climate-casino/
Wizard
Joined: Oct 14, 2009
• Posts: 25287
October 21st, 2021 at 1:58:33 PM permalink
This problem is inspired by the Squid Game, which I highly recommend to anybody not squeamish about blood. Mrs. Wizard couldn't take it and had to leave the room.

In one of the games there is a glass bridge. The bridge is divided into glass panels in an 18 by 2 grid. Let's explain it as 18 rows and two columns. In each row, one piece of glass is tempered, meaning a player could easily stand in it without the glass breaking. The other piece was ordinary glass that would break under the weight of a player.

The players must advance, one at a time, in a predesignated order. There are 16 total players. The rules are a little different on the show, but let's keep it simple here.

Assuming random guessing at each new row, what is the expected number of players to cross safely?

“Extraordinary claims require extraordinary evidence.” -- Carl Sagan
unJon
Joined: Jul 1, 2018
• Posts: 4067
October 21st, 2021 at 2:02:01 PM permalink
How many players?
The race is not always to the swift, nor the battle to the strong; but that is the way to bet.
Wizard
Joined: Oct 14, 2009