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.

A262662 Base-10 representation of 1 and the primes at A262661.

Original entry on oeis.org

1, 73, 397921, 1367644241, 299767396606721, 90081358266396705673, 572449184873406814806649, 241691401643304337894510228163, 1070153549095058339670505721475283, 9539239297109609328178537670671873231, 582002984818031754009910745491662885723817
Offset: 1

Views

Author

Clark Kimberling, Oct 31 2015

Keywords

Examples

			n   A262661(n)    base-10 representation
1     1                 0
2     111               73
3     1411141           397921
		

Crossrefs

Cf. A262661.

Programs

  • Mathematica
    s = {1}; base = 8; z = 20; Do[NestWhile[# + 1 &, 1, ! PrimeQ[tmp = FromDigits[Join[#, IntegerDigits[Last[s]], Reverse[#]] &[IntegerDigits[#, base]], base]] &];
    AppendTo[s, FromDigits[IntegerDigits[tmp, base]]], {z}]; s  (* A262661 *)
    Map[FromDigits[ToString[#], base] &, s]  (* A262662 *)
    (* Peter J. C. Moses, Sep 01 2015 *)