Given integers a,b,c$a,b,c$ such that gcd(a,b$\gcd(a,b,c) = 1$,c) = 1 it is well known that there exists only a finite set of numbers $n$ such that $n$ is not expressible as ax+by+cz$ax+by+cz$ for non negative integers x$x$,y$y$,z$z$.
It is also known that there exists a quadratic time algorithm for finding the maximal such b$n$. However I was not able to spot the paper covering the algorithm.
Anybody happens to know the algorithm and/or a (free) reference to it?