This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A107929 Smallest list of integers from 1 to n such that sum of any two adjacent terms is a square. 0
 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS This "solution" holds also for numbers 0 to n=15: it is sufficient to put zero at the end of the sequence. The same is true for cases n=16 and 17: {8,1,15,10,6,3,13,12,4,5,11,14,2,7,9,16} (add zero at the end or between 9 and 16 which gives two solutions), {16,9,7,2,14,11,5,4,12,13,3,6,10,15,1,8,17} (add zero at the beginning or between 16 and 9 which gives two solutions). Also, for n=23 (next case with 1-to-n solution), we have 4 0-to-n solutions, etc. Cf. A090461 = numbers n such that there is a permutation of the numbers 1 to n such that the sum of adjacent numbers is a square; A090461 = numbers n such that there is a permutation of the numbers 1 to n such that the sum of adjacent numbers is a square. LINKS EXAMPLE 8+1=9, 1+15=16, 15+10=25, 10+6=16, 6+3=9, 3+13=16, 13+12=25, 12+4=16, 4+5=9, 5+11=16, 11+14=25, 14+2=16, 2+7=9, 7+9=16 all 14 sums are squares. CROSSREFS Cf. A090460, A090461, A071983. Sequence in context: A209684 A173988 A158893 * A040071 A317026 A126000 Adjacent sequences:  A107926 A107927 A107928 * A107930 A107931 A107932 KEYWORD fini,full,nonn AUTHOR Zak Seidov, Jun 11 2005 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
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 22 23:00 EST 2019. Contains 319365 sequences. (Running on oeis4.)