OFFSET
1,1
LINKS
Karl V. Keller, Jr., Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Beatty Sequence.
Eric Weisstein's World of Mathematics, e.
Eric Weisstein's World of Mathematics, Pi.
FORMULA
a(n) = floor(n*e^(1/Pi)/(e^(1/Pi)-1)).
EXAMPLE
For n = 5, floor(5*e^(1/Pi)/(e^(1/Pi)-1)) = 18.
MATHEMATICA
Floor[Range[100]/(1 - Exp[-1/Pi])] (* Paolo Xausa, Jul 17 2024 *)
PROG
(Python)
from sympy import E, pi, floor
for n in range(1, 101): print(floor(n*E**(1/pi)/(E**(1/pi)-1)), end=', ')
(PARI) vector(80, n, floor(n*exp(1/Pi)/(exp(1/Pi)-1))) \\ Michel Marcus, Aug 05 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Karl V. Keller, Jr., Jul 26 2015
STATUS
approved