OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..300
EXAMPLE
MATHEMATICA
s = {1}; base = 8; 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 (* A262661 *)
Map[FromDigits[ToString[#], base] &, s] (* A262662 *)
(* Peter J. C. Moses, Sep 01 2015 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Oct 31 2015
STATUS
approved