Jelly Beans

PEZenfuego

Regular
Joined
Jul 21, 2009
Messages
203
You have a jug of jelly beans. On the first day of receiving this, you eat 1 jelly bean. On the second day, you eat 2 jelly beans. On the third day; three jelly beans, on the fourth; four; etc.

On the 100th day after you eat 100 jelly beans, you discover that there are only 4 jelly beans left in the jug. How many jelly beans were in the jar on the fifth day after you at your 5 jelly beans?

I just made this up and solved it. What do you get?
 
Sn= n/2(2a + (n-1)d)

S100= 100/2 (2*1 + (100-1) 1)

= 50 (2 + 99)

=5050

S5= 5/2 (2*1 + (5-1) 1)

2.5 (2 + 4) =15

5050-15+4= 5039

*************************************
God I love questions that are topical with my maths right now.
 
About 20s with Python:
 

Attachments

  • asdf.png
    asdf.png
    4.3 KB · Views: 30
Last edited:
Sn= n/2(2a + (n-1)d)

S100= 100/2 (2*1 + (100-1) 1)

= 50 (2 + 99)

=5050

S5= 5/2 (2*1 + (5-1) 1)

2.5 (2 + 4) =15

5050-15+4= 5039

Actually, you are incorrect. You are close. Reread the problem, you missed something. Wait, never mind lmao, you fixed just as I was typing that. Good work.
 
Sn= n/2(2a + (n-1)d)

S100= 100/2 (2*1 + (100-1) 1)

= 50 (2 + 99)

=5050

S5= 5/2 (2*1 + (5-1) 1)

2.5 (2 + 4) =15

5050-15+4= 5039

Actually, you are incorrect. You are close. Reread the problem, you missed something. Wait, never mind lmao, you fixed just as I was typing that. Good work.

I can't see what I missed...
 
(100^2 + 100) / 2 + 4 = 5054 total beans in jug/jar.
(5^2 + 5) / 2 = 15 eaten after you eat on the 5th day.
5054 - 15 = 5039 beans left after you eat on the 5th day.
 
Sn= n/2(2a + (n-1)d)

S100= 100/2 (2*1 + (100-1) 1)

= 50 (2 + 99)

=5050

S5= 5/2 (2*1 + (5-1) 1)

2.5 (2 + 4) =15

5050-15+4= 5039

Actually, you are incorrect. You are close. Reread the problem, you missed something. Wait, never mind lmao, you fixed just as I was typing that. Good work.

I can't see what I missed...

When I read it the first time you forgot to add the four, but you're golden now, good work.

(100^2 + 100) / 2 + 4 = 5054 total beans in jug/jar.
(5^2 + 5) / 2 = 15 eaten after you eat on the 5th day.
5054 - 15 = 5039 beans left after you eat on the 5th day.

yep. That's how I solved it too. Of course I had to figure out X2+X
..................................................................................‾‾2‾

on my own.
 
Because...


1+2+3+4+5...+96+97+98+99+100

Is really just 1+100, 2+99, 3+98, 4+97...50+51

So what you end up with 101x 100/2

Or 100^2+100 all over 2.
 
Python+alcohol=dead python

Alcohol=awesome

Dead python=not awesome

So

Python+awesome=not awesome


Python=not awesome-awesome

Python=Really not awesome.

Really not awesome=suck

Python=suck.

Python's suck. Math wins.
 
Last edited:
Back
Top