I know this question has been asked before, but the answer to the previously posted question does not address my question about the problem. I will restate the problem:
A man cashes a check for $d$ dollars and $c$ cents, but the teller gives him $c$ dollars and $d$ cents instead. The man doesn't notice the mistake until he has spent 23 cents, at which point he has $2d$ dollars and $2c$ cents. What was the original amount of the check?
As in the previously posed question, I come up with the linear equation:
$98c-199d=23$
However, the posted answer to this question uses congruences, which haven't been introduced yet in the elementary number theory book I am using. So, I have been trying to solve it with what amounts to a brute-force method. I know that $c<100$, but since the teller gives the man $d$ cents, it must be that $d<100$ also. I solved the linear equation for c:
$c=23/98+(199/98)*d$
This means I must find a multiple of 199 less 23 that is evenly divisible by 98, while also satisfying the other conditions. Without knowing congruences, this was a trial-and-error process. I found that $d=25$ and $c=51$ satisfies the equation and answers the problem, but I was dissatisfied with this process. Do I just need to read on in my book? Or is there another approach?
Asked
Active
Viewed 50 times
0
Bill Dubuque
- 282,220
k endres
- 97
i.e. $,3\mid -23!+!98k = 1!-!k + 3(-8!+!33k)\iff 3\mid \color{#0a0}{1!-!k},$ so $,3\mid -23!+!98(\color{#0a0}1)= \color{#0af}{75},,$ see twiddling / inverse reciprocity, and other methods there - including the general extended Euclidean algorithm. Such calculations become much clearer once you learn congruences (modular arithmetic). – Bill Dubuque Jun 18 '24 at 20:46