June 02, 2007

99 Cent Game

Heidi and David are in Hawaii on vacation and buy a cone of Dole Whip, which comes to $2.01 after tax. The cashier gives Heidi three quarters, a dime, two nickels, and four pennies.

"I hate getting 99 cents of change," says Heidi.

"Ah hah, but then you can play the 99 cent game," replies David.

David explains the rules:

Heidi will arrange her ten coins in a single line, in any order she likes.

Then, starting with David, each of them will take turns taking a coin from one of the two ends of the line, until each has five coins.

In the end, whoever has more money wins.

This simple game is actually pretty fun. You can play it with any handful of coins, and it is not obvious what the best strategy is. But there is a simple winning strategy.

If Heidi gets to place the coins and David goes first, which player has a winning strategy, Heidi or David?

Posted by David at June 2, 2007 06:32 PM
Comments

Heidi's got you beat.

Posted by: Peter H at June 4, 2007 08:13 PM

Well, I agree that Heidi has to win, b/c David wouldn't post a puzzle where he makes Heidi a guaranteed loser. Would he?

I assume that you can simplify the game to have 7 pennies and 3 quarters, since winning two quarters is the only thing required to win either game. Where should Heidi place the quarters? I can't figure out a sequence to guarantee a win for her. For every sequence I come up with (well, all 5 that i tried), there's a way for David to get two quarters.

Posted by: Kevin B at June 5, 2007 02:09 AM

Nope, I'm a meanie.

David has a guaranteed win, regardless of how Heidi places the coins. In fact, David can win with any set of coins of any denomination as long as the number of coins is even (so they both get the same number of coins), and as long as the total amount of money is odd (to prevent ties).

How?

Posted by: David at June 6, 2007 05:35 AM

We played this with our grandson (who was delighted with it!)

