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.

Showing 1-4 of 4 results.

A100338 Decimal expansion of the constant x whose continued fraction expansion equals A006519 (highest power of 2 dividing n).

Original entry on oeis.org

1, 3, 5, 3, 8, 7, 1, 1, 2, 8, 4, 2, 9, 8, 8, 2, 3, 7, 4, 3, 8, 8, 8, 9, 4, 0, 8, 4, 0, 1, 6, 6, 0, 8, 1, 2, 4, 2, 2, 7, 3, 3, 3, 4, 1, 6, 8, 1, 2, 1, 1, 8, 5, 5, 6, 9, 2, 3, 6, 7, 2, 6, 4, 9, 7, 8, 7, 0, 0, 1, 8, 4, 2, 0, 6, 4, 8, 2, 6, 0, 5, 4, 8, 4, 3, 1, 9, 6, 9, 7, 6, 0, 1, 7, 4, 6, 5, 6, 9, 7, 9, 6, 6, 8, 5
Offset: 1

Views

Author

Paul D. Hanna, Nov 17 2004

Keywords

Comments

This constant x has the special property that the continued fraction expansion of 2*x results in the continued fraction expansion of x interleaved with 2's: contfrac(x) = [1;2,1,4,1,2,1,8,1,2,1,4,1,2,1,16,...A006519(n),... ] while contfrac(2*x) = [2;1, 2,2, 2,1, 2,4, 2,1, 2,2, 2,1, 2,8,... 2, A006519(n),...].
The continued fraction of x^2 has large partial quotients (see A100864, A100865) that appear to be doubly exponential.

Examples

			1.353871128429882374388894084016608124227333416812118556923672649787001842...
		

Crossrefs

Programs

  • Mathematica
    cf = ContinuedFraction[ Table[ 2^IntegerExponent[n, 2], {n, 1, 200}]]; RealDigits[ FromContinuedFraction[cf // Flatten] , 10, 105] // First (* Jean-François Alcover, Feb 19 2013 *)
  • PARI
    /* This PARI code generates 1000 digits of x very quickly: */ {x=sqrt(2);y=x;L=2^10;for(i=1,10,v=contfrac(x,2*L); if(2*L>#v,v=concat(v,vector(2*L-#v+1,j,1))); if(2*L>#w,w=concat(w,vector(2*L-#w+1,j,1))); w=vector(2*L,n,if(n%2==1,2,w[n]=v[n\2]));w[1]=floor(2*x); CFW=contfracpnqn(w);x=CFW[1,1]/CFW[2,1]*1.0/2;);x}
    
  • PARI
    {CFM=contfracpnqn(vector(1500,n,2^valuation(n,2))); x=CFM[1,1]/CFM[2,1]*1.0}

A100863 Decimal expansion of the square of the constant (A100338) which has the continued fraction expansion equal to A006519 (highest power of 2 dividing n).

Original entry on oeis.org

1, 8, 3, 2, 9, 6, 7, 0, 3, 2, 3, 9, 6, 0, 0, 3, 0, 5, 4, 4, 2, 7, 2, 1, 9, 5, 4, 4, 2, 1, 0, 4, 1, 7, 3, 2, 4, 0, 5, 7, 7, 1, 6, 5, 6, 3, 2, 2, 7, 2, 1, 6, 8, 9, 7, 7, 9, 8, 3, 8, 9, 7, 7, 8, 5, 5, 7, 1, 8, 7, 9, 9, 0, 0, 7, 9, 0, 4, 7, 9, 4, 0, 3, 0, 8, 2, 8, 7, 8, 8, 7, 7, 0, 2, 8, 0, 8, 9, 4, 6, 7, 9, 6, 5, 4
Offset: 1

Views

Author

Paul D. Hanna, Nov 20 2004

Keywords

Comments

The continued fraction of this constant (A100864) has large partial quotients (A100865) that appear to be doubly exponential.

Examples

			1.83296703239600305442721954421041732405771656322721689779838977855718799...
		

Crossrefs

Programs

  • PARI
    {CFM=contfracpnqn(vector(1500,n,2^valuation(n,2))); x=(CFM[1,1]/CFM[2,1])^2*1.0}

A100864 Continued fraction expansion of the square of the constant (A100338) which has the continued fraction equal to A006519 (highest power of 2 dividing n).

Original entry on oeis.org

1, 1, 4, 1, 74, 1, 8457, 1, 186282390, 1, 1, 1, 2, 1, 430917181166219, 11, 37, 1, 4, 2, 41151315877490090952542206046, 11, 5, 3, 12, 2, 34, 2, 9, 8, 1, 1, 2, 7, 13991468824374967392702752173757116934238293984253807017, 3, 4, 1, 3, 100, 4
Offset: 1

Views

Author

Paul D. Hanna, Nov 21 2004

Keywords

Comments

Decimal expansion is 1.832967032396... (see A100863). Records are doubly exponential and form A100865.

Crossrefs

Programs

  • PARI
    {CFM=contfracpnqn(vector(650,n,2^valuation(n,2))); contfrac((CFM[1,1]/CFM[2,1])^2,71)}

A100866 Positions of records in the continued fraction expansion A100864.

Original entry on oeis.org

1, 3, 5, 7, 9, 15, 21, 35, 71, 143, 291, 635, 1407, 2979, 6101, 12339, 25019, 50413, 101339, 202793, 405745, 811365, 1624043, 3249293, 6502711, 13011309
Offset: 1

Views

Author

Paul D. Hanna, Nov 21 2004

Keywords

Comments

Records form A100865 and are doubly exponential. These terms were independently computed by Robert G. Wilson v and Hans Havermann.

Crossrefs

Programs

  • PARI
    
    				
Showing 1-4 of 4 results.