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.

A049306 Numbers k such that k is a substring of 8^k.

Original entry on oeis.org

4, 6, 7, 10, 13, 17, 18, 28, 31, 33, 36, 38, 42, 44, 47, 48, 49, 52, 54, 56, 58, 60, 63, 64, 67, 68, 69, 76, 77, 79, 81, 82, 83, 85, 86, 89, 90, 91, 94, 97, 112, 115, 124, 130, 135, 165, 173, 176, 178, 189, 193, 195, 206, 208, 215, 221, 225, 249, 251, 252, 253, 256
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Range[300],SequenceCount[IntegerDigits[8^#],IntegerDigits[#]]>0&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 16 2018 *)
  • Python
    def ok(n): return str(n) in str(8**n)
    print(list(filter(ok, range(257)))) # Michael S. Branicky, Aug 13 2021