He beat me every time and explained his strategy this way: "I'll let you go first Grandma because I want to arrange the coins." (Okay letting ME go first? That's a change!) Then he explains that he groups the weakest coins (his words) together and then alternates the "strong" coins between the weak ones. Finally he places one of the "weakest" coins at each end and then invites me to go first with a big grin!

I was fascinated by his use of the word "weak" for a penny and "strong" for a quarter.

Posted by: Mary at June 8, 2007 10:27 AM

I forgot to mention that our grandson is 7.

I keep reading this blog for posts like these ... I'm dying to teach him Phython and just waiting for the right time to draw him in ...

Posted by: Mary at June 8, 2007 10:29 AM

David easily wins if he goes first.

Part 1.

The key is the 3 quarters. Two quarters make 50 cents, which is more than the sum of all the other coins combined. Since there are 3 quarters in the game, somebody HAS TO end up with at least 2 of them; that person wins. (in fact, we could now forget about any specific denominations and substitute binary "1"'s for quarters, and "0"'s for non-quarters, and play to get 2 "1"'s).

Part 2.

Let's assume the coin positions are numbered 0 to 9, and that David and Heidi take consecutive coins from the left, David starting.

0123456789
DHDHDHDHDH

After David's move Heidi can pick either 1 or 9, both odd-numbered positions. Whichever, she picks David can continue to pick even-numbered coins, forcing Heidi to stay w/ odd-numbered ones. Once he chooses even or odd positions, he can defend this invariant! Now, w/ 3 quarters in the game, two have to be either odd or even. David therefore picks even or odd positions respectively, starts with 0 for even, or 9 for odd, and just shadows Heidi's picks to continue having access to even or odd numbered coins.

This is an interesting case of a "defensible invariant."

Posted by: Jacek Ambroziak at June 14, 2007 01:11 PM

Excellent!

The strategy works for any combination of coins, as long as there are an even number of coins with an odd sum.

If there are an odd number of coins, it is easy to arrange a loss for the first picker, even though he gets the extra coin. I find it amusing that parity plays such a role in a game that is played only on the ends.

Do you know any other cute games that can be played with a pocket full of change?

Posted by: David at June 18, 2007 12:33 PM

It is one of these puzzles that can take a while to solve (it took me a few whiles :-) ) but that, once solved, seem complete nobrainers. Here's another way to describe the solution.

Imagine any even number of coins of arbitrary denominations arranged in a sequence. Now imagine that the coins lie on alternating black and white fields. Assume that the first field is white, and therefore the last one must be black. It is easily seen that once David "picks a color" by taking either the 1st or the last coin, he can continue picking same-colored coins till the end (leaving all the opposite colored fields for Heidi). If he prefers "white coins" to black ones, 'cause they sum up to a higher value, he can have them!

A similar "coloring method" works for another puzzle, the "mutilated chessboard" problem, where 2 diagonally opposite tiles are removed, and the question is whether the 64-2=62 tile chessboard can be covered by 2-tile domino pieces.

Posted by: Jacek Ambroziak at June 18, 2007 02:51 PM

http://www.nikeairforce1.us.org/
http://www.monclers.me.uk/
http://www.moncleroutlet-jackets.us.com/
http://www.pandora-braceletcharms.us/
http://www.adidas-yeezy.org.uk/
http://www.jordan-12.us.com/
http://www.pandorajewellery.us.com/
http://www.ferragamo-belts.us.com/
http://www.pandora-jewelry-charms.us.com/
http://www.pandorajewelrycz.us.com/
http://www.skechers.us.com/
http://www.fjallraven-kanken.us.com/
http://www.sandalsfitflop.us.com/
http://www.burberryshandbags.us.com/
http://www.nmdxr1.us/
http://www.nike-epicreact.us.com/
http://www.monclerofficial.us.com/
http://www.balenciagatriples.us.org/
http://www.jordan-4.us.com/
http://www.redbottomshoeslouboutin.us.com/
http://www.pandora-jewelryofficialsite.us.com/
http://www.airforceoneshoes.us.com/
http://www.pandoracom.us/
http://www.newjordansshoes.us.com/
http://www.pandorascharms.us.org/
http://www.pandorasjewelry.ca/
http://www.pandora-bracelet.us.org/
http://www.retro-jordans.us/
http://www.pandorajewelrywebsite.us.com/
http://www.nike-sneakers.us.com/
http://www.nikeshoesforwomens.us/
http://www.pandoracharmsjewelry.us.org/
http://www.nikeshoes-cheap.us.com/
http://www.edhardys.us.com/
http://www.adidashumanrace.us/
http://www.jordans-sneakers.us.com/
http://www.pandorajewelry-outlets.us.com/
http://www.air-maxplus.us/
http://www.birkenstock-shoes.us/
http://www.pandorajewelrycharms.us.org/
http://www.nike-airvapormaxflyknit.us/
http://www.adidasyeezysshoes.us.com/
http://www.nikeair-maxs.us.com/
http://www.jordanshoesretro.us.com/
http://www.yeezys-shoes.us.org/
http://www.airjordansneakers.us.com/
http://www.isabel-marant.us.com/
http://www.balenciagaofficial.us.com/
http://www.kankenbackpacks.us/
http://www.jordanshoess.us.com/
http://www.jordan9.us.com/
http://www.christianlouboutin-outlets.us.com/
http://www.curry5.us.org/
http://www.katespadeoutlets-online.us.com/
http://www.christianlouboutinsshoes.us.com/
http://www.monclersjackets.us.com/
http://www.jordan11low.us.com/
http://www.yeezysadidas.us.com/
http://www.mbt-shoes.us.org/
http://www.outletbirkenstock.us.com/
http://www.pandorascharm.us.org/
http://www.airjordan11s.us.com/
http://www.fitflopsclearance.us.com/
http://www.airmax270flyknit.us/
http://www.pandorajewelryofficial-site.us/
http://www.birkin-bag.us.com/
http://www.nmds.us.com/
http://www.adidas-shoes.org.uk/
http://www.pandoraoutlet-charms.us.com/
http://www.pandoras.us.org/
http://www.pandorajewelryofficial-site.us.com/
http://www.yeezy-700.us/
http://www.christian-louboutinshoesuk.org.uk/
http://www.pandoraofficialsite.us.com/
http://www.pandora-online.us.com/
http://www.pandoracharmsjewelrys.us.com/
http://www.balenciagassneakers.us.com/
http://www.nikeairmax270s.us.com/
http://www.nikefactory-store.us.com/
http://www.nmd-adidas.us.org/
http://www.yeezy-sneakers.us.com/
http://www.pandoras-outlet.us.com/
http://www.fitflop-saleclearance.us.com/
http://www.nikeoutletsfactory.us.com/
http://www.monclerjacket.us.org/
http://www.pandoraonline.us/
http://www.christian-louboutinsshoes.us.com/
http://www.vans-shoes.us/
http://www.eccos.us.com/
http://www.ferragamo-outlets.us/
http://www.adidas-stansmith.us.com/
http://www.birkenstocks-outletonline.us.com/
http://www.nikeclearancestores.us.com/
http://www.shoeslouboutin.us.com/
http://www.katespadecom.us.com/
http://www.superstaradidas.us.com/
http://www.nike-presto.us/
http://www.nikeoutletstoresonlineshopping.us.com/
http://www.nikevapor-max.us.com/
http://www.jordan14.us.com/
http://www.valentinosshoes.us.org/
http://www.ralph-laurenukoutlet.org.uk/
http://www.katespades-handbags.us.com/
http://www.airjordanretro11.us.com/
http://www.longchampoutlet-online.us.com/
http://www.nikeairmax98.us/
http://www.birkenstock-sandals.us.org/
http://www.pandoracharms-clearance.us.com/
http://www.outletnikestore.us.com/
http://www.jordan-shoesformen.us.com/
http://www.pandoraoutletjewelry.us.org/
http://www.ecco-shoes.us.com/
http://www.kate-spadeshandbags.us.com/
http://www.jordan-8.us/
http://www.airmax270.us.org/
http://www.nikeairmax-shoes.us.com/
http://www.yeezys750.us/
http://www.pandoras-jewelry.ca/
http://www.nike-shoxs.us/
http://www.fitflopsaleclearances.us.com/
http://www.pandoracharmsbracelets.us.com/
http://www.balenciagas.us.org/
http://www.superstarsadidas.us/
http://www.ukair-max.org.uk/
http://www.moncleroutletstoreonline.us.com/
http://www.nikeairjordan.us.com/
http://www.roshenike.us.com/
http://www.pandora-charmsoutlet.us.org/
http://www.bottega-veneta.us.org/
http://www.yeezys-boost.us.org/
http://www.airforce-1.us.com/
http://www.nikeclearances.us.com/
http://www.nikeoutletsale.us.com/
http://www.birkenstocksandalsoutlet.us.com/
http://www.nike-roshes.us/
http://www.pandoraa.us.com/
http://www.nike-basketballshoes.us/
http://www.goyardsbags.us.com/
http://www.jordan11winlike96.us/
http://www.pandorashop.us.com/
http://www.timberlands-outlet.us.com/
http://www.pandorabracelets.us.com/
http://www.fitflop-shoes.us.org/
http://www.canadapandoracharms.ca/
http://www.nikesoutlet.us.com/
http://www.fitflop-outlet.us.com/
http://www.louboutinshoes-uk.org.uk/
http://www.goyardshandbags.us.com/
http://www.nikeairmaxs-270.us.com/
http://www.pandorabracelet-clearance.us.com/
http://www.redbottomslouboutin.us.org/
http://www.jewelrypandora.us.org/
http://www.bottegaveneta-handbags.us.com/
http://www.pandorajewelrybracelets.us.com/
http://www.kyrieirving-shoes.us.org/
http://www.nikeoutletsonline.us.com/
http://www.disneypandoracharms.us/
http://www.katespades.us.org/
http://www.nikeshoes-formen.us/
http://www.christianlouboutin-heels.us.com/
http://www.ferragamos.us.org/
http://www.jordanretros.us.com/
http://www.pandorajewelry-officialsite.us.com/
http://www.shoes-jordan.us.com/
http://www.jordan10.us.com/
http://www.adidasnmdr1.us.org/
http://www.kyrie4.us.org/
http://www.pandoraringssite.us/
http://www.yeezyonline.us.com/
http://www.valentinooutletshoes.us.com/
http://www.vapormax-plus.us.com/

Posted by: Lisa at November 28, 2018 02:34 AM

https://www.golden-gooses.us.com/
https://www.shoesyeezy.us.com/
https://www.filadisruptor2.us/
https://www.airmax270s.us.com/
https://www.christian-louboutins-shoes.us.com/
https://www.pandora-earrings.us/
https://www.adidas-original.us/
https://www.pandoranecklaces.us/
https://www.pandorajewelry-officialsites.us.com/
https://www.nikecortezs.us/
https://www.nikeshoesshop.us.com/
https://www.nikeair-max270.us/
https://www.adidasstan-smith.us.com/
https://www.pandoracharmssales.us.com/
https://www.christianlouboutinshoessaleoutlets.us/
https://www.bottegasveneta.us.com/
https://www.airmaxs-270.us.com/
https://www.stan-smith-adidas.us/
https://www.nikesneakersformenwomen.us/
https://www.kd11shoes.us.com/
https://www.air-max95.us.com/
https://www.nikesclearance.us/
https://www.louboutinshoess.us/
https://www.pandora-braceletcharms.us.com/
https://www.adidaseqtsupport.us/
https://www.adidas-shoesoutlet.us.com/
https://www.pandorabracelets-charms.us.com/
https://www.asicsoutletonline.us.com/
https://www.yeezyscheap.us.com/
https://www.adidas-superstars.us/
https://www.longchampoutlet-onlines.us.com/
https://www.goyard-bags.us.org/
https://www.airmax-98.us.com/
https://www.nikeoutletonlineclearance.us.com/
https://www.timberlands-shoes.us/
https://www.adidasyeezys-shoes.us.com/
https://www.christianlouboutins.us.org/
https://www.michael-jordanshoes.us.com/
https://www.red-bottomheels.us/
https://www.pandorajewelry-site.us.com/
https://www.ferragamobelts.us.com/
https://www.asicsshoesoutlet.us.com/
https://www.nikeoutletstore-onlineshopping.us.com/
https://www.pandorabracelets-clearance.us.com/
https://www.timberlands-shoes.us.com/
https://www.adidasstores.us.com/
https://www.balenciagasneakerss.us.com/
https://www.yeezy-supply.us.com/
https://www.nike-airmax98.us/
https://www.fjallravens.us/
https://www.goyard-handbags.us.org/
https://www.adidas-yeezysshoes.us.com/
https://www.asicsshoes.us.org/
https://www.shoes-valentino.us.com/
https://www.filasneakers.us/
https://www.hermesbelts-outlet.us.com/
https://www.adidas-nmds.us.org/
https://www.balenciagasneakerssale.us.com/
https://www.nikeshoesonlines.us.com/
https://www.pandoraoutlet-online.us.com/
https://www.yeezysneakers.us.com/
https://www.adidassneakers.us.com/
https://www.timberlands-outlets.us.com/
https://www.adidas-eqts.us/
https://www.ultra-boost.us.org/
https://www.yeezysneakersboost.us/
https://www.ferragamosshoes.us.com/
https://www.christianslouboutin.us.com/
https://www.nike-runningshoes.us/
https://www.lebron16shoes.us/
https://www.adidasoriginalssuperstar.us.com/
https://www.valentinoshoessale.us.com/
https://www.nmds-adidas.us.org/
https://www.fjallravenbackpack.us/
https://www.lebronjamesshoessale.us.com/
https://www.christian-louboutins.us.org/
https://www.boots-timberlands.us.com/
https://www.airjordans-sneakers.us/
https://www.yeezyboosts-350.us.com/
https://www.nikes-sneakers.us.com/
https://www.valentinos.us.org/
https://www.nike-outletstores.us.com/
https://www.christian-louboutin-shoes.us.org/
https://www.yeezys-adidas.us.com/
https://www.airmaxs97.us.com/
https://www.airjordan-retro11.us.com/
https://www.pandora-charmssaleclearance.us.com/
https://www.adidassuperstarsshoes.us.com/
https://www.nikeair-max270.us.com/
https://www.jewelrycharms.us/
https://www.pandorajewellerys.us.com/
https://www.pandora-jewelrystore.us.com/
https://www.red-bottomshoesforwomen.us.com/
https://www.vansshoes-outlets.us.com/
https://www.nmds-adidas.us.com/
https://www.pumas-shoes.us.com/
https://www.nikecortez.us.org/
https://www.nmdr1adidas.us.com/
https://www.pandora-rings.us.org/
https://www.fjallravenkankenbackpack.us/
https://www.shoes-yeezy.us.com/
https://www.skechersgowalkshoes.us/
https://www.christianlouboutins-outlet.us.com/
https://www.adidasultra-boosts.us.com/
https://www.red-bottomshoeslouboutin.us.com/
https://www.yeezy500boost.us.com/
https://www.yeezy500.us.org/
https://www.timberlandworkboots.us.com/
https://www.yeezysboosts.us.com/
https://www.outletmonclers.us.com/
https://www.yeezyshoess.us.com/
https://www.airjordanshoesretros.us.com/
https://www.nike-airmax95.us/
https://www.new-nikeshoes.us/
https://www.nikestores.us.org/
https://www.filashoessale.us/
https://www.kevin-durantsshoes.us.com/
https://www.asics-runningsshoes.us.com/
https://www.timberland-outletstore.us.com/
https://www.hermesshandbags.us.com/
https://www.fitflop-saleclearances.us.com/
https://www.ferragamo-shoes.us.org/
https://www.ultra-boosts.us.com/
https://www.puma-outletstore.us.com/
https://www.christian-louboutinoutletsale.us.com/

Posted by: Robert at January 21, 2019 04:27 PM
Post a comment









Remember personal info?