NB. Copied from problem 31, and modified to work here ways =: {{ if. y=0 do. x=0 else. +/([:(ways&(<:y)) x-y*])"0 i.>:<.x%y end. }} M. problem76 =: (ways <:) 100