OFFSET
1,4
EXAMPLE
For n = 8: floor(8/3) + floor(8/4) + floor(8/5) + floor(8/6) + floor(8/7) + floor(8/8) = 2 + 2 + 1 + 1 + 1 + 1 = 8. So a(8) = 3. For n = 6: floor(6/2) + floor(6/3) + floor(6/4) + floor(6/5) + floor(6/6) = 3 + 2 + 1 + 1 + 1 = 8, which is > 6. But floor(6/3) + floor(6/4) + floor(6/5) + floor(6/6) = 2 + 1 + 1 + 1 = 5, which is < 6. So a(6) = 0, because there is no integer at which to start the sequence of denominators so that the sum is 6.
MAPLE
A145264 := proc(n) local a, k; for a from 1 to n do if add( floor(n/(a+k)), k=0..n-a) = n then RETURN(a) ; fi; od: RETURN(0) ; end: for n from 1 to 120 do printf("%d, ", A145264(n)) ; od: # R. J. Mathar, Oct 07 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 05 2008
EXTENSIONS
More terms from R. J. Mathar, Oct 07 2008
STATUS
approved