Iterate over the range [ 1 , MAXL ]
for ( let i = 1 ; i <= MAXL ; i ++ ) { N = Math . floor ( ( i + 1 ) / 2 ) ; v = new Array ( N ) . fill ( 0 ) ; for ( let j = 0 ; j < N ; j ++ ) for ( let k = j ; k < i - j ; k ++ ) v [ j ] += B [ k ] ;