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.

A262654 Base-10 representation of 4 and the primes at A262653.

Original entry on oeis.org

4, 61, 1663, 243263, 9857663, 3982846453, 122168020854499, 772191321163986959, 235380054470968985242897, 390489415238382125919557233, 2056313729049707794675149973499, 18249666491214590662011175235075053, 4157609603822695440999128471752421052593
Offset: 1

Views

Author

Clark Kimberling, Oct 27 2015

Keywords

Examples

			n   A262653(n)    base-10 representation
1     4                  4
2     141                61
3     11411              1663
		

Crossrefs

Cf. A262653.

Programs

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