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
The C# OCR Library 2020.11
SentiVeillance SDK Trial 7.3.2020.11.30
VaxVoIP WebPhone SDK 4.0.6.0
SentiMask SDK Trial 2.0_193121
C# QR Code Generator 2020.12
How to Read Text from an Image in C# 2020.12
The .Net PDF Library 2020.12.3
fsMediaLibrary.NET 2019.11.0
Entity Developer 6.9.1112
OrgChart JS 7.5.40
LinqConnect 4.9.2096
SSIS Data Flow Components 1.15
IP2Location Geolocation Database Oct.2020
Luxand FaceSDK 7.2
dbForge Data Compare for PostgreSQL 3.3.6
Top Code
IcrediBB Bulletin Board System 1.0
Azizi search engine script PHP 4.1.10
PL-SQL code to convert number to words 1.0
phpXplorer 0.9.12
POFACETS 4.1
NES Rom Maker 1.0
Ready Made MLM Script 1.0.4
AntiAliased Analog Gauge 1.0
MMS - Museum Management System 1.0.0
Comag Channel List Editor 1.0
Scholarship Award System 1.2.71b
Simple Web Content Management System for Scripts 1.1
A-star Search Algorithm 1.1
SentiMask SDK Trial 2.0_193121
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
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
Apphitect Airbnb Clone Script 1.0
Deals and Discounts Website Script 1.0.2
Pro MLM 1
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.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