OFFSET
1,1
COMMENTS
Elements of this sequence are the first 9 primes, then the 11th, 22nd, 33rd, ... , 99th, 111th, 222nd, etc. This is a somewhat remarkable sequence because of certain digital coincidences (see Prime Curios links).
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..153
Andrew Booker, The Nth Prime Page
Prime Curios!, 989999
Prime Curios!, 640663963
Wikipedia, Repdigit
Wikipedia, Prime-counting function
EXAMPLE
The first prime skipped is the 10th, 29, so that a(10)=31. Then follows a(11)=79, a(12)=137, a(13)=193, etc.: The 22nd, 33rd, and 44th primes, and so on.
MATHEMATICA
Prime[#]&/@(FromDigits/@Flatten[Table[PadRight[{}, k, n], {k, 6}, {n, 9}], 1]) (* Harvey P. Dale, Mar 25 2019 *)
PROG
(PARI) a(n)=prime(10^((n+8)\9)\9*((n-1)%9+1)) \\ Charles R Greathouse IV, Jun 03 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
James G. Merickel, May 29 2015
STATUS
approved