Don’t Flip Out

You are blindfolded, and are told if you can correctly solve the following, the blindfold will be removed. You are given 99 coins that are heads up, and an unknown number of coins that are tails up. You never remove the blindfold, you do not peek, …. You can count the coins, put them in arbitrary many piles, flip whichever coins you want, but remember, when you flip and when you sort, you DO NOT know which ones are heads up, which are tails up. In the end, you must end up with just two piles, each containing an equal number of heads. How do you do this?

Communicated by Eric Adelizzi.

108 Comments

  1. Steven Miller on June 11, 2018 at 1:32 am

    you don’t know which coins are heads or tails

    you are blindfolded

    you don’t know which one is a tail to flip…



  2. Luis on June 10, 2018 at 8:13 pm

    The problem does not say anything about the final two piles containing an equal number of tails, just an equal number of heads. I first was thinking of averaging but once I realized the denominator (ratio) of heads to tails does not have to be the same, the problem is simplified. So why wouldn’t I just flip one of the tail coins and make the heads an even 100, then from there, I can just create any combination of piles where I could have 1/x = 1/x all the way to 50/x = 50/x. This would just increase the tail pile but would not affect the relationship of heads between the two piles.



  3. Steven Miller on May 10, 2018 at 12:48 am

    No. You have some number of coins. You know that 99 of the coins are heads, but you do not know which ones. You want to have two piles where the two piles have the same number of heads. By this, I mean heads face up.



  4. joe on May 9, 2018 at 8:44 pm

    everything has heads. two piles of equal numbers would have equal numbers of heads. Not heads up.



  5. Steven Miller on April 10, 2016 at 2:26 pm

    you don’t have a tails pile — you don’t know which is which, all mixed together



  6. Jen on April 10, 2016 at 2:07 pm

    You take one from the “tails” pile, flip it, and add it to the 99 heads. Then sort that pile of 100 into two piles of 50.



  7. Steven Miller on March 1, 2016 at 2:27 pm

    I don’t see how that solves the problem. You need to say how many are in each pile and what you flip and when. Email to you bounced, you can email me at [email protected]



  8. Thomas Costello on March 1, 2016 at 1:38 pm

    100?



  9. Steven Miller on November 19, 2015 at 7:33 pm

    Email to you bounced; please email me at [email protected]



  10. Steven Miller on November 19, 2015 at 7:33 pm

    Email to you bounced; please email me at [email protected]



  11. ellen kingery on November 19, 2015 at 5:25 pm

    Answer!



  12. ellen kingery on November 19, 2015 at 5:24 pm

    I need the answer!



  13. Steven Miller on October 13, 2015 at 5:10 pm

    no — want same number of heads face up.
    for the die hard: is it the water jug problem? A variant of that might be on the site in additional problems. it’s a great one, and available on YouTube: https://www.youtube.com/watch?v=5_MoNu9Mkm4



  14. W. Zuri on October 13, 2015 at 3:55 pm

    Technically, to every tail, there is a head (each coin has a head and a tail). To split them into even piles would simply require knowing the number of coins (99 + n) and finding a number that divides evenly into it. When the coins are split into the piles, each pile will be “…containing an equal number of heads…”

    I have a fun riddle I use with my students in HS. I got it from Die Hard. Let me know if you’d like me to share!



  15. Steven Miller on July 16, 2013 at 12:33 am

    email to you bounced — please email me at [email protected]



  16. ans on July 12, 2013 at 8:25 pm

    99 is odd so how can it be divided in two and if you flip a coin then you are not certain.



  17. Steven Miller on November 7, 2012 at 8:26 pm

    email me sjm1 AT williams.edu



  18. anonymous on November 7, 2012 at 8:13 pm

    I have no idea how to solve this can you plz tell me the answer or a hint



  19. Steven Miller on October 6, 2012 at 12:56 am

    yes, have to use all



  20. Timothy on October 3, 2012 at 1:15 pm

    do I have to use all the coins for the final two piles? pls send me a hint also.



  21. Steven Miller on September 8, 2012 at 1:11 am

    well done! not posting as it’s the soln; email me at sjm1 AT williams.edu



  22. Steven Miller on September 5, 2012 at 2:51 pm

    you can do it with 100% certainty — will email a hint



  23. Riddley Scott on September 5, 2012 at 1:11 pm

    Do you get them all together and flip each one? This way you have a 50% chance of them landing on heads and a 50% chance of tails. This will be the quickest I’ve got one if this is right, if not can I have a hint please. Brilliant site!



  24. Steven Miller on August 28, 2012 at 1:26 am

    Not sure what you mean — sjm1 AT williams.edu



  25. ertuy on August 28, 2012 at 12:27 am

    444444



  26. Steven Miller on August 14, 2012 at 3:31 am

    your email didn’t work — email me at sjm1 AT williams.edu — wrong answer here



  27. Xiong on August 14, 2012 at 3:25 am

    I would put all the coins together. Flip each coin and separate it into two piles without looking, one being heads and one being tails. The probability of getting a head and tail after a flip is 50/50.



  28. Steven Miller on July 19, 2012 at 3:17 am

    sure /s/



  29. iors on July 17, 2012 at 10:00 pm

    maybe I’m getting dumber, but can’t think of how. Hate to do this, but could you please send me a hint.



  30. Steven Miller on July 9, 2012 at 2:24 am

    but how do you know the two piles have the same number of heads now? //s



  31. nhill on July 8, 2012 at 11:53 pm

    Can’t you just flip all the coins, then split the coins into two piles?



  32. Steven Miller on July 5, 2012 at 1:54 pm

    The coins are all in one big pile initially sjm1 AT williams.edu



  33. Vedad on July 5, 2012 at 8:48 am

    1. take 99 coins which are in one pile already
    2. flip all 99 coins so you get tails up
    3. merge two groups of coins
    4. now you have n number of coins tails up (hope we have have an equal number :))
    5. next we take one coin turn it head up put on one side then next coin head up put on other side until you end with no more coins.



  34. Steven Miller on June 9, 2012 at 3:54 am

    Anonymous: “doesnt he have 2 piles now?….” I might have misread what you posted. could you email me at sjm1 AT williams.edu



  35. Steven Miller on June 6, 2012 at 7:49 pm

    but you need two piles. email me at sjm1 AT williams.edu for a hint. ..s



  36. Anonymous on June 6, 2012 at 6:50 pm

    1. put 99 coins in one pile
    2. flip ALL of them
    3.You now have equal heads



  37. Steven Miller on May 7, 2012 at 3:09 pm

    will do



  38. Tam on May 7, 2012 at 2:57 pm

    Please send a hint for “Don’t Flip Out”.



  39. Steven Miller on May 3, 2012 at 5:40 pm

    done



  40. Tam on May 3, 2012 at 5:36 pm

    Please send a hint to my email.



  41. Steven Miller on May 3, 2012 at 5:33 pm

    but that’s not the soln as they aren’t necessarily the same number up //s



  42. Tam on May 3, 2012 at 5:11 pm

    You should just split the group in half and they will both have the same amount of heads, but they may not all be “heads up”.



  43. Steven Miller on April 24, 2012 at 9:54 pm

    but you don’t know which ones are heads up….



  44. Jann on April 24, 2012 at 6:19 pm

    Just put aside the 99 u know for sure are heads up and leave the others



  45. Steven Miller on April 13, 2012 at 12:39 am

    email me at sjm1 AT williams.edu and include the text of the riddle and I’ll send a hint ..s



  46. Fred on April 12, 2012 at 8:08 pm

    send hint plz!



  47. Steven Miller on April 10, 2012 at 1:55 pm

    but that might not solve it, depending on the configuration



  48. Ann on April 10, 2012 at 9:42 am

    Can I just turn over one coin??



  49. Steven Miller on April 4, 2012 at 6:18 am

    I’ll send a more detailed hint. //s



  50. Efrain Bernal on April 4, 2012 at 2:51 am

    Steve,
    I read the hint you gave me also above. Still there is no answer.
    First let me get something clear, when you say “…equal number of heads” you mean heads up, correct?
    If that is the case, whatever piles i make, i will have a mix of heads up and tails up no matter how many times i flip then, so i will never know which ones are heads up.
    For example, if i make a pile of three coins, i will have all tails up, all heads up or a mix, if i flip them, i will just have the opposite, still an unkown number of heads up.



  51. Steven Miller on April 4, 2012 at 12:50 am

    I’ll send a hint first. //s



  52. Efrain Bernal on April 3, 2012 at 10:45 pm

    I couldnt figure this one out. Could you send me the answer, please?
    Thank you.



  53. Steven Miller on March 27, 2012 at 6:33 pm

    It’s hard to read the write-up. I don’t think it’s correct. First of all, n can be any number and need not be even….



  54. sauravshakya on March 27, 2012 at 12:21 pm

    first count the number of coins(n) and get the number of tails by ( n – 99 )(since n must be even number n-9 will be an odd number). if the number of tails is less than that of number of heads flip all the coins. now we will have number of tails greater than heads or equal number heads and tails. now divide the coins into two piles with equal number of coins. now since the number of head coins is a odd number two piles cannot have equal number of heads which means number of head coins in one group will be less than that of number of heads of other group. and the number of heads will also be less than number of tails in the group with less number of heads. now take one group and start to flip the coin of that group one by one until the number of heads will be equal. if the number of heads will not be equal even after you flipped all the coins of that group then flip the whole group at once.(you took the group with greater number of heads). now take other group and flip all the coins one by one and eventually a time will come when you will have equal number of heads in both the group.
    I HOPE I MADE IT CLEAR.(*hey man i know the solution of GEOMETRY but dont know how to send it to you)



  55. Steven Miller on March 9, 2012 at 2:42 am

    you can flip any coin, head or tail, but you don’t know if it’s a head or tail as you’re blindfolded.



  56. StarFox on March 9, 2012 at 2:07 am

    I suppose you can not flip any heads, but sort the tails… i ‘m not sure if it’ll work, it seems to work



  57. Steven Miller on March 6, 2012 at 6:52 am

    not necessarily — if you flip all the coins, every 2 flips returns you to where you started; email me at sjm1 AT williams.edu for hints / solns.



  58. Lark on March 6, 2012 at 5:14 am

    This may sound a tad off, but what if you sorted all of your coins into two equal piles. Then, you flip all the coins a large number of times. As the amount of flips approaches infinity, the odds would have it that you have an equal amount of heads and tails in each pile!



  59. MelissaLewis on March 5, 2012 at 1:49 am

    You would divide both piles in half and put those halves together??



  60. Steven Miller on February 21, 2012 at 1:56 pm

    I like your originality,but there is a less destructive soln too. //s



  61. Iwain on February 21, 2012 at 7:04 am

    Cut all of the coins in half and put one half of each coin into each of the two piles, being careful not to flip any of them. This is cheating though.



  62. Steven Miller on February 12, 2012 at 2:50 am

    sure == have two piles, one with 99 and one with n – 99



  63. Anonymous on February 11, 2012 at 7:18 pm

    Could I get a hint please?



  64. Steven Miller on February 10, 2012 at 6:00 am

    I’ll send a hint ..s



  65. Maurice on February 10, 2012 at 5:36 am

    I really couldnt solve this one. Whats the solution?



  66. Inez on January 29, 2012 at 4:46 am

    Just divide the group of coins into two stacks. They will always have an equal number of heads because each coin will have one head and one tail.



  67. Steven Miller on December 30, 2011 at 10:05 pm

    Not quite: you don’t know which coins are heads and which are tails. You do know the total number of coins, call it N (if you want, make N = 2011, but N can be ANY number at least 99).



  68. Naj on December 30, 2011 at 9:45 pm

    I am given 99 Heads up + Unknown Tails up. So will just flip given 1 Tail up coin to heads ( doesn’t matter how many) . it will be 100 now split in 50 each



  69. Steven Miller on December 30, 2011 at 9:38 pm

    anonymous: correct, well done! not posting your response as it’s the soln



  70. Steven Miller on December 15, 2011 at 9:58 pm

    glad you enjoyed //s



  71. Anonymous on December 15, 2011 at 9:48 pm

    wow so cool



  72. Steven Miller on December 12, 2011 at 3:34 am

    Fred: I don’t see how to do it this way, as now things are more indeterminate. Email me at [email protected] if you want to chat more about hints / soln.



  73. fred on December 12, 2011 at 3:33 am

    Am I on the right track? You flip one coin which will give you either 98 or 100 heads. Then split the coins into 2 piles.



  74. Steven Miller on December 12, 2011 at 3:17 am

    yes



  75. fred on December 12, 2011 at 2:53 am

    Do you have to use all the coins?



  76. Steven Miller on December 9, 2011 at 9:27 pm

    sadly, you are blindfolded and can’t count like this



  77. Steven Miller on December 9, 2011 at 9:26 pm

    99 heads up, unknown heads down, and you are blindfolded



  78. Ron Freeze on December 9, 2011 at 7:00 pm

    count the number of coins that are tails up. add 99, then divide that number evenly whether its 2 or 3, etc. then turn the appropriate number of heads coins to tails and move those to the tails pile. then flip half of the coins in the tails pile to heads. then flip half of the coins in the heads pile to tails thus giving you an equal amount of heads in each pile



  79. Ron Freeze on December 9, 2011 at 6:49 pm

    is there 99 total coins or is there just 99 that are heads up?



  80. Steven Miller on December 8, 2011 at 8:42 pm

    Not quite — the problem is we don’t know which coins are heads and which are tails



  81. Darius Green on December 8, 2011 at 7:39 pm

    When solving this question one must first understand that the number of tails is unknown i.e. it doesn’t matter. Therefore, if you are given an odd number of heads flip one of the 99 heads over and split 49 heads into two piles, arranging the tail coins as you wish. Voila!



  82. Steven Miller on December 7, 2011 at 1:41 am

    Correct solution, explained nicely. Not posting as it’s the answer.



  83. Steven Miller on December 1, 2011 at 9:25 pm

    cute but there is a non-cute soln too



  84. Seawulf on December 1, 2011 at 9:02 pm

    Put them on edge… 0 heads up in either group…



  85. Steven Miller on November 30, 2011 at 6:42 pm

    you start with one big pile with some number of tails and 99 heads and you must split into two piles such that….



  86. I. Singh on November 30, 2011 at 6:36 pm

    are their 2 piles of coins , i.e., one for heads n one for tails(in the question)? or just one pile having 99 heads & unknown tails?



  87. Steven Miller on November 22, 2011 at 12:00 pm

    you’re on the right track but need a few more details



  88. Jon on November 21, 2011 at 11:21 pm

    It’s not that hard, split the coins in 2 piles, because there is a head and a tail on both sides, then whatever one is with fewer coins add your “head” so then it is even



  89. Steven Miller on November 15, 2011 at 2:15 am

    You may assume you have hands (actually, I think it’s safe to just assume one hand!)



  90. Anonymous on November 15, 2011 at 12:24 am

    you need hands to put them into piles…



  91. Shreya on November 1, 2011 at 3:42 am

    hmmm tried but couldnt figure out! Please let me know the answer!



  92. Steven Miller on October 20, 2011 at 8:03 pm

    Glad you enjoyed it Joel; correct soln (not posting your note as it gives away the answer).



  93. Steven Miller on October 18, 2011 at 1:28 pm

    You want the same number of heads face up.



  94. William Fox on October 18, 2011 at 6:32 am

    If we are talking about coins they each have one head so, just make two piles. Another way is make no piles no coins are in so there are the same ammount of heads.



  95. Steven Miller on October 11, 2011 at 1:25 pm

    They don’t have to be in two equal parts.



  96. Mads on October 11, 2011 at 10:36 am

    count the no of coins – assume that there are 100 coins. I know 99 of them are heads up, of these i have to turn 49 to tails.



  97. Mads on October 11, 2011 at 10:33 am

    99 cannot be divided equally in 2 parts



  98. Steven Miller on October 11, 2011 at 1:59 am

    Did I mention you have no hands. Could’ve sworn I mentioned that…. Also have no eyes, no friends with eyes or hands, ….



  99. Anonymous on October 11, 2011 at 1:04 am

    You feel the ridges



  100. Steven Miller on September 28, 2011 at 4:59 am

    Do not know which are heads.



  101. quess on September 27, 2011 at 4:17 pm

    i need one hint.

    Do i know which 99 coins are heads or is there just a pile of coins where is 99 heads and unknown number of tails?



  102. Steven Miller on August 19, 2011 at 2:07 am

    Sadly that’s cheating.



  103. Anonymous on August 19, 2011 at 12:25 am

    Feel the heads of the coin
    Feel the tails of the coin
    Later just sort them



  104. Anonymous on August 19, 2011 at 12:24 am

    Count the face ups by feeling the coins.
    Count the face downs by feeling the coins.
    Sort them.



  105. Steven Miller on August 18, 2011 at 1:59 am

    This isn’t the correct answer. Try some special cases. Imagine you have say 6 coins and 2 are heads.



  106. Justin on August 16, 2011 at 1:28 pm

    All the coins, no matter which way they face have boths heads and tails.
    Thus if you want two piles with an equal number of heads, count all the coins and split the amount in two. And then you will have two piles with an equal amount of heads.

    I’m not sure if I understood the question correctly, the answer seems too simple.



  107. Steven Miller on June 28, 2011 at 3:55 am

    Not sure what this means.



  108. Mattingly on June 27, 2011 at 10:25 am

    You keep it up now, undrsteand? Really good to know.



Leave a Comment