OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor(Pi/arcsin(1/n)).
MATHEMATICA
Table[Floor[Pi/ArcSin[1/n]], {n, 60}] (* Indranil Ghosh, Jul 21 2017 *)
PROG
(Python)
from mpmath import mp, pi, asin
mp.dps=100
def a(n): return int(floor(pi/asin(1./n)))
print([a(n) for n in range(1, 61)]) # Indranil Ghosh, Jul 21 2017
(SageMath) [floor(pi/arcsin(1/n)) for n in range(1, 71)] # G. C. Greubel, Aug 25 2023
(Magma) R:= RealField(30); [Floor(Pi(R)/Arcsin(1/n)) : n in [1..70]]; // G. C. Greubel, Aug 25 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Martin Fuller, Jun 28 2006
STATUS
approved