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.

A262632 Base-10 representation of 1 and the primes at A262631.

Original entry on oeis.org

1, 13, 1093, 167309, 1033369, 7883077, 974928839, 685325330447, 384532463201461, 36815155568146289, 229925116170082520417, 148014988051032245586139, 12100604707837079041828993, 1155600708425254785803483981, 1006197859457454560045466031133
Offset: 1

Views

Author

Clark Kimberling, Oct 02 2015

Keywords

Examples

			n   A262631(n)    base-10 representation
1   1                1
2   111              13
3   1111111          1093
4   22111111122      167309
		

Crossrefs

Cf. A262631.

Programs

  • Mathematica
    s = {1}; base = 3; 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  (* A262631 *)
    Map[FromDigits[ToString[#], base] &, s]  (* A262632 *)
    (* Peter J. C. Moses, Sep 01 2015 *)