OFFSET
0,2
COMMENTS
Cube root of the volume of a cylinder with radius and height n rounded up to the nearest integer. - Wesley Ivan Hurt, Oct 13 2014
FORMULA
a(n) = ceiling(n*Pi^(1/3)).
a(n) = A240977(n)+1 for all n>0. - M. F. Hasler, Oct 14 2014
MAPLE
MATHEMATICA
Table[Ceiling[n*Pi^(1/3)], {n, 0, 100}] (* Wesley Ivan Hurt, Oct 13 2014 *)
PROG
(Java) static int a(int n) {return (int) Math.ceil(n*Math.pow(Math.PI, (1.0/3))); }
(Magma) [Ceiling(n*Pi(RealField(100))^(1/3)) : n in [0..100]]; // Wesley Ivan Hurt, Oct 13 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juliann Barbella, Oct 13 2014
STATUS
approved