• 0

No First-Hand-Neighbors!!

Question

Posted · Report post

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.

0

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0

Posted · Report post

1, or 1 3.

I get what you're asking, and neither fits. ;)

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Clearly empty sequence (length 0) wins the contest..

0

Share this post


Link to post
Share on other sites
  • 0

Posted (edited) · Report post

the sequence must start at 1 and go to some n (consecutively) where n does not equal 1.

Edited by BMAD
0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

the sequence must start at 1 and go to some n (consecutively) where n does not equal 1.

Now it's a different story. BTW "best answer" sequence starts with 3 not with 1.

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It was clear to me what you were asking.

I just included, for fun, something outside the "box".

Your English is fantastically good, even for a first-language writer,

No need to apologize. ;)

Did I hear somewhere that Russian is your first language?

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

My first language is Ukrainian but I do speak Russian sufficiently.

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

My first language is English and I'm still learning it. My writing is OK but my speech needs work. :blush:

0

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

all of us here are still learning, i believe. which is why I believe we come to a site dedicated to challenge how we think.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.