Problem 467. Mr. Pyramidad & Ms. Whissy Bolower
Businessman Mr. B. M. Pyramidad was drinking with his new girlfriend Ms. Whissy Bolower. He disclosed to her that he has an illegal business plan:
- He, as Boss-I, will recruit x individuals as Operator-II,
- Each of these operators will recruit x individuals at Helper-III,
- Every helper must recruit x individuals as Peddler-IV.
- All of them will be promoted to next higher level as soon as each of those peddlers deposit $1,000 cash to their acting Boss-I.
- Then, whoever was the acting Boss-I, he or she must retire, but the business will continue to expand as usual.
Ms. Whissy Bolower has decided to blow the whistle. She is calculating that Mr. Pyramidad may come back at the Peddler-IV level after retiring. What could be the minimum x so he collects minimum y dollars net after retiring z times? Please try a general solution, the test suite may expand. For more information, see Pyramid Scheme.
Solution Stats
Problem Comments
-
1 Comment
Some comments -
1. This should have contained more than 3 test cases.
2. The logic authored has used in their reference solution is inconsistent with the problem statement.
Just to give everyone a clear idea as to why it is recommended to have a good test suite, the solutions submitted by many players are deemed correct when logically clashing with each other (yes, including mine) - which implies that the the problem isn't clear enough.
Unfortunately since the Author has been inactive on Cody for a long time, so I guess it would be best to not give much effort here.
Solution Comments
Show commentsProblem Recent Solvers29
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2770 Solvers
-
143 Solvers
-
62 Solvers
-
560 Solvers
-
143 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!