Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6221207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:05:32+00:00 2026-05-24T08:05:32+00:00

For example: 1,2,4,5 has the following sum: 1,2,4,5 3,6,9 7,11 12 and every sum

  • 0

For example: 1,2,4,5 has the following sum:

1,2,4,5

3,6,9

7,11

12

and every sum is unique.

Now, 1,2,3 has the following sum:

1,2,3

3,5

6

and apparently not every sum is unique.

Is there any efficient way to generate similar sequence to the first example with the goal of picking every number as small as possible (not just 1,2,4,8,16…)? I understand I could write a program to perhaps bruteforce this, but I’m just curious can it be done in a better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:05:33+00:00Added an answer on May 24, 2026 at 8:05 am

    I think what you’re looking for here is a Golomb Ruler. If you take the numbers you’re describing above as the distance between marks, you’ve described a Golomb Ruler. When the set of marks on a ruler has no duplicates, as you’ve described, that’s what makes it a Golomb Ruler.

    It appears the standard way to describe a Golomb Ruler is by representing the location of each mark, not the distances between them. Therefore, your 1,2,4,5 would be described as a Golomb Ruler 0-1-3-7-12.

    Quoting Wikipedia:

    Currently, the complexity of finding OGRs of arbitrary order n (where
    n is given in unary) is unknown. In the past there was some
    speculation that it is an NP-hard problem. Problems related to the
    construction of Golomb Rulers are provably shown to be NP-hard, where
    it is also noted that no known NP-complete problem has similar flavor
    to finding Golomb Rulers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading the Scala in Examples book and almost every example there has
I am wondering why in the following example the top and bottom padding has
Is the hook_block has been changed? the following is drupal 6 example i have
What is an example program that has a bug due to _ReadBarrier() not being
The call log has the following columns: CallingParty, CalledParty, Duration, EventTime and the example
I have the following requirement. Ex: There is a transaction table where it has
Complete C++ i18n gettext() hello world example has C++ code that works for a
Trying to find an example that has css rollover using sprites & sliding door
When running the MVC 2 Areas example that has a Blog Area and Blog
How to create new type in c#? For example byte has range 0 to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.