# Number of Chocolates in a Bag

## Puzzle on Chocolates

This is a puzzle on the number of chocolates in a bag. Priyanka visited the “holy ghar,” a well-known monument which is situated near the Himalayas. It is a spherical building with a spiral stairway leading to the top.

• Premise – From the summit, you can see the natural splendor that surrounds that location. Priyanka thought of reaching the top. She also brought a lot of chocolates for the youngsters.
• Rules – As she climbs higher, chocolate falls from her purse with each step. When she reaches the summit, she gives half of the chocolates she has left to the tiny children. Chocolate slips down with each step in the process of climbing down. She repeats the ritual at five more holyghars, leaving her with no chocolates.
• Objective – Can you figure out how many chocolates there were in total initially?

### The solution to the Number of Chocolates in a bag

9300 chocolates are the answer. Let us see how to find the number of chocolates in a bag?

Let’s start at the beginning. First, we’ll look at the sixth holy ghar.

1. Priyanka descended a hundred steps, thus she must have been left with 100 chocolates after contributing.
2. She now provides half of the entire chocolates, implying that she had 200 chocolates before donating.
3. Now that she’s lost 100 chocolates while ascending, she’ll need 300 chocolates to reach the top of the fifth holy ghar.
4. The fourth holy ghar is now being treated in the same way.
5. So, before climbing fourth, she must have consumed (300+100)*2+100 chocolates, totaling 900.
6. She must have (900+100)*2 + 100, which equals 2100, before ascending third.
7. She must be eating 4500 chocolates right now before the rising second.

Finally, she must have 9300 chocolates before climbing. So she had a total of 9300 chocolates at the start.

## Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

## Checkout list of all the video courses in PrepInsta Prime Subscription

• Fox, Duck and Circular Pond
• Caves and a thief
• Couples crossing the river
• Distance walked to office
• Number game to save life Answer