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

%I #4 Nov 09 2015 16:21:12

%S 1,73,397921,1367644241,299767396606721,90081358266396705673,

%T 572449184873406814806649,241691401643304337894510228163,

%U 1070153549095058339670505721475283,9539239297109609328178537670671873231,582002984818031754009910745491662885723817

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

%H Clark Kimberling, <a href="/A262662/b262662.txt">Table of n, a(n) for n = 1..300</a>

%e n A262661(n) base-10 representation

%e 1 1 0

%e 2 111 73

%e 3 1411141 397921

%t s = {1}; base = 8; z = 20; Do[NestWhile[# + 1 &, 1, ! PrimeQ[tmp = FromDigits[Join[#, IntegerDigits[Last[s]], Reverse[#]] &[IntegerDigits[#, base]], base]] &];

%t AppendTo[s, FromDigits[IntegerDigits[tmp, base]]], {z}]; s (* A262661 *)

%t Map[FromDigits[ToString[#], base] &, s] (* A262662 *)

%t (* _Peter J. C. Moses_, Sep 01 2015 *)

%Y Cf. A262661.

%K nonn,easy,base

%O 1,2

%A _Clark Kimberling_, Oct 31 2015