JS Programming / Money Doubled
English

সমস্যা
৪ কোনা একটা পুকুরের কথা চিন্তা করা যাক যার যেকোন কোনায় কিছু টাকা নিয়ে ডুব দিয়ে উঠলে টাকা দিগুণ হয়ে যায়। আপনাকে বলা হল কিছু টাকা নিয়ে এর প্রথম কোনায় ডুব দিতে এবং ডুব দিয়ে উঠার পর এই কোনায় একটা নির্দিষ্ট পরিমাণ টাকা রাখতে। তারপর ২য় কোনায় ডুব দিয়ে উঠার পর আগে যে পরিমাণ টাকা রেখেছিলেন ঠিক সেই পরিমাণ টাকা রাখতে। এভাবে এর প্রত্যেক কোনায় ডুব দিয়ে উঠে প্রথমবার যত টাকা রেখেছিলেন প্রত্যেক কোনায় ঠিক সেই পরিমাণ টাকা রাখতে হবে এবং শেষ কোনায় ডুব দিয়ে টাকা রাখার পর হাতে যেন কোনো টাকা না থাকে।
এখন আপনাকে বের করতে হবে কত পরিমাণ টাকা নিয়ে শুরু করলে এবং কত করে রাখলে শেষে হাতে কোন টাকা অবশিষ্ট থাকবে না।

বি:দ্র:
১। রাখা টাকার পরিমাণ শূণ্যের চেয়ে বেশি হতে হবে।
২। শুরু করা টাকার অঙ্কে বা প্রত্যেকবার টাকা রাখার ক্ষেত্রে ভগ্নাংশও গ্রহনযোগ্য।

Money Doubling Riddle
Think about a pond where, when someone dives to any corner of it with some money and comes up, his/her money becomes doubled. You are told to dive to the corners of the pond with some money and to put a specific amount of money in that corner. Then dive to the 2nd corner, comes up, and put the same amount of money you put on the 1st corner. Dive to every corner of the pond in the same way, come up and put the same amount in every corner. Continue until you dive to all four corners.
Now you have to find out that, how much to start with and how much money to put each time so that you have no money left at the end.

Hints:
1. The amount of money that to put, should be above zero.
2. Fraction is acceptable too in case of the starting money or the money to put.

সমাধান প্যানেল দেখান

শুরুর টাকা Initial Money : প্রত্যেকবার রাখার পরিমাণ Put Each Time
:

টাকা Money in Hand দ্বিগুণ Double রাখতে হবে Have to Put অবশিষ্ট Remain