|
|
A252169
|
|
Beatty sequence for sqrt(Pi*phi) where phi is the golden ratio A001622.
|
|
2
|
|
|
2, 4, 6, 9, 11, 13, 15, 18, 20, 22, 24, 27, 29, 31, 33, 36, 38, 40, 42, 45, 47, 49, 51, 54, 56, 58, 60, 63, 65, 67, 69, 72, 74, 76, 78, 81, 83, 85, 87, 90, 92, 94, 96, 99, 101, 103, 105, 108, 110, 112, 114, 117, 119, 121, 124, 126, 128, 130
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Pi
|
|
FORMULA
|
a(n) = floor(n*sqrt(Pi*phi)) = floor(n*sqrt(Pi*(1+sqrt(5))/2)).
|
|
EXAMPLE
|
For n = 5, floor(5*sqrt(Pi*(1+sqrt(5))/2)) = 11.
|
|
MATHEMATICA
|
a252169[n_] := Floor[#*Sqrt[Pi*((1 + Sqrt[5])/2)]] & /@ Range@n; a252169[58] (* Michael De Vlieger, Dec 27 2014 *)
|
|
PROG
|
(Python) from sympy import *
for n in range(1, 3001): print(floor(n*sqrt(pi*(1+sqrt(5))/2)), end=', ')
(PARI) vector(100, n, floor(n*sqrt(Pi*(1+sqrt(5))/2))) \\ Derek Orr, Dec 30 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|