login
a(n) = floor(n*tanh(Pi/2)).
2

%I #17 Jul 05 2024 07:02:25

%S 0,0,1,2,3,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,18,19,20,21,22,22,

%T 23,24,25,26,27,28,29,30,31,32,33,33,34,35,36,37,38,39,40,41,42,43,44,

%U 44,45,46,47,48,49,50,51,52,53,54,55,55,56,57,58,59,60,61,62,63

%N a(n) = floor(n*tanh(Pi/2)).

%H Paolo Xausa, <a href="/A372822/b372822.txt">Table of n, a(n) for n = 0..10000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/BeattySequence.html">Beatty Sequence</a>.

%H <a href="/index/Be#Beatty">Index entries for sequences related to Beatty sequences</a>

%t Floor[Range[0, 100]*Tanh[Pi/2]]

%Y Cf. A000796, A344505, A367960, A374323.

%K nonn,easy

%O 0,4

%A _Paolo Xausa_, Jul 04 2024