MathDB
TOT 1999 Spring AJ1 500 dollars in bank, withdraw 300, deposit 198

Source:

May 11, 2020
combinatoricsnumber theory

Problem Statement

There is 500500 dollars in a bank. Two bank operations are allowed: to withdraw 300300 dollars from the bank or to deposit 198198 dollars into the bank. These operations can be repeated as many times as necessary but only the money that was initially in the bank can be used. What is the largest amount of money that can be borrowed from the bank? How can this be done?
(AK Tolpygo)