OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Clark Kimberling, Beatty sequences and trigonometric functions, Integers 16 (2016), #A15.
Eric Weisstein's World of Mathematics, Beatty Sequence
MAPLE
A054406 := proc(n) n*(3+sqrt(3))/2 ; floor(%) ; end proc: # R. J. Mathar, Feb 26 2011
MATHEMATICA
a054406[n_Integer] := Floor[# (3 + Sqrt[3])/2] & /@ Range[n]; a054406[62] (* Michael De Vlieger, Dec 14 2014 *)
PROG
(Magma) [Floor(n*(3+Sqrt(3))/2): n in [1..70]]; // Vincenzo Librandi, Oct 25 2011
(PARI) is(n)=sqrtint((n+1)^2\3)==sqrtint(n^2\3) \\ Charles R Greathouse IV, Nov 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved