An algorithm for additive partitioning of natural numbers is considered. The approach is based on a generating function discussed in detail in 1994-1997 by Voinov and Nikulin. The approach is used for the enumeration of nonnegative integer solutions of a corresponding linear Diophantine equation. A new R-algorithm for solving the partitioning problems is presented.