OFFSET
1,1
MAPLE
isA010785 := proc(n) convert(convert(n, base, 10), set) ; if nops(%) = 1 then true ; else false ; fi ; end: A055642 := proc(n) ilog10(n)+ 1; end: A090268 := proc(n) local kern, k, p ; if n = 5 then RETURN(0) ; fi ; kern := ithprime(n) ; k := 1 ; while true do if isA010785(k) then p := k+10^A055642(k)*kern+k*10^(A055642(k)+A055642(kern)) ; if isprime(p) then RETURN(p) ; fi ; fi ; k := k+1 ; od ; end: seq(A090268(n), n=1..40); # R. J. Mathar, Jul 20 2007
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 28 2003
EXTENSIONS
More terms from R. J. Mathar, Jul 20 2007
STATUS
approved