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!)
A262630 Base-10 representation of 1 and the primes at A262629. 3

%I #7 Oct 17 2015 17:40:54

%S 1,7,31,127,5113,303049,130677919,8561616127,343370835961,

%T 398015959727917,6536129506258687661,136824982467292060343,

%U 1727891550586579544797,518772379027828374941147,33164398702973727192477403,91254204345537698333055497929

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

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

%e n A262629(n) base-10 representation

%e 1 1 1

%e 2 111 7

%e 3 11111 31

%e 4 1111111 127

%e 5 1001111111001 5113

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

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

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

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

%K nonn,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 March 28 17:42 EDT 2024. Contains 371254 sequences. (Running on oeis4.)