Agnis, being the casanova that he is, bought 1000 roses to give out the the girls in his school on Valentines Day. To the first girl, he gave her 1 rose. To each subsequent girl, as he professes his undying like of them, he gave out (strictly) more roses then he did to the previous.
What is the most number of girls that Agnis could give roses to?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Love Triangular?
Log in to reply
Lol ! @Satvik Golechha
By the way , I am waiting for your 1000 followers problem. :P
Using the formula for the sum of the Arithmetic Progression to get the maximum value of n:
S n = 2 n ( 2 a 1 + ( n − 1 ) d )
W h e r e : S n = 1 0 0 0 a 1 = 1 d = 1
We get:
2 0 0 0 = n ( 2 ( 1 ) + n − 1 ) → n 2 + n − 2 0 0 0 = 0
Using the quadratic formula to solve for the positive value of n:
n = 2 ( 1 ) − 1 + 1 − ( 4 ) ( − 2 0 0 0 ) ( 1 ) n = 2 − 1 + 8 0 0 1 n ≈ 4 4 . 7 4 … = 4 4
Since we are talking to a person (n should be an integer), n can't be 44.74, so the maximum number of girls is 44.
Why must this give the maximum? He certainly can't give it to 43.7 girls.
Note that there is an arithmetic error in your solution.
This is a bit similar to Infinite , but easy
A little Python simulation will do just fine.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
FYI In true D&D rules, the max level is 20. There is not level 42 wizard :)
Log in to reply
Incorrect; An experiened kaboobly dooist has the capacity to exceed the standard limit. Downvoted.
Log in to reply
Log in to reply
@Calvin Lin – It was a song first. A beautiful, beautiful song.
https://youtube.com/watch?v=ACiA1TX0tvA
Problem Loading...
Note Loading...
Set Loading...
Keep in mind that Agnis has to give out an integral number of roses to an integral number of girls, and he must give strictly more roses at each subsequent girl. To give roses to the most girls, Agnis would have to distribute the roses in fashion of 1 , 2 , 3 , 4 . . . n . So, Agnis is giving out 1 + 2 + 3 + 4 + . . . + n roses. So essentially, we're looking for the largest triangular number T n such that T n = 2 n ( n + 1 ) < 1 0 0 0 , where n is our answer, which happens to be 4 4 .