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.

A262642 Base-10 representation of 1 and the primes at A262641.

Original entry on oeis.org

1, 31, 2659, 28921, 20254277, 222258347161, 6703502508238897, 2849796577598550571, 163260594826469315359, 78587320839900014133983, 63082726980138277941240209, 28861909227691304085982177103, 17774573388934687063056536849453
Offset: 1

Views

Author

Clark Kimberling, Oct 24 2015

Keywords

Examples

			n   A262641(n)    base-10 representation
1     1                  1
2     111                31
3     41114              2659
		

Crossrefs

Cf. A262641.

Programs

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