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-2 of 2 results.

A194351 Starting position of the first occurrence of a string of 2^n in the decimal expansion of Pi.

Original entry on oeis.org

1, 6, 2, 11, 40, 15, 22, 148, 1750, 1842, 12735, 26862, 27372, 2943, 37619, 39587, 106920, 820238, 76875, 47887, 6150809, 3660438, 17376657, 15416321, 162454456, 132295965, 265234498, 33844308, 4847933000, 671531549, 1122335995, 2894348872, 763748417
Offset: 0

Views

Author

Kausthub Gudipati, Aug 22 2011

Keywords

Comments

a(46) > 50*10^12. - _Dmitry Petukhov, Oct 27 2021

Examples

			Pi = 3.141592653589793238462643383279502884197169399375105.. The '1' (2^0) after the decimal point is at position 1. The '1' of the first occurrence of '16' (2^4) is at position 40.
		

Crossrefs

Programs

  • Mathematica
    d = ToString[N[Pi-3, 1000000]]; Table[pos = StringPosition[d, ToString[2^n], 1]; If[pos == {}, Print["not enough digits for ", 2^n]; pos = 0, pos = pos[[1, 1]] - 2], {n, 0, 19}] (* T. D. Noe, Sep 02 2011 *)

Formula

a(n) = A032445(2^n)-1. - R. J. Mathar, Sep 02 2011

Extensions

Terms corrected by D. S. McNeil, Sep 02 2011
a(29), a(32) from D. S. McNeil, Sep 03 2011
Edited by Hans Havermann, Jul 22 2014
a(28), a(30)-a(31) from Hans Havermann, Jul 22 2014
a(33)-a(43), a(45) from Dmitry Petukhov, Jan 27 2020
a(44) from Dmitry Petukhov, Oct 27 2021

A245331 Number of truncated Pi decimal digits that yield record approximations to Pi when the concatenation of the first half of the digits is divided by the second half.

Original entry on oeis.org

2, 23, 87, 157, 1523, 3445551, 26620870, 30512347, 72713283, 344661698, 1129330411, 3886591581, 5085084202, 11916345303, 15510679381
Offset: 1

Views

Author

Eric Angelini and Hans Havermann, Jul 18 2014

Keywords

Comments

For odd terms, the number of digits in the first "half" is one more than in the second half. Even terms imply the second half begins with 1; odd terms, with 9.
The second-half numbers:
1 1
2 97932384626
3 99375105820974944592..
4 99862803482534211706..
5 99999983729780499510..
6 99999993176688420006..
7 10000000420467135547..
8 99999998414267344764..
9 99999999542282360035..
10 10000000012202360559..
11 99999999941927584272..
12 99999999948261395946..
13 10000000002413899137..
14 99999999975954453917..
15 99999999988383727123..

Examples

			a(1) is 2 because 3/1 (1+1 digits) provides the first approximation to Pi. a(2) is 23 because 314159265358/97932384626 (12+11 digits) provides the next better approximation.
		

Crossrefs

Extensions

a(12)-a(15) from Hans Havermann, Jul 19 2014
Showing 1-2 of 2 results.