Data source: http://rosettacode.org/wiki/Loops/N_plus_one_half
