[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A262630
Base-10 representation of 1 and the primes at A262629.
3
1, 7, 31, 127, 5113, 303049, 130677919, 8561616127, 343370835961, 398015959727917, 6536129506258687661, 136824982467292060343, 1727891550586579544797, 518772379027828374941147, 33164398702973727192477403, 91254204345537698333055497929
OFFSET
1,2
LINKS
EXAMPLE
n A262629(n) base-10 representation
1 1 1
2 111 7
3 11111 31
4 1111111 127
5 1001111111001 5113
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 *)
CROSSREFS
Cf. A262629. Subsequence of A016041 (except a(1)).
Sequence in context: A036282 A033474 A001896 * A282857 A296573 A180147
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Oct 02 2015
STATUS
approved