login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A262632 Base-10 representation of 1 and the primes at A262631. 3

%I #4 Oct 19 2015 05:11:12

%S 1,13,1093,167309,1033369,7883077,974928839,685325330447,

%T 384532463201461,36815155568146289,229925116170082520417,

%U 148014988051032245586139,12100604707837079041828993,1155600708425254785803483981,1006197859457454560045466031133

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

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

%e n A262631(n) base-10 representation

%e 1 1 1

%e 2 111 13

%e 3 1111111 1093

%e 4 22111111122 167309

%t s = {1}; base = 3; 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 (* A262631 *)

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

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

%Y Cf. A262631.

%K nonn,easy,base

%O 1,2

%A _Clark Kimberling_, Oct 02 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 6 00:26 EDT 2024. Contains 375701 sequences. (Running on oeis4.)