Skip to main content
Post Undeleted by caird coinheringaahin gMod
Post Deleted by caird coinheringaahin gMod
deleted 5537 characters in body
Source Link

Output a unique sign sequence

A sign sequence is an infinite sequence consisting entirely of \$1\$ and \$-1\$. These can be constructed a number of ways, for example:

  • Alternating signs: \$1, -1, 1, -1, ...\$
  • \$-1\$ for primes, \$1\$ for non-primes: \$1, -1, -1, 1, -1, 1, -1, ...\$
  • All \$1\$s: \$1, 1, 1, ...\$

Your task is to write a piece of code that outputs a deterministic sign sequence that no other answer already outputs. You must include a proof that your sequence is unique from all sequences posted before yours. You do not have to worry about keeping up to date for newer answers, as they must ensure their sequences are unique, not you.

You may output in any reasonable manner, including (but not limited to):

  • Outputting an infinite list/generator/tuple of values
  • Outputting the next value in the sequence each time your code is run
  • Outputting the sequence infinitely

You may not take any input (unless necessary), so outputing the first \$n\$ terms or the \$n\$th term is not allowed.

I've included my implementation of a sequence as the first answer, to ensure that all answers have to provide a proof of uniqueness.


This is a , so the answer with the most votes wins. You should aim to do the following things in your answer:

  • Be creative. Avoid simply outputting constant runs of \$1\$s or \$-1\$s or outputting one value when a number is insert common numeric property here and the other when not (e.g. primes or Fibonacci numbers).
  • Avoid copying others. While all sequences must be unique, aim to be innovative, rather than simply slightly modify another user's sequence (for example, swapping the placements of \$1\$ and \$-1\$)
  • Make it clear what your program is doing. Not everyone can read a Jelly, R or Java answer, but they can read an explanation of the answer, as well as an explanation of how/why you chose this specific sequence and the proof of uniqueness included in your answer

Voters should consider the following when casting their votes:

  • How creative is the sequence? Has it been done to death before, or is it something you've never seen before?

  • Is it unique, or is it simply a slight modification on a sequence that many other users have done? If it is a modification, is it uncreative, or has the author seen a property that others haven't?

  • How clever is the implementation of the sequence, and how well explained is it? For this, consider both the actual code of the answer and the algorithm it implements. If the code uses a language specific trick you find particularly impressive, it may be worth an upvote. If the implementation of the algorithm is so general than any language could be used, yet is still creative and unique, it's probably worth an upvote. However, if the code is overly convoluted when a simpler method would work, or if the algorithm is incredibly inefficient when a better version exists, consider casting a downvote.

    Furthermore, while you may not be able to understand the 10 bytes of 05AB1E posted, if explained well, you should be able to get a solid understanding of how those 10 bytes implement the chosen sequence, and how clever it is. And while you may be able to fluently read Python, if poorly coded with no explanation, you may not be able to fully understand how that program works. Consider this factor when voting.

Voters should not vote for an answer for any of the following reasons:

  • The program is written in your favourite/least favourite language
    • Voting for the use of tricks within a language are fine. Voting for an answer because of the language, is not an acceptable reason
  • The program is short/long/written with ASCII characters/written without ASCII characters
  • You recognize the user who wrote the answer and you love/hate them
  • Any other reason not specified above (e.g. "This answer uses the e character, I love it!")

MetaOutput a unique sign sequence

  • This challenge wasn't designed with as the primary focus. Rather, it's tagged that way because I can't think of any better winning criteria that would lead to the results I'm looking for. I'd love to hear any and all suggestions you have for better winning criteria, but I would like you to consider whether that criteria promotes the central focuses I'm aiming for, which are (in decreasing order of importance):

    • Interesting sequences. For example, wouldn't work, as it's reductive nature would lead people to use the more basic sign sequences
    • Interesting code. This could work for most criteria, but it shouldn't be a priority over the sequences
    • A winning criteria better than . there's no point suggesting an alternative, more objective criteria if it will reduce the importance of the previous two points.
  • challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them

  • Is this clear enough?

  • Are there any obvious voting reasons I've missed?

  • Is this a duplicate?

  • Tags are , , . Any suggestions?

    • I'm considering because new answers depend on the previous ones. However, this is an edge case IMO of the tag, so I'd appreciate some feedback on whether to include it or not.
  • Any further feedback?

