login
Beatty sequence for sqrt(11).
5

%I #20 Sep 08 2022 08:45:50

%S 3,6,9,13,16,19,23,26,29,33,36,39,43,46,49,53,56,59,63,66,69,72,76,79,

%T 82,86,89,92,96,99,102,106,109,112,116,119,122,126,129,132,135,139,

%U 142,145,149,152,155,159,162,165,169,172,175,179,182,185,189,192,195,198

%N Beatty sequence for sqrt(11).

%H Vincenzo Librandi, <a href="/A171982/b171982.txt">Table of n, a(n) for n = 1..1000</a>

%F a(n) = floor(n*sqrt(11)). - _Jon E. Schoenfield_, Jun 18 2010

%t With[{c = Sqrt[11]}, Floor[c #]& / @Range[1, 80]] (* _Vincenzo Librandi_, Aug 01 2013 *)

%o (PARI) a(n)=sqrtint(11*n^2) \\ _Charles R Greathouse IV_, Dec 28 2011

%o (Magma) [Isqrt(11*n^2): n in [1..80]]; // _Vincenzo Librandi_, Aug 01 2013

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, Jan 21 2010