Jump to content
BrainDen.com - Brain Teasers
  • 0

No First-Hand-Neighbors!!


BMAD
 Share

Question

Create the shortest possible sequence (using numbers from 1,2,...n) such that no number is next to its first-hand neighbors (e.g. the number 2 cannot be next to numbers 1 and 3, which are its first-hand neighbors).

e.g.

1,6,3,5,2,4,7 Here is a sequence using 7 numbers that meets the requirement.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

I am sorry, I am working on translating to English better. I mean to say that the numbers you use must contain the sequence from 1 to some N but don't have to start that way. So 1, 3, 5, 2, and 4 are fine since it contains numbers 1-5 and no first hand neighbors.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...