cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A059534 Beatty sequence for 1 + 1/Catalan's constant.

This page as a plain text file.
%I A059534 #30 Feb 16 2025 08:32:43
%S A059534 2,4,6,8,10,12,14,16,18,20,23,25,27,29,31,33,35,37,39,41,43,46,48,50,
%T A059534 52,54,56,58,60,62,64,66,69,71,73,75,77,79,81,83,85,87,89,92,94,96,98,
%U A059534 100,102,104,106,108,110,112,115,117,119,121,123,125,127,129,131,133
%N A059534 Beatty sequence for 1 + 1/Catalan's constant.
%H A059534 Harry J. Smith, <a href="/A059534/b059534.txt">Table of n, a(n) for n = 1..2000</a>
%H A059534 Aviezri S. Fraenkel, Jonathan Levitt, and Michael Shimshoni, <a href="http://dx.doi.org/10.1016/0012-365X(72)90012-X">Characterization of the set of values f(n)=[n alpha], n=1,2,...</a>, Discrete Math. 2 (1972), no.4, 335-345.
%H A059534 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/BeattySequence.html">Beatty Sequence.</a>
%H A059534 <a href="/index/Be#Beatty">Index entries for sequences related to Beatty sequences</a>
%F A059534 a(n) = floor(n*(1 + 1/A006752)). - _Paolo Xausa_, Jul 05 2024
%t A059534 Floor[Range[100]*(1 + 1/Catalan)] (* _Paolo Xausa_, Jul 05 2024 *)
%o A059534 (PARI) { numdigits=100; default(realprecision, numdigits+80); s=1.0; n=5*numdigits; j=4*n+1; si=-1.0; for (i=3, j-2, s+=si/i^2; si=-si; i++; ); s+=0.5/j^2; ttk=4.0; d=4.0*j^3; xk=2.0; xkp=xk; for (k=2, 100000000, term=(ttk-1)*ttk*xkp; xk++; xkp*=xk; if (k>2, term*=xk; xk++; xkp*=xk; ); term*=bernreal(k)/d; sn=s+term; if (sn==s, break); s=sn; ttk*=4.0; d*=(k+1)*(k+2)*j^2; k++; ); b=1 + 1/s; for (n = 1, 2000, write("b059534.txt", n, " ", floor(n*b)); ) } \\ _Harry J. Smith_, Jun 27 2009
%Y A059534 Beatty complement is A059533.
%Y A059534 Cf. A006752.
%K A059534 nonn,easy
%O A059534 1,1
%A A059534 _Mitch Harris_, Jan 22 2001