Floor function of sqrt 1= 1
Floor function of sqrt 2= 1
Floor function of sqrt 3= 1
Floor function of sqrt 4= 2
Floor function of sqrt 5= 2
Floor function of sqrt 6= 2
Floor function of sqrt 7= 2
Floor function of sqrt 8= 2
...
Floor function of sqrt 19= 4
3 * 1+ 5 * 2+ 7 * 3+ 4 * 4=50.
Hope it helps!