A171624 Floor(n-th nonprime / n).
1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1
Keywords
Programs
-
Mathematica
Module[{nn=100,np},np=Complement[Range[nn],Prime[Range[PrimePi[nn]]]];Floor[np/Range[Length[np]]]] (* Harvey P. Dale, Oct 28 2015 *)
Formula
a(n) = 1 for n >= 5.
Extensions
More terms from Harvey P. Dale, Oct 28 2015
Comments