OFFSET
0,4
EXAMPLE
a(3) = 2, counting 30 and 42 between 3^3 = 27 and 4^3 = 64.
a(4) = 7, counting 66, 70, 78, 102, 105, 110 and 114 between 4^3 = 64 and 5^3 = 125. - David A. Corneth, May 19 2018
PROG
(PARI) list(lim)=my(v=List(), t); forprime(p=2, (lim)^(1/3), forprime(q=p+1, sqrt(lim\p), t=p*q; forprime(r=q+1, lim\t, listput(v, t*r)))); vecsort(Vec(v)) \\ Charles R Greathouse IV, Jul 20 2011 at A007304.
first(n) = {my(res = vector(n), l = list(n ^ 3), il = 1, ir = 4, ol = nl = 1); res[1] = 0; while(il <= #l, if(ir ^ 3 < l[il], ir++); res[ir]++; il++); res} \\ David A. Corneth, May 19 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Philippe Lallouet (philip.lallouet(AT)orange.fr), May 08 2008
EXTENSIONS
Corrected name, data and put more terms by David A. Corneth, May 19 2018
STATUS
approved