We put elements from 4 to n in groups of size 4. Remaining elements 1 , 2 and 3 can be divided as ( 1 , 2 ) and ( 3 ) .
else { document . write ( " " + Math . floor ( s / 2 ) ) ; document . write ( " " + Math . floor ( s / 2 ) ) ; document . write ( " " + 0 ) ; } } }