Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

A Puzzle of Oranges

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try solving this:
There is a Little Girl who sells fruits. One day she leaves her home to sell
her oranges. She sells half an orange more than half the number of oranges
in her basket to the person living in House number 1. Then again, she sells
half an orange more than half the number of remaining oranges to the person
living in House number 2. Then finally she sells half an Orange more than
half the number of remaining Oranges to the person living in House number 3.
She is finally left with no oranges in her Bag. She however manages to sell
these Oranges without cutting any Oranges. Can you tell me how many Oranges
did she have in her Basket when she left her house and how many did she sell
to each of the people living in House #1, House #2, & House #3.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seven oranges when she left. Sold 4 to house 1, 2 to house 2, 1 to house 3.
 
Derek Grey
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Michael Ernest:
Seven oranges when she left. Sold 4 to house 1, 2 to house 2, 1 to house 3.


Perfect.
 
    Bookmark Topic Watch Topic
  • New Topic