%I #16 Sep 08 2022 08:44:39
%S 1,2,4,4,6,7,8,9,10,12,12,14,15,16,17,18,20,20,21,23,24,25,26,28,28,
%T 29,31,32,33,34,35,36,37,39,40,41,42,43,45,45,47,48,48,50,51,53,53,55,
%U 56,56,58,59,61,61,62,64,64,66,67,69,69,70,72,72,74,75,77,77,78,80,80,82
%N a(n) = (n-th term of Beatty sequence for e) - (n-th term of Beatty sequence for e/(e-1)).
%H G. C. Greubel, <a href="/A014246/b014246.txt">Table of n, a(n) for n = 1..10000</a>
%H <a href="/index/Be#Beatty">Index entries for sequences related to Beatty sequences</a>
%F a(n) = floor(e * n) - floor(e/(e-1) * n). - _Franklin T. Adams-Watters_, Nov 02 2006
%t Table[Floor[n*E] - Floor[n*E/(E-1)], {n,1,75}] (* _G. C. Greubel_, Jun 19 2019 *)
%o (PARI) my(e=exp(1)); vector(75, n, (n*e)\1 - (n*e)\(e-1)) \\ _G. C. Greubel_, Jun 19 2019
%o (Magma) E:=Exp(1); [Floor(n*E) - Floor(n*E/(E-1)): n in [1..75]]; // _G. C. Greubel_, Jun 19 2019
%o (Sage) [floor(n*e) - floor(n*e/(e-1)) for n in (1..75)] # _G. C. Greubel_, Jun 19 2019
%Y Cf. A022843, A054385.
%K nonn
%O 1,2
%A _Clark Kimberling_
%E Corrected and extended by _Franklin T. Adams-Watters_, Nov 02 2006