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.

A262630 Base-10 representation of 1 and the primes at A262629.

Original entry on oeis.org

1, 7, 31, 127, 5113, 303049, 130677919, 8561616127, 343370835961, 398015959727917, 6536129506258687661, 136824982467292060343, 1727891550586579544797, 518772379027828374941147, 33164398702973727192477403, 91254204345537698333055497929
Offset: 1

Views

Author

Clark Kimberling, Oct 02 2015

Keywords

Examples

			n   A262629(n)    base-10 representation
1   1                 1
2   111               7
3   11111             31
4   1111111           127
5   1001111111001     5113
		

Crossrefs

Cf. A262629. Subsequence of A016041 (except a(1)).

Programs

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