Number of Multiply-Restricted Partitions [A1] (Algorithm 448). - Terry Beyer; D. F. Swinehart (Commun. ACM, 1973)