num of 1s from 1 to n