OFFSET
1,1
COMMENTS
If prime(n) is a repunit then a(n)=prime(n) by convention.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(6)=23 because p(6)=13 written in base 3 is 23,
a(7)=21 because p(7)=19 written in base 9 is 21.
MATHEMATICA
Table[p=Prime[n]; id=IntegerDigits[p]; ma=If[Max[id]==1, 10, Max[id]]; FromDigits[IntegerDigits[p, ma]], {n, 1, 128}]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Oct 18 2009
STATUS
approved