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

A029947 Smallest cube containing n-th prime as substring.

Original entry on oeis.org

27, 343, 125, 27, 91125, 1331, 1728, 2197, 103823, 729, 1331, 3375, 531441, 343, 250047, 50653, 6859, 9261, 12167, 571787, 97336, 29791, 5832, 24389, 2197, 1191016, 103823, 10793861, 1092727, 11390625, 13481272, 13144256
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Function[p, k = 1; While[Length@ SequencePosition[ IntegerDigits[Set[c, k^3]], p] == 0, k++]; c]@ IntegerDigits@ Prime@ n, {n, 32}] (* Michael De Vlieger, May 04 2017, Version 10.1 *)
    Module[{nn=300,cbs},cbs=Range[nn]^3;Table[SelectFirst[cbs,SequenceCount[IntegerDigits[#],IntegerDigits[p]]>0&],{p,Prime[Range[40]]}]] (* Harvey P. Dale, Nov 19 2024 *)

Formula

a(n) = A029946(n)^3. - Michel Marcus, May 04 2017
Showing 1-1 of 1 results.