Output a unique sign sequence

A sign sequence is an infinite sequence consisting entirely of \$1\$ and \$-1\$. These can be constructed a number of ways, for example:

  • Alternating signs: \$1, -1, 1, -1, ...\$
  • \$-1\$ for primes, \$1\$ for non-primes: \$1, -1, -1, 1, -1, 1, -1, ...\$
  • All \$1\$s: \$1, 1, 1, ...\$

Your task is to write a piece of code that outputs a deterministic sign sequence that no other answer already outputs. You must include a proof that your sequence is unique from all sequences posted before yours. You do not have to worry about keeping up to date for newer answers, as they must ensure their sequences are unique, not you.

You may output in any reasonable manner, including (but not limited to):

  • Outputting an infinite list/generator/tuple of values
  • Outputting the next value in the sequence each time your code is run
  • Outputting the sequence infinitely

You may not take any input (unless necessary), so outputing the first \$n\$ terms or the \$n\$th term is not allowed.

I've included my implementation of a sequence as the first answer, to ensure that all answers have to provide a proof of uniqueness.


This is a , so the answer with the most votes wins. You should aim to do the following things in your answer:

  • Be creative. Avoid simply outputting constant runs of \$1\$s or \$-1\$s or outputting one value when a number is insert common numeric property here and the other when not (e.g. primes or Fibonacci numbers).
  • Avoid copying others. While all sequences must be unique, aim to be innovative, rather than simply slightly modify another user's sequence (for example, swapping the placements of \$1\$ and \$-1\$)
  • Make it clear what your program is doing. Not everyone can read a Jelly, R or Java answer, but they can read an explanation of the answer, as well as an explanation of how/why you chose this specific sequence and the proof of uniqueness included in your answer

Voters should consider the following when casting their votes:

  • How creative is the sequence? Has it been done to death before, or is it something you've never seen before?

  • Is it unique, or is it simply a slight modification on a sequence that many other users have done? If it is a modification, is it uncreative, or has the author seen a property that others haven't?

  • How clever is the implementation of the sequence, and how well explained is it? For this, consider both the actual code of the answer and the algorithm it implements. If the code uses a language specific trick you find particularly impressive, it may be worth an upvote. If the implementation of the algorithm is so general than any language could be used, yet is still creative and unique, it's probably worth an upvote. However, if the code is overly convoluted when a simpler method would work, or if the algorithm is incredibly inefficient when a better version exists, consider casting a downvote.

    Furthermore, while you may not be able to understand the 10 bytes of 05AB1E posted, if explained well, you should be able to get a solid understanding of how those 10 bytes implement the chosen sequence, and how clever it is. And while you may be able to fluently read Python, if poorly coded with no explanation, you may not be able to fully understand how that program works. Consider this factor when voting.

Voters should not vote for an answer for any of the following reasons:

  • The program is written in your favourite/least favourite language
    • Voting for the use of tricks within a language are fine. Voting for an answer because of the language, is not an acceptable reason
  • The program is short/long/written with ASCII characters/written without ASCII characters
  • You recognize the user who wrote the answer and you love/hate them
  • Any other reason not specified above (e.g. "This answer uses the e character, I love it!")

Meta

  • This challenge wasn't designed with as the primary focus. Rather, it's tagged that way because I can't think of any better winning criteria that would lead to the results I'm looking for. I'd love to hear any and all suggestions you have for better winning criteria, but I would like you to consider whether that criteria promotes the central focuses I'm aiming for, which are (in decreasing order of importance):

    • Interesting sequences. For example, wouldn't work, as it's reductive nature would lead people to use the more basic sign sequences
    • Interesting code. This could work for most criteria, but it shouldn't be a priority over the sequences
    • A winning criteria better than . there's no point suggesting an alternative, more objective criteria if it will reduce the importance of the previous two points.
  • challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them

  • Is this clear enough?

  • Are there any obvious voting reasons I've missed?

  • Is this a duplicate?

  • Tags are , , . Any suggestions?

    • I'm considering because new answers depend on the previous ones. However, this is an edge case IMO of the tag, so I'd appreciate some feedback on whether to include it or not.
  • Any further feedback?

added 897 characters in body
Source Link
  • challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them

    This challenge wasn't designed with as the primary focus. Rather, it's tagged that way because I can't think of any better winning criteria that would lead to the results I'm looking for. I'd love to hear any and all suggestions you have for better winning criteria, but I would like you to consider whether that criteria promotes the central focuses I'm aiming for, which are (in decreasing order of importance):

    • Interesting sequences. For example, wouldn't work, as it's reductive nature would lead people to use the more basic sign sequences
    • Interesting code. This could work for most criteria, but it shouldn't be a priority over the sequences
    • A winning criteria better than . there's no point suggesting an alternative, more objective criteria if it will reduce the importance of the previous two points.
  • Is this clear enough?

    challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them

  • Are there any obvious voting reasons I've missed?

    Is this clear enough?

  • Is this a duplicate?

    Are there any obvious voting reasons I've missed?

  • Tags are , , . Any suggestions?

    Is this a duplicate?

  • Tags are , , . Any suggestions?

    • I'm considering because new answers depend on the previous ones. However, this is an edge case IMO of the tag, so I'd appreciate some feedback on whether to include it or not.
  • Any further feedback?

    Any further feedback?

  • challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them
  • Is this clear enough?
  • Are there any obvious voting reasons I've missed?
  • Is this a duplicate?
  • Tags are , , . Any suggestions?
    • I'm considering because new answers depend on the previous ones. However, this is an edge case IMO of the tag, so I'd appreciate some feedback on whether to include it or not.
  • Any further feedback?
  • This challenge wasn't designed with as the primary focus. Rather, it's tagged that way because I can't think of any better winning criteria that would lead to the results I'm looking for. I'd love to hear any and all suggestions you have for better winning criteria, but I would like you to consider whether that criteria promotes the central focuses I'm aiming for, which are (in decreasing order of importance):

    • Interesting sequences. For example, wouldn't work, as it's reductive nature would lead people to use the more basic sign sequences
    • Interesting code. This could work for most criteria, but it shouldn't be a priority over the sequences
    • A winning criteria better than . there's no point suggesting an alternative, more objective criteria if it will reduce the importance of the previous two points.
  • challenges are difficult to make objective. I believe that I've made it as objective as I can by including voting criteria, but if you have any suggestions, I'd love to hear them

  • Is this clear enough?

  • Are there any obvious voting reasons I've missed?

  • Is this a duplicate?

  • Tags are , , . Any suggestions?

    • I'm considering because new answers depend on the previous ones. However, this is an edge case IMO of the tag, so I'd appreciate some feedback on whether to include it or not.
  • Any further feedback?

added 1 character in body
Source Link
  • Be creative. Avoid simply outputting constant runs of \$1\$s or \$-1\$s or outputting one value when a number is insert common numeric property here and the other when not (e.g. primes or Fibonacci numbers).
  • Avoid copying others. While all sequences must be unique, aim to be innovative, rather than simply slightly modify another user's sequence (for example, swapping the placements of \$1\$ and \$-1\$)
  • Make it clear what your program is doing. Not everyone can read a Jelly, R or Java answer, but they can read an explanation of the answer, as well as an explanation of how/why you chose this specific sequence and the proof of uniqueness included in your answer
  • Be creative. Avoid simply outputting constant runs of \$1\$s or \$-1\$s or outputting one value when a number is insert common numeric property here and the other when not (e.g. primes or Fibonacci numbers).
  • Avoid copying others. While all sequences must be unique, aim to be innovative, rather than simply slightly modify another user's sequence (for example, swapping the placements of \$1\$ and \$-1\$
  • Make it clear what your program is doing. Not everyone can read a Jelly, R or Java answer, but they can read an explanation of the answer, as well as an explanation of how/why you chose this specific sequence and the proof of uniqueness included in your answer
  • Be creative. Avoid simply outputting constant runs of \$1\$s or \$-1\$s or outputting one value when a number is insert common numeric property here and the other when not (e.g. primes or Fibonacci numbers).
  • Avoid copying others. While all sequences must be unique, aim to be innovative, rather than simply slightly modify another user's sequence (for example, swapping the placements of \$1\$ and \$-1\$)
  • Make it clear what your program is doing. Not everyone can read a Jelly, R or Java answer, but they can read an explanation of the answer, as well as an explanation of how/why you chose this specific sequence and the proof of uniqueness included in your answer
added 1085 characters in body
Source Link
Loading
Source Link
Loading