If the lowest filling condition is void , then it is not possible to generate the required array
if ( n < mini ) { document . write ( " " ) ; return ; } let rem = n - mini ; let cnt = parseInt ( rem / k ) ; rem = rem % k ;