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.

A076587 First occurrence of n as a term in the continued fraction for Pi/2.

This page as a plain text file.
%I A076587 #14 Apr 24 2025 10:49:44
%S A076587 1,10,4,9,20,13,26,11,142,102,70,93,179,69,127,283,52,1166,141,605,
%T A076587 100,83,280,414,451,61,30,234,848,448,5,372,1389,2445,2082,498,603,
%U A076587 2565,517,3715,22,1155,419,856,4125,1573,441,207,42,1536,5359,576,6654,1002
%N A076587 First occurrence of n as a term in the continued fraction for Pi/2.
%t A076587 Module[{nn=6700,p2},p2=ContinuedFraction[Pi/2,nn];Table[Position[p2,n,1,1],{n,60}]]//Flatten (* _Harvey P. Dale_, Jul 14 2023 *)
%o A076587 (PARI) default(realprecision, 1500); v=contfrac(Pi/2); a(n)=if(n<0,0,s=1; while(abs(n-component(v,s))>0,s++); s)
%Y A076587 Cf. A032523, A053300.
%K A076587 base,nonn
%O A076587 1,2
%A A076587 _Benoit Cloitre_, Oct 20 2002