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”).

A135375
Smallest prime made up of strings of all first n digits concatenated in ascending order and sandwiched between two 1's.
0
101, 10111, 101221, 10001231, 101123441, 1001233451, 1012345661, 101123456671, 101223456781, 1012334567891
OFFSET
1,1
EXAMPLE
a(6)=1001233451 because the first 6 digits 0,1,2,3.4,5 appear in this order as concatenated strings of 00,1,2,33,4,5 in between the two end 1's ; This prime is the smallest since it is followed by 1011234451,10012334551,10122223451,...
PROG
(Shell) # Run on a list of primes
grep -m1 '^10+1$' primelistgrep -m1 '^10+1+1$' primelist
grep -m1 '^10+1+2+1$' primelist
grep -m1 '^10+1+2+3+1$' primelist
grep -m1 '^10+1+2+3+4+1$' primelist
grep -m1 '^10+1+2+3+4+5+1$' primelist
grep -m1 '^10+1+2+3+4+5+6+1$' primelist
grep -m1 '^10+1+2+3+4+5+6+7+1$' primelist
grep -m1 '^10+1+2+3+4+5+6+7+8+1$' primelist
grep -m1 '^10+1+2+3+4+5+6+7+8+9+1$' primelist
CROSSREFS
Sequence in context: A255892 A065074 A113628 * A267622 A172162 A096884
KEYWORD
fini,full,nonn,base
AUTHOR
Lekraj Beedassy, Dec 09 2007
EXTENSIONS
Program from Charles R Greathouse IV, Nov 19 2010.
STATUS
approved