{"id":29226,"date":"2014-02-08T04:09:52","date_gmt":"2014-02-08T04:09:52","guid":{"rendered":"http:\/\/ci027cfe78001c2697"},"modified":"2025-01-28T20:56:48","modified_gmt":"2025-01-28T20:56:48","slug":"3-wallets-problem-1391832592","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/3-wallets-problem-1391832592","title":{"rendered":"The 3 wallets problem"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/the-3-wallets-problem.png\" title=\"\"><\/figure>\n<p><em>This post was released for <a href=\"https:\/\/store.bitcoinmagazine.com\/\">Issue 17 of Bitcoin Magazine<\/a> as part of a series of articles about puzzles and games that started with <a href=\"https:\/\/store.bitcoinmagazine.com\/\">Issue 12<\/a>.<\/em><\/p>\n<p>Here I present a few challenges for bitcoin hoarders, about keeping bitcoins in separate wallets according to some restrictions. Have fun solving them!<\/p>\n<p>Suppose that I have 10 bitcoins and I want to store them in 2 separate wallets (A and B) without splitting coins (that is, not using fractional units). Keeping a wallet empty is allowed. It\u2019s easy to figure out that there are 11 ways of doing so: (0,10), (1,9), (2,8), (3,7), (4,6), (5,5), (6,4), (7,3), (8,2), (9,1) and (10,0).<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/image00-1.png\" title=\"\"><\/figure>\n<p>&nbsp;Challenge 1: Now suppose that I have 1,000 bitcoins\u00b9. How many ways of distributing them among the two wallets are there?<\/p>\n<p>&nbsp;Now suppose that, for security reasons, I don\u2019t want to keep more than 800 bitcoins in a single wallet.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/image02.png\" title=\"\"><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/image01-1.png\" title=\"\"><\/figure>\n<p>&nbsp;Challenge 2: How many ways of distributing those 1,000 bitcoins are there now?<\/p>\n<p>Now suppose we add a 3rd wallet and I have no capacity restrictions. Remember that keeping some wallets empty is legal.<\/p>\n<p>Challenge 3: How many ways of distributing those 1,000 bitcoins among the 3 wallets are there?<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/image03-1.png\" title=\"\"><\/figure>\n<p>Let\u2019s add a capacity restriction of 800 bitcoins per wallet once again.<\/p>\n<p>Challenge 4: How many ways of distributing those 1,000 bitcoins among the 3 wallets are there now?<\/p>\n<p>Now for those that have cheated by using a computer to solve the previous challenges\u2026<\/p>\n<p>Challenge 5: How many ways of distributing 21 million bitcoins among 3 wallets with a maximum allowed capacity of 10 million each are there?<\/p>\n<p>And now for those that have solved all the challenges so far, suppose that wallet A has a maximum allowed capacity of 5 million bitcoins, wallet B has a maximum allowed capacity of 10 bitcoins and wallet C has a maximum allowed capacity of 15 million bitcoins.<\/p>\n<p>Challenge 6: How many ways of distributing those 21 million bitcoins among the 3 wallets are there now?<\/p>\n<p>And finally, let\u2019s add a fourth wallet and remove the capacity restrictions.<\/p>\n<p>Challenge 7: How many ways of distributing those 21 million bitcoins among the 4 wallets are there now?<\/p>\n<p>Please post your answers in my forum:<\/p>\n<p><a href=\"http:\/\/nestorgames.freeforums.org\/bitcoin-magazine-puzzles-f16.html\" target=\"_blank\" rel=\"noopener\">http:\/\/nestorgames.freeforums.org\/bitcoin-magazine-puzzles-f16.html<\/a><\/p>\n<p>&#8230; and I will reward the best post with a copy of one of my games. I\u2019m looking forward to discussing your findings. Thank you for reading and for your donations!&nbsp;<\/p>\n<p>You might also enjoy my previous posts:<\/p>\n<ul>\n<li><a href=\"https:\/\/bitcoinmagazine.com\/articles\/bitcoinstellations-1382120835\">Bitcoinstellations<\/a><\/li>\n<li><a href=\"https:\/\/bitcoinmagazine.com\/articles\/rise-of-the-machines-1383576469\">Rise of the machines<\/a><\/li>\n<li><a href=\"https:\/\/bitcoinmagazine.com\/articles\/creativity-as-problem-solving-1386794422\">Creativity as problem solving<\/a><\/li>\n<li><a href=\"https:\/\/bitcoinmagazine.com\/articles\/bitcoin-maze-1387584264\">The Bitcoin Maze<\/a><\/li>\n<li><a href=\"https:\/\/bitcoinmagazine.com\/articles\/bitcoin-harvest-1389405220\">The Bitcoin Harvest<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post was released for Issue 17 of Bitcoin Magazine as part of a series of articles about puzzles and games that started with Issue 12. Here I present a few challenges for bitcoin hoarders, about keeping bitcoins in separate wallets according to some restrictions. Have fun solving them! Suppose that I have 10 bitcoins [&hellip;]<\/p>\n","protected":false},"author":3685,"featured_media":29222,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[163],"class_list":{"0":"post-29226","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-wallets"},"author_data":{"id":3685,"name":"Nestor Romeral Andres","nicename":"106-nestor-romeral-andres","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/nestor-romeral-andres-promo-image-96x96.png"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/the-3-wallets-problem.png","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/29226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/3685"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=29226"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/29226\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/29222"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=29226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=29226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=29226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}