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!)
A187871 a(1)=1; for n > 1, a(n) is the smallest number that is formed by arranging the decimal numbers "1", "2", ..., "n" in some order so that the sum of every pair of adjacent numbers "i" "j" is prime. 1
1, 12, 123, 1234, 14325, 143256, 1234765, 12347658, 123476589, 10123476589, 1103211658947, 101121123476589, 11013432111276589, 1011211231458941367, 110134151432111276589, 10112112151431613476589, 1101316151417121123476589, 101121118131615141723476589 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A051237 and A187869 are the sequence that result if in addition we require that the number begins with "1" and ends with "n".
LINKS
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A262576 A362119 A262575 * A187869 A362117 A262574
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Mar 14 2011
EXTENSIONS
a(6) to a(10) from Claudio Meller, Mar 14 2011
a(10) corrected by Nathaniel Johnston, Mar 15 2011
More terms from Rémy Sigrist, Nov 28 2021
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 April 25 16:23 EDT 2024. Contains 371989 sequences. (Running on oeis4.)