Solve the Mystery of Brown's Cheque: Absent-Minded Clerk

  • Context: High School 
  • Thread starter Thread starter castaway
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a mathematical problem involving a cheque that was incorrectly cashed, leading to a scenario where the amount left after a purchase is double the original cheque amount. Participants explore various methods to solve the problem, including brute force and analysis of equations.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Debate/contested

Main Points Raised

  • Post 1 presents the problem and asks for the amount of the cheque without providing a solution.
  • Post 2 claims the original cheque amount is $31.63, explaining the calculations leading to this conclusion, including a brute force programming approach.
  • Post 3 suggests that the problem seems unsolvable with one equation and two unknowns but hints that additional constraints (natural numbers and cents not exceeding 99) could help.
  • Post 4 acknowledges the problem as a diophantine equation and provides a more elegant solution, ultimately arriving at the same cheque amount of $31.63, while also detailing the steps taken to derive this solution.
  • Post 5 reiterates the earlier point about the constraints on the number of cents and reflects on the realization that these constraints limit the solutions, indicating a newfound understanding of the problem.

Areas of Agreement / Disagreement

Participants generally agree on the cheque amount being $31.63, but there is a debate on the methods used to arrive at this conclusion, particularly regarding the necessity of brute force versus analytical approaches.

Contextual Notes

Some participants highlight the limitations of the problem, such as the need for natural numbers and the restriction on the number of cents, which affects the solvability of the equations involved.

castaway
Messages
13
Reaction score
0
An absent minded clerk switched the dollars and cents when he cashed a cheque for Mr Brown , giving him dollars instead of cents, and cents instead of dollars.
After buying a five cent newspaper,Brown discovered that he left excatly twice as much as his original cheque.


What was the amount of the cheque?


P.S : i read this in a book where the solution was not given!
 
Mathematics news on Phys.org
The original check was for $31.63, which doubled is $63.26.
The clerk gave Mr. Brown $63.31.
After Mr. Brown spent $.05, he was left with $63.26 which is double the original check.

I solved this by a little analysis and a lot of brute force:

The analysis: 100a + b - 5 = 2 (100b + a) or 98a - 199b = 5

The brute force:
#include <stdio.h>

main ()
{
long a, b;

for (a = 0; a < 100; ++a) {
for (b = 0; b < 100; ++b) {
long c = 98 * a - 199 * b;
if (5 == c) {
printf ("%d.%02d\n", a, b);
}
}
}
}


EOM
 
At first sight this problem looks insolvable as you end up with one equation and two unknowns. However, you do not need brute force, since you have more information i.e. the number of dollars and the number of cents need to be natural numbers and the number of cents can never exceed 99.
Is this enough clue?
 
Last edited:
Piet Pols said:
However, you do not need brute force.
I knew that this was a type of problem called a diophantine equation. However, I assumed that I would be able to write and run the program much quicker than it would take to learn how to handle such equations. But after you posted your message, I felt challenged to study up on it. I used the MathWorld page as a guide. Here is a more elegant solution (with the meaning of a and b swapped from my original post).

-199a + 98b = 5

199 = 2 * 98 + 3
98 = 32 * 3 + 2
3 = 1 * 2 + 1

1 = 1 * 3 - 1* 2
1 = -1 * 98 + 33 * 3
1 = 33 * 199 - 67 * 98

5 = 165 * 199 - 335 * 98
5 = (-165) * (-199) - 335 * 98
5 = (-165 + 2 * 98) * (-199) - (335 - 2 * 199) * 98
5 = 31 * (-199) + 63 * 98

so a = 31, b = 63, and the original check is for $31.63


EOM
 
Piet Pols said:
At first sight this problem looks insolvable as you end up with one equation and two unknowns. However, you do not need brute force, since you have more information i.e. the number of dollars and the number of cents need to be natural numbers and the number of cents can never exceed 99.
Is this enough clue?
well yes , i guess i was missing this clue that cents can't exceed 100 , i was taking 2 variables x and y and then i was getting a diophoantine equation , well which has infinite solution , thank you , i was really curious, i got the answer now
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 54 ·
2
Replies
54
Views
8K
Replies
71
Views
16K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 80 ·
3
Replies
80
Views
69K
  • · Replies 65 ·
3
Replies
65
Views
12K
Replies
39
Views
27K
  • · Replies 1 ·
Replies
1
Views
4K