a(n) = smallest r where (concatenation of n, r times with itself)*10 + 1 is a prime given by A087403(n), or 0 if no such number exists.

A086766

a(n) = smallest r where (concatenation of n, r times with itself)*10 + 1 is a prime given by A087403(n), or 0 if no such number exists.

Terms

    a(0) =1a(1) =3a(2) =1a(3) =1a(4) =11a(5) =1a(6) =1a(7) =2a(8) =2a(9) =1a(10) =9a(11) =3a(12) =1a(13) =5a(14) =1a(15) =3a(16) =15a(17) =1a(18) =1a(19) =2a(20) =1a(21) =60a(22) =3a(23) =1a(24) =1a(25) =2a(26) =1a(27) =1a(28) =5a(29) =5

External references