add recursive Mahonian function (for fun & illustration)