Solving a Linear Diophantine Equation by Tabulation