Loops size estimates with maximum (solution)

Exercise
Output solution
 [1] 25262.027        NA 10767.568        NA        NA        NA 24072.130
 [8]  4785.145        NA 29666.193 26830.297        NA        NA        NA
[15]        NA        NA        NA        NA 17439.569        NA 37544.201
[22] 25198.303 12928.490 36388.290 34962.862        NA  8854.525        NA
[29] 28846.165 35735.369        NA 31765.368        NA  5561.862 28349.410
[36] 15418.314  9218.648  1197.666        NA 19552.500