Help:=proc(): print(` SG1(n,r,k), SG(n,r,k), G(n,r) `): print(`IsGame(G,r), IsSetOfGames(G,r) `): print(`SizeG(G), SizeSG(G) `): end: #Many Thanks to Nathaniel Shar who debugged G(n,r) #and I will donate $20 to the OEIS foundation in his #honor #SG1(n,r,k): all the sets of games of level-r of total size #n with k elements SG1:=proc(n,r,k) local S1,G1,m,S,s1,g1: option remember: if k=0 then if n=0 then RETURN({{}}): else RETURN({}): fi: fi: if n=0 then RETURN({}): fi: if n