login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 8 01:04 EDT 2024. Contains 375018 sequences. (Running on oeis4.)