login
a(n) = floor( log( prime(n) )^2 ).
1

%I #10 Jun 29 2015 08:47:42

%S 0,1,2,3,5,6,8,8,9,11,11,13,13,14,14,15,16,16,17,18,18,19,19,20,20,21,

%T 21,21,22,22,23,23,24,24,25,25,25,25,26,26,26,27,27,27,27,28,28,29,29,

%U 29,29,29,30,30,30,31,31,31,31,31,31,32,32,32,33,33,33,33,34,34,34,34

%N a(n) = floor( log( prime(n) )^2 ).

%e a(5)=5: floor(square(log 11)) because log(11) = 2.3979 and square(2.3979) = 5.74992.

%t Table[ Floor[ Log[ Prime[n]]^2], {n, 1, 60}]

%o (PARI) vector(80, n, floor(log(prime(n))^2)) \\ _Michel Marcus_, Jun 29 2015

%K easy,nonn

%O 1,3

%A Yang Sok Kim (yangsokk(AT)utas.edu.au), Aug 24 2003

%E More terms from _Robert G. Wilson v_, Sep 01 2003