login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

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. 0
1, 12, 123, 1234, 14325, 143256, 1234765, 12347658, 123476589, 10123476589 (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

Table of n, a(n) for n=1..10.

Claudio Meller, Lineas con numeros de 1 a n.

CROSSREFS

Cf. A051237, A187869.

Sequence in context: A132943 A262576 A262575 * A187869 A262574 A159901

Adjacent sequences:  A187868 A187869 A187870 * A187872 A187873 A187874

KEYWORD

nonn,base,more

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

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified November 19 03:53 EST 2017. Contains 294912 sequences.