subset to check if no is semiperfect
let subset = new Array ( r + 1 ) ; for ( let i = 0 ; i < r + 1 ; i ++ ) { subset [ i ] = new Array ( n + 1 ) ; for ( let j = 0 ; j < n + 1 ; j ++ ) { subset [ i ] [ j ] = false ; } }