An Elementary Algorithmic Problem from an Advanced Standpoint

An optimal algorithm which finds all the solutions, over the nonnegative integers of an equation of the form ax1+bx2+cx3=m, a, b, c, m positive integers, is given. The algorithm is polynomial in the length of the input and is based on advanced concepts and methods. The algorithm is not based on Lenstra's integer programming algorithm.