login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A036935
Smallest n-digit prime containing only digits 1 and 8, or 0 if no such prime exists.
1
0, 11, 181, 1181, 18181, 0, 1111181, 11818181, 111111181, 1111111181, 11111188811, 0, 1111111118111, 11111111818181, 111111111111881, 1111111111111181, 11111111111188111, 0, 1111111111111111111
OFFSET
1,2
COMMENTS
a(6k) = 0 as any 6k-digit number containing only digits 1 or 8 is divisible by 7. - Jinyuan Wang, Mar 09 2020
LINKS
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Jan 04 1999
STATUS
approved