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.

A331015 Self-locating strings within Euler-Mascheroni Constant (gamma), strings k at position k (taking gamma offset 1).

Original entry on oeis.org

57, 16939, 767158, 5505709, 6674196, 7418985, 18873720
Offset: 1

Views

Author

S. Alwin Mao, Feb 12 2020

Keywords

Comments

The first self-locating digits of gamma are 57, and the first digits of gamma are 57.
A near-miss '04305165' begins at position 4305165.

Examples

			57 is a term because the 57th digit is 5 and the 58th digit is 7.
		

Crossrefs

Euler-Mascheroni constant digits: A001620.
Self-locating digits of Pi: A057679, A064810 and e: A205648.

Programs

  • Mathematica
    dgamma = RealDigits[EulerGamma, 10, 1000010][[1]]; Select[Range[1000000], FromDigits[Take[dgamma, {#, # - 1 + IntegerLength[#]}]] == # &] (* Vaclav Kotesovec, Feb 18 2020 *)

A358211 Self-locating strings within e: numbers k such that the string k is at position k (after the decimal point) in the decimal digits of e, where 7 is the 0th digit.

Original entry on oeis.org

1, 8, 215, 374, 614, 849, 4142, 7945, 5964055, 8008913, 7131377227, 8829981707
Offset: 0

Views

Author

Chris Baumann, Nov 04 2022

Keywords

Examples

			The first two terms 1 and 8 are depicted here:
Position:      0123456789...
Digits of e: 2.7182818284...
               .^......^....
1 is the first term because 1 is in position 1 after the decimal point (when starting to count with 0).
8 is the second term because 8 is in position 8 etc.
		

Crossrefs

Programs

  • Python
    # after Michael S. Branicky in A064810
    # First get a file with e digits, e.g. https://www4.baumann.at/downloads/e.txt
    with open('e.txt', 'r') as f: digits_of_e = f.readline()[2:]
    def afind():
      global digits_of_e
      for k in range(len(digits_of_e)):
        s = str(k)
        if digits_of_e[k:k+len(s)] == s: print(k, end=", ")
    afind()

Extensions

a(9)-a(12) from Michael S. Branicky, Nov 04 2022
Showing 1-2 of 2 results.