login
a(n) = floor(sqrt(n) - n^(1/3)).
14

%I #21 Sep 25 2024 23:12:54

%S 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,

%T 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,

%U 4,4,4,4,4,4,4,4,4,4

%N a(n) = floor(sqrt(n) - n^(1/3)).

%H Vincenzo Librandi, <a href="/A135661/b135661.txt">Table of n, a(n) for n = 1..1000</a>

%t Table[Floor[n^(1/2) - n^(1/3)], {n, 100}] (* _Vincenzo Librandi_, Feb 18 2013 *)

%o (Magma) [Floor(n^(1/2)-n^(1/3)): n in [1..100]]; // _Vincenzo Librandi_, Feb 18 2013

%Y Cf. A000196, A048766, A134914, A135660.

%K nonn,easy

%O 1,24

%A _Mohammad K. Azarian_, Nov 25 2007

%E Offset corrected by _M. F. Hasler_, Nov 17 2008