Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts NetMenus 2.0
iScripts EasySnaps 1
iScripts EasyIndex 1
ATN Site Builder 3.0
IcrediBB Bulletin Board System 1.0
Stepping stone algorithum for solving the transhipment problem
Advanced Post Manager 1.0.5
Azizi search engine script PHP 4.1.10
Simple Comments Script 0.930
Devart Excel Add-in for HubSpot 2.1
White-label Grocery Delivery App Solution 2.0
Vue Injector 3.3
ATN Resume Finder 2.0
Faculty Evaluation System 1.1
PHP Review Script 1.0
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Martin Gardner's "The Monkey and the Coconuts" Problem 
File ID: 64139






Martin Gardner's "The Monkey and the Coconuts" Problem 
Download Martin Gardner's "The Monkey and the Coconuts" Problem http://code.activestate.com/recipes/577335-martin-gardners-the-monkey-and-the-coconuts-proble/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 8
Submit Rating:
Martin Gardner's "The Monkey and the Coconuts" Problem  Description
Description: Five sailors arrive at a deserted island that has only coconuts and one monkey. The sailors collect all the coconuts into one big pile and agree to divide up the coconuts into equal shares the next morning. However during the night each sailor wakes up one at a time afraid to trust the others and decides to take his share secretly. So each sailor takes 1/5 of the coconuts and hides it. Each time there is one coconut left over and the sailor gives that to the monkey. In the morning they divide what is left of the pile into equal shares and there is still one coconut left for the monkey.

How many coconuts were in the original pile?

License: Freeware

Related: martingardner, Mathematical, Puzzle

O/S:Windows

Downloads: 8



More Similar Code

You can input the angles and the axis about which the co-ordiante has to be rotated to visualize the rotation and orientation.

you will have full control of what elements to be shown in screen, like path,plane of rotation,initial co-ordinate frame,etc

Description in short: : An Educating tool.

Files:
Understanding_Euler_Angles.m -- Main program

arrow3d.m -- Function to generate the 3d arrow



it's useful to see how the mean and the standard deviation change when you use more samples to calculate it.

The Array can contain NaN's but it's slower than cumstat (File ID: #26899) because it contain a for-loop



Intro: This function generates random samples for k Xi's where Xi>=0 and the sum Xi is fixed at g. We assume that X's are independent and follow an identical distribution with a CDF function myCDF(x) and an inverse CDF function myICDF(p). I...



it's useful to see how the mean and the standard deviation change when you use more samples to calculate it.



Uses two files, the form and the form processing, which includes required field validation and email generation. Step by step explanations are offered for the PHP file, as the message is built up from several of the form's input fields.



Takes an excel file, dumps out a series of CSV files (one for each sheet, named for the file and sheet) and a YAML file (an array of sheets, each sheet a dict containing the table_name and the table_data, a 2-d array of cell values).



[coef, RSquared]=plotfit(x,y,polyorder)
A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit...



llbra LOGIN is a login system that has many functions for the users and the admin and it's based on PHP, and it doesn't use MySQL.

It uses a .php database, which has a very secure system, to provide the most secure access as possible....



Building a Tiered Web App Using the DataSet and the ASP DataGrid is an article which explains you about developing the N-tierd Windows based applications using the dataset and datagrid control. In this article the author clearly elaborates you...



DESOS (Data Exchange Simulator in Orbital Scenarios) models over the whole repeat-cycle of a Low-Earth-Orbit mission the acquisitions of the scientific instrument embarked aboard the satellite and the respective downlink communication toward the...

User Review for Martin Gardner's "The Monkey and the Coconuts" Problem
- required fields
     

Please enter text on the image