Pirates Dividing Loot Question- NEW

  • Context: Undergrad 
  • Thread starter Thread starter BR24
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a mathematical problem involving four pirates who divide a treasure of gold coins under specific conditions. Participants explore the problem's solution, focusing on equations and methods to determine the smallest number of coins in the original pile, as well as the reasoning behind their calculations.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant presents the problem and seeks a method beyond guesswork to find the total number of coins.
  • Another participant derives an equation relating the total coins (T) to the amount each pirate receives (P), suggesting a relationship that leads to integer solutions.
  • Several participants discuss their calculations, with one suggesting the answer might be 765, while another questions the accuracy of their own calculations, arriving at 758 instead.
  • A participant identifies the problem as a Diophantine equation and discusses the implications of integer solutions, leading to further exploration of the relationships between variables.
  • There is a mention of a specific calculation method involving modular arithmetic and the simplification of equations to find integer solutions.

Areas of Agreement / Disagreement

Participants express differing views on the correct total number of coins, with some proposing 765 and others suggesting 758. The discussion remains unresolved regarding the definitive answer, as participants continue to explore their calculations and methods.

Contextual Notes

Participants note the complexity of finding integer solutions and the potential for multiple approaches to the problem, indicating that assumptions about the relationships between the variables may affect the outcomes.

BR24
Messages
23
Reaction score
0
This is a long question so bear with me.

Four pirates find a treasure consisting of gold coins on a tiny island. They gather all the coins in a pile under a palm tree. Exhausted, they agree to wait until morning to split the coins.

At 1 in the morning, the 1st pirate wakes. He realizes the others can't be trusted, and decides to take his share now. He divides the coins into four equal piles, but there is one left over. He throws the extra one in the ocean, hides his coins, and put the rest back undr the palm tree.

At 2, Pirate 2 wakes up. Not realizing pirate 1 has already taken his share, he also divides up the remaining coins into 4 piles, with 1 left over. He throws the extra one in the ocean, hides his share and pus the rest of the coins back under the tree.

At 3 and 4 in the morning, the third and fourth pirates each wake up and carrry out the same actions.

In the morning, the pirates wake up, trying to look innocent. Noone says anything about the diminished coin pile. They divide the remaining pile into four piles for the fifth time, but this time there is no coin left over to throw in the ocean.

Find the smallest number of coins in the original pile.

I can't get this, my math teacher gave it to us. If you find the answer let me know, but if you have a method to this besides guess and check i'd like to know how.
 
Mathematics news on Phys.org
This was more tedious than it sounded.

I get an equation that says

T = \frac{4}{3} \left( \frac{4}{3} \left[ \frac{4}{3} \left( 16P+1 \right) +1 \right] +1 \right) +1

T = total coins. P = how much each pirate gets at the division in the morning.

Expanding, and barring errors.

27T = 1024P + 148 +27

At a guess, the answer might be the smallest positive P such that T is an integer.

Edit: This seems to work, oddly enough.
 
Last edited:
Thanks a lot man, just to make sure i worked it out right, did you get 765
 
BR24 said:
Thanks a lot man, just to make sure i worked it out right, did you get 765

yes. In the last step I needed to find integer solutions for 27A = 1024B - 14. Is there an easier way to do this than making 27(?) tests?
 
i don't know if there is an easier way, i'd like to know too. i used the equation you gave me
27t=1024p+175, started from zero and increased p which finally gave me a whole number when i got to 20.
 
Phrak said:
yes. In the last step I needed to find integer solutions for 27A = 1024B - 14. Is there an easier way to do this than making 27(?) tests?
Yes, this is a Diophantine equation. See http://en.wikipedia.org/wiki/Diophantine_equation for an explanation.
You have
A = 1024B/27 - 14/27 = 37B + (25B - 14)/27
Since A and B are integers, (25B - 14)/27 must be an integer too.
(25B - 14)/27 = C
25B - 14 = 27C
25B = 27C + 14
B = 27C/25 - 14/25 = C + (2C + 14)/25
Now, you make
2C + 14 = 25D
2C = 25D - 14
C = 12D + D/2 - 7
D/2 must be an integer
D/2 = 1 is the minimum integer
Now you have D = 2
Working backwards I got A = 758 and not 765. This is not the right answer, because 758/4 gives a remainder of 2, not 1.

Working with the equation
27T = 1024P + 175
I got the good answer: T = 765.
 
CEL said:
Working backwards I got A = 758 and not 765. This is not the right answer, because 758/4 gives a remainder of 2, not 1.

No, that wasn't it. I defined A = t - (175 mod 27) + 1 to simplify calculator punching, or so I'd thought, thus the difference of 7.

Cool algorithm, by the way;

For

\Phi_1 A = \Phi_2 B + \Gamma

each step in the algorithm takes

\Phi_{large}, \Phi_{small}

to

Rem(\Phi_{large} / \Phi_{small} ), \Phi_{small}

in alternating fashion.
 
Last edited:

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 45 ·
2
Replies
45
Views
6K
  • · Replies 14 ·
Replies
14
Views
6K
Replies
4
Views
3K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
18K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K