I came across this question and I was able to solve this question with the help of the options provided in the question and the answer turned out to be $15$. But it intrigued me to find a general statement for the solutions for these kind of problems.
How can we approach a general problem like "The largest positive integer which cannot be written in the form $Am + Bn$ where $m$ and $n$ are positive integers and $A$ and $B$ are positive integers too is?" Is there a general solution statement for this problem.
I looked up on the web and stumbled upon this statement from Frobenius:
Suppose that $gcd(a,b)=1$ . Then the largest integer $k$ for which $am+bn=k$ has no non-negative integer solution $(m,n)$ occurs when $k=ab−a−b$ .
The problem is when I apply this statement into my problem where $a=5$ and $b=3$ then it gives me the answer as $7$ which is less than what I got as answer.
Can someone please clarify this for me and give an idea to approach these kind of problems?
Thanks in advance !!!
PS : Just now I noticed that my answer 15 is basically $5*3$. So can we say that for our general problem statement i.e. "The largest positive integer which cannot be written in the form $Am + Bn$ where $m$ and $n$ are positive integers and $A$ and $B$ are positive integers too is?", the answer will be $A*B$.