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.

A088576 Position of the first location of n in the decimal expansion of e.

Original entry on oeis.org

14, 3, 1, 18, 11, 12, 21, 2, 4, 13, 196, 201, 371, 28, 224, 202, 95, 89, 3, 109, 112, 88, 253, 17, 34, 93, 31, 1, 5, 132, 72, 190, 111, 143, 144, 18, 20, 271, 86, 107, 67, 125, 98, 135, 240, 11, 104, 26, 229, 35, 236, 94, 16, 19, 77, 302, 154, 39, 326, 12, 21, 243, 33
Offset: 0

Views

Author

Cino Hilliard, Nov 19 2003

Keywords

Comments

Except for a(0), the same as A051238.

Examples

			The first 7 is in the 2nd position of the digits of e, so a(7) = 2.
		

Crossrefs

Cf. A001113 (decimal expansion of e).
Cf. A036900 (number of digits in the decimal expansion of e that must scanned to get all n-digit strings).
Cf. A032445 (positions in pi), A088577 (positions in phi).

Programs

  • Mathematica
    Module[{nn=400,ed},ed=RealDigits[E,10,nn][[1]];Table[SequencePosition[ed,IntegerDigits[n],1][[1,1]],{n,0,70}]] (* Harvey P. Dale, Mar 30 2025 *)
  • PARI
    trajedigitsd(n,m) = { default(realprecision,6000); p = exp(1)*10^5000; v = Vec(Str(p)); for(d=0,m, for(x=1,n, if(d<10, y = eval(v[x]), if(d<100, y = eval(v[x])*10 + eval(v[x+1]), if(d<1000, y = eval(v[x])*100 + eval(v[x+1])*10 + eval(v[x+2]), y = eval(v[x])*1000 + eval(v[x+1])*100 + eval(v[x+2])*10 + eval(v[x+3]) ); ); ); if(y == d,print1(x",");break); ); ) }

A362058 The location of the first occurrence of n in the decimal expansion of phi (the golden ratio, 1.6180339887...).

Original entry on oeis.org

4, 0, 19, 5, 11, 22, 1, 10, 3, 7, 231, 34, 121, 55, 254, 366, 0, 35, 2, 188, 19, 54, 62, 131, 78, 213, 67, 63, 51, 174, 40, 137, 181, 5, 26, 56, 28, 98, 32, 6, 105, 90, 347, 27, 58, 21, 70, 102, 15, 11, 214, 394, 66, 111, 57, 768, 30, 48, 22, 166, 68, 1, 50
Offset: 0

Views

Author

James C. McMahon, Apr 06 2023

Keywords

Comments

Locations in the expansion of phi are numbered 0 for the digit before the decimal point, 1 for the first digit after the decimal point, and so on.

Examples

			The first occurrence of 0 in phi occurs 4 places after the decimal point, so a(0)=4; 5 first occurs 22 places after the decimal point, so a(5)=22; 10 first occurs 231 places after the decimal point so a(10)=231.
		

Crossrefs

Cf. A001622 (phi)
Cf. A088577 (1-based locations).
Cf. A078197 (for e), A176341 (for Pi), A014777 (for Pi but different indexing).

Programs

  • Mathematica
    Table[-1 + SequencePosition[#, IntegerDigits@ n][[1, 1]], {n, 0, 50}] &@ First@ RealDigits@ N[GoldenRatio, 10^4]

Formula

a(n) = A088577(n) - 1.
Showing 1-2 of 2 results.