Question: For 3 non negative integers $a, b, c$; if $28a + 30b + 31c = 365$ what is the value of $a +b +c$ ?
How I approached it : I started immediately breaking it onto this form on seeing it :
$28(a +b +c) +2b +3c = 365 .......(1)$ $30(a +b +c) -2a +c = 365 .......(2)$ $31(a +b +c) -b -3a = 365 .......(3)$
And then I find out that
$365 = 28*13 + 1......(1')$; $365 = 30*12 + 5......(2')$ $365 = 31*11 + 24......(3')$
Now as we see (1) and (1') as well as (3) and (3') or even equations $2$ and $2'$ do not combine quiet congruently, so I meet with a dead end here.
my issue : how should I approach such problems where we are given no other equations or data? Basically I am asking what are a few ways to get a solution for this problem.
More direct path to $a+b+c = 12$:
Write $x=a+b+c$. In particular the last equation implies $31 x \ge 365$ so $x>11$. On the other hand, the first equation is $28x + 2b + 3c = 365$. If either $b$ or $c$ is nonzero, this means $28x < 364$ so $x < 13$. And $b=c=0$ is not possible because $365$ is not divisible by $28$.
added: to be fair I should complete the proof... $x=12$ means $2b + 3c = 29$. $c$ must be odd and less than $10$, so it can be $1, 3, 5, 7, 9$. Substitute in $2b+3c = 29$, then in $a+b+c = 12$ and keep only the solutions with non-negative $a$.