This is a generalization of
Rupees and Paise.
Stan entered a departmental store with A dollars and B cents. When he exited the store, he had B/p dollars and A cents, where B/p is
an integer. It was observed that when Stan came out, he had precisely 1/p times the money he had when he came in.
Given that each of A, B and p is a
positive integer, with 2 ≤ p ≤ 99, determine the values of p for which this is possible. What values of p generate more than one solution?
Suppose A=99, B=100-p, and p|100. Let n=100/p. Then, B/p=(100-p)/p=n-1. Then, (100A+B)/p=(100(99)+100-p)/p=(9900+100-p)/p=(10000-p)/p=100n-1=100n-100+99=100(n-1)+99=100(B/p)+A. Therefore, we have the following solutions.
A=99, B=99, p=1
$99.99/1=$99.99
A=99, B=98, p=2
$99.98/2=$49.99
A=99, B=96, p=4
$99.96/4=$24.99
A=99, B=95, p=5
$99.95/5=$19.99
A=99, B=90, p=10
$99.90/10=$9.99
A=99, B=80, p=20
$99.80/20=$4.99
A=99, B=75, p=25
$99.75/25=$3.99
A=99, B=50, p=50
$99.50/50=$1.99
A=99, B=0, p=100
$99.00/100=$0.99
|
Posted by Math Man
on 2020-05-16 11:55:29 |