Cops: The Hidden OEIS SubstringRobbers: The Hidden OEIS SubstringCryptographic hash golf (robbers)Polyglot Anagrams Robbers' ThreadHidden Inversions (Robbers' Thread)Anagram Quines (Robbers' Thread)Stealing sequences: CopsWill it halt? (Robbers)Restricted mini challenges Robbers ThreadSolving Secret Swapping Sequences“Hello, World!” (Cops' thread)Robbers: The Hidden OEIS Substring

Why didn't Nick Fury expose the villain's identity and plans?

Storming Area 51

Good resources for solving techniques (Metaheuristics, MILP, CP etc)

What prevents someone from claiming to be the murderer in order to get the real murderer off?

What's the point of having a RAID 1 configuration over incremental backups to a secondary drive?

Print the last, middle and first character of your code

Why weren't bootable game disks ever common on the IBM PC?

Is the genetic term "polycistronic" still used in modern biology?

Do you know your 'KVZ's?

Are randomly-generated passwords starting with "a" less secure?

Why did Harry Potter get a bedroom?

C program to parse source code of another language

Modulus Operandi

What steps should I take to lawfully visit the United States as a tourist immediately after visiting on a B-1 visa?

Is there any word for "disobedience to God"?

Shortest hex dumping program

Cracking the Coding Interview — 1.5 One Away

Why are all my yellow 2V/20mA LEDs burning out with 330k Ohm resistor?

Using Newton's shell theorem to accelerate a spaceship

Single word for "refusing to move to next activity unless present one is completed."

As the Dungeon Master, how do I handle a player that insists on a specific class when I already know that choice will cause issues?

How to md5 a list of filepaths contained in a file?

Why queuable apex accepts sobjects where as future methods doesn't?

How did the hit man miss?



Cops: The Hidden OEIS Substring


Robbers: The Hidden OEIS SubstringCryptographic hash golf (robbers)Polyglot Anagrams Robbers' ThreadHidden Inversions (Robbers' Thread)Anagram Quines (Robbers' Thread)Stealing sequences: CopsWill it halt? (Robbers)Restricted mini challenges Robbers ThreadSolving Secret Swapping Sequences“Hello, World!” (Cops' thread)Robbers: The Hidden OEIS Substring






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








8












$begingroup$


This is a Cops and Robbers challenge. This is the cop's thread. The robber's thread is here.



As a cop, you must pick any sequence from the OEIS, and write a program p that prints the first integer from that sequence. You must also find some string s. If you insert s somewhere into p, this program must print the second integer from the sequence. If you insert s into the same location in p twice, this program must print the third integer from the sequence, and so on and so forth. Here's an example:




Python 3, sequence A000027



print(1)


The hidden string is two bytes.




The string is +1, because the program print(1+1) will print the second integer in A000027, the program print(1+1+1) will print the third integer, etc.



Cops must reveal the sequence, the original program p, and the length of the hidden string s. Robbers crack a submission by finding any string up to that length and the location to insert it to create the sequence. The string does not need to match the intended solution to be a valid crack, nor does the location it's inserted at.



Rules



  • Your solution must work for any number in the sequence, or at least until a reasonable limit where it fails do to memory restrictions, integer/stack overflow, etc.


  • The winning robber is the user who cracks the most submissions, with the tiebreaker being who reached that number of cracks first.


  • The winning cop is the cop with the shortest string s that isn't cracked. Tiebreaker is the shortest p. If there are no uncracked submissions, the cop who had a solution uncracked for longest wins.


  • To be declared safe, your solution must stay uncracked for 1 week and then have the hidden string (and location to insert it) revealed.


  • All cryptographic solutions (for example, checking the hash of the substring) are banned.


  • If s contains any non-ASCII characters, you must also specify the encoding being used.










share|improve this question









$endgroup$







  • 3




    $begingroup$
    For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
    $endgroup$
    – Giuseppe
    8 hours ago

















8












$begingroup$


This is a Cops and Robbers challenge. This is the cop's thread. The robber's thread is here.



As a cop, you must pick any sequence from the OEIS, and write a program p that prints the first integer from that sequence. You must also find some string s. If you insert s somewhere into p, this program must print the second integer from the sequence. If you insert s into the same location in p twice, this program must print the third integer from the sequence, and so on and so forth. Here's an example:




Python 3, sequence A000027



print(1)


The hidden string is two bytes.




The string is +1, because the program print(1+1) will print the second integer in A000027, the program print(1+1+1) will print the third integer, etc.



Cops must reveal the sequence, the original program p, and the length of the hidden string s. Robbers crack a submission by finding any string up to that length and the location to insert it to create the sequence. The string does not need to match the intended solution to be a valid crack, nor does the location it's inserted at.



Rules



  • Your solution must work for any number in the sequence, or at least until a reasonable limit where it fails do to memory restrictions, integer/stack overflow, etc.


  • The winning robber is the user who cracks the most submissions, with the tiebreaker being who reached that number of cracks first.


  • The winning cop is the cop with the shortest string s that isn't cracked. Tiebreaker is the shortest p. If there are no uncracked submissions, the cop who had a solution uncracked for longest wins.


  • To be declared safe, your solution must stay uncracked for 1 week and then have the hidden string (and location to insert it) revealed.


  • All cryptographic solutions (for example, checking the hash of the substring) are banned.


  • If s contains any non-ASCII characters, you must also specify the encoding being used.










share|improve this question









$endgroup$







  • 3




    $begingroup$
    For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
    $endgroup$
    – Giuseppe
    8 hours ago













8












8








8





$begingroup$


This is a Cops and Robbers challenge. This is the cop's thread. The robber's thread is here.



As a cop, you must pick any sequence from the OEIS, and write a program p that prints the first integer from that sequence. You must also find some string s. If you insert s somewhere into p, this program must print the second integer from the sequence. If you insert s into the same location in p twice, this program must print the third integer from the sequence, and so on and so forth. Here's an example:




Python 3, sequence A000027



print(1)


The hidden string is two bytes.




The string is +1, because the program print(1+1) will print the second integer in A000027, the program print(1+1+1) will print the third integer, etc.



Cops must reveal the sequence, the original program p, and the length of the hidden string s. Robbers crack a submission by finding any string up to that length and the location to insert it to create the sequence. The string does not need to match the intended solution to be a valid crack, nor does the location it's inserted at.



Rules



  • Your solution must work for any number in the sequence, or at least until a reasonable limit where it fails do to memory restrictions, integer/stack overflow, etc.


  • The winning robber is the user who cracks the most submissions, with the tiebreaker being who reached that number of cracks first.


  • The winning cop is the cop with the shortest string s that isn't cracked. Tiebreaker is the shortest p. If there are no uncracked submissions, the cop who had a solution uncracked for longest wins.


  • To be declared safe, your solution must stay uncracked for 1 week and then have the hidden string (and location to insert it) revealed.


  • All cryptographic solutions (for example, checking the hash of the substring) are banned.


  • If s contains any non-ASCII characters, you must also specify the encoding being used.










share|improve this question









$endgroup$




This is a Cops and Robbers challenge. This is the cop's thread. The robber's thread is here.



As a cop, you must pick any sequence from the OEIS, and write a program p that prints the first integer from that sequence. You must also find some string s. If you insert s somewhere into p, this program must print the second integer from the sequence. If you insert s into the same location in p twice, this program must print the third integer from the sequence, and so on and so forth. Here's an example:




Python 3, sequence A000027



print(1)


The hidden string is two bytes.




The string is +1, because the program print(1+1) will print the second integer in A000027, the program print(1+1+1) will print the third integer, etc.



Cops must reveal the sequence, the original program p, and the length of the hidden string s. Robbers crack a submission by finding any string up to that length and the location to insert it to create the sequence. The string does not need to match the intended solution to be a valid crack, nor does the location it's inserted at.



Rules



  • Your solution must work for any number in the sequence, or at least until a reasonable limit where it fails do to memory restrictions, integer/stack overflow, etc.


  • The winning robber is the user who cracks the most submissions, with the tiebreaker being who reached that number of cracks first.


  • The winning cop is the cop with the shortest string s that isn't cracked. Tiebreaker is the shortest p. If there are no uncracked submissions, the cop who had a solution uncracked for longest wins.


  • To be declared safe, your solution must stay uncracked for 1 week and then have the hidden string (and location to insert it) revealed.


  • All cryptographic solutions (for example, checking the hash of the substring) are banned.


  • If s contains any non-ASCII characters, you must also specify the encoding being used.







sequence integer cops-and-robbers






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









DJMcMayhemDJMcMayhem

41.3k12 gold badges154 silver badges321 bronze badges




41.3k12 gold badges154 silver badges321 bronze badges







  • 3




    $begingroup$
    For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
    $endgroup$
    – Giuseppe
    8 hours ago












  • 3




    $begingroup$
    For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
    $endgroup$
    – Giuseppe
    8 hours ago







3




3




$begingroup$
For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
$endgroup$
– Giuseppe
8 hours ago




$begingroup$
For anyone attempting to find a good sequence, the OEIS has a webcam that selects random sequences.
$endgroup$
– Giuseppe
8 hours ago










4 Answers
4






active

oldest

votes


















3












$begingroup$


MATL, sequence A005206



voOdoO


Try it online!



The hidden string has 8 bytes or less.






share|improve this answer









$endgroup$








  • 4




    $begingroup$
    voodoo??? I'm convinced MATL is black magic now
    $endgroup$
    – Giuseppe
    5 hours ago


















2












$begingroup$


Keg, sequence A000045



0.


The hidden string is ≤4 bytes(in order to conform the updated cracking rules).






share|improve this answer











$endgroup$












  • $begingroup$
    Correct, the rules say any string up to that length.
    $endgroup$
    – DJMcMayhem
    8 hours ago


















1












$begingroup$


Python 3, sequence A096582



This is really trivial, as I haven't tried Cops and Robbers challenges before.



print(100)


The hidden string is 3 bytes.






share|improve this answer









$endgroup$








  • 1




    $begingroup$
    cracked
    $endgroup$
    – Giuseppe
    8 hours ago


















1












$begingroup$


Brain-Flak, sequence A000290



((()))(<>)


Try it online!



The hidden string is 6 bytes.



Fun fact:



I "discovered" this property while playing this brain-flak based game. The hidden string was a randomly generated item that I discovered was very useful.






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Cracked.
    $endgroup$
    – jimmy23013
    7 hours ago













Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "200"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f188142%2fcops-the-hidden-oeis-substring%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes









3












$begingroup$


MATL, sequence A005206



voOdoO


Try it online!



The hidden string has 8 bytes or less.






share|improve this answer









$endgroup$








  • 4




    $begingroup$
    voodoo??? I'm convinced MATL is black magic now
    $endgroup$
    – Giuseppe
    5 hours ago















3












$begingroup$


MATL, sequence A005206



voOdoO


Try it online!



The hidden string has 8 bytes or less.






share|improve this answer









$endgroup$








  • 4




    $begingroup$
    voodoo??? I'm convinced MATL is black magic now
    $endgroup$
    – Giuseppe
    5 hours ago













3












3








3





$begingroup$


MATL, sequence A005206



voOdoO


Try it online!



The hidden string has 8 bytes or less.






share|improve this answer









$endgroup$




MATL, sequence A005206



voOdoO


Try it online!



The hidden string has 8 bytes or less.







share|improve this answer












share|improve this answer



share|improve this answer










answered 6 hours ago









Luis MendoLuis Mendo

76.9k8 gold badges95 silver badges300 bronze badges




76.9k8 gold badges95 silver badges300 bronze badges







  • 4




    $begingroup$
    voodoo??? I'm convinced MATL is black magic now
    $endgroup$
    – Giuseppe
    5 hours ago












  • 4




    $begingroup$
    voodoo??? I'm convinced MATL is black magic now
    $endgroup$
    – Giuseppe
    5 hours ago







4




4




$begingroup$
voodoo??? I'm convinced MATL is black magic now
$endgroup$
– Giuseppe
5 hours ago




$begingroup$
voodoo??? I'm convinced MATL is black magic now
$endgroup$
– Giuseppe
5 hours ago













2












$begingroup$


Keg, sequence A000045



0.


The hidden string is ≤4 bytes(in order to conform the updated cracking rules).






share|improve this answer











$endgroup$












  • $begingroup$
    Correct, the rules say any string up to that length.
    $endgroup$
    – DJMcMayhem
    8 hours ago















2












$begingroup$


Keg, sequence A000045



0.


The hidden string is ≤4 bytes(in order to conform the updated cracking rules).






share|improve this answer











$endgroup$












  • $begingroup$
    Correct, the rules say any string up to that length.
    $endgroup$
    – DJMcMayhem
    8 hours ago













2












2








2





$begingroup$


Keg, sequence A000045



0.


The hidden string is ≤4 bytes(in order to conform the updated cracking rules).






share|improve this answer











$endgroup$




Keg, sequence A000045



0.


The hidden string is ≤4 bytes(in order to conform the updated cracking rules).







share|improve this answer














share|improve this answer



share|improve this answer








edited 8 hours ago

























answered 8 hours ago









A__A__

32712 bronze badges




32712 bronze badges











  • $begingroup$
    Correct, the rules say any string up to that length.
    $endgroup$
    – DJMcMayhem
    8 hours ago
















  • $begingroup$
    Correct, the rules say any string up to that length.
    $endgroup$
    – DJMcMayhem
    8 hours ago















$begingroup$
Correct, the rules say any string up to that length.
$endgroup$
– DJMcMayhem
8 hours ago




$begingroup$
Correct, the rules say any string up to that length.
$endgroup$
– DJMcMayhem
8 hours ago











1












$begingroup$


Python 3, sequence A096582



This is really trivial, as I haven't tried Cops and Robbers challenges before.



print(100)


The hidden string is 3 bytes.






share|improve this answer









$endgroup$








  • 1




    $begingroup$
    cracked
    $endgroup$
    – Giuseppe
    8 hours ago















1












$begingroup$


Python 3, sequence A096582



This is really trivial, as I haven't tried Cops and Robbers challenges before.



print(100)


The hidden string is 3 bytes.






share|improve this answer









$endgroup$








  • 1




    $begingroup$
    cracked
    $endgroup$
    – Giuseppe
    8 hours ago













1












1








1





$begingroup$


Python 3, sequence A096582



This is really trivial, as I haven't tried Cops and Robbers challenges before.



print(100)


The hidden string is 3 bytes.






share|improve this answer









$endgroup$




Python 3, sequence A096582



This is really trivial, as I haven't tried Cops and Robbers challenges before.



print(100)


The hidden string is 3 bytes.







share|improve this answer












share|improve this answer



share|improve this answer










answered 8 hours ago









A__A__

32712 bronze badges




32712 bronze badges







  • 1




    $begingroup$
    cracked
    $endgroup$
    – Giuseppe
    8 hours ago












  • 1




    $begingroup$
    cracked
    $endgroup$
    – Giuseppe
    8 hours ago







1




1




$begingroup$
cracked
$endgroup$
– Giuseppe
8 hours ago




$begingroup$
cracked
$endgroup$
– Giuseppe
8 hours ago











1












$begingroup$


Brain-Flak, sequence A000290



((()))(<>)


Try it online!



The hidden string is 6 bytes.



Fun fact:



I "discovered" this property while playing this brain-flak based game. The hidden string was a randomly generated item that I discovered was very useful.






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Cracked.
    $endgroup$
    – jimmy23013
    7 hours ago















1












$begingroup$


Brain-Flak, sequence A000290



((()))(<>)


Try it online!



The hidden string is 6 bytes.



Fun fact:



I "discovered" this property while playing this brain-flak based game. The hidden string was a randomly generated item that I discovered was very useful.






share|improve this answer











$endgroup$








  • 1




    $begingroup$
    Cracked.
    $endgroup$
    – jimmy23013
    7 hours ago













1












1








1





$begingroup$


Brain-Flak, sequence A000290



((()))(<>)


Try it online!



The hidden string is 6 bytes.



Fun fact:



I "discovered" this property while playing this brain-flak based game. The hidden string was a randomly generated item that I discovered was very useful.






share|improve this answer











$endgroup$




Brain-Flak, sequence A000290



((()))(<>)


Try it online!



The hidden string is 6 bytes.



Fun fact:



I "discovered" this property while playing this brain-flak based game. The hidden string was a randomly generated item that I discovered was very useful.







share|improve this answer














share|improve this answer



share|improve this answer








edited 7 hours ago

























answered 8 hours ago









Sriotchilism O'ZaicSriotchilism O'Zaic

36.4k10 gold badges164 silver badges374 bronze badges




36.4k10 gold badges164 silver badges374 bronze badges







  • 1




    $begingroup$
    Cracked.
    $endgroup$
    – jimmy23013
    7 hours ago












  • 1




    $begingroup$
    Cracked.
    $endgroup$
    – jimmy23013
    7 hours ago







1




1




$begingroup$
Cracked.
$endgroup$
– jimmy23013
7 hours ago




$begingroup$
Cracked.
$endgroup$
– jimmy23013
7 hours ago

















draft saved

draft discarded
















































If this is an answer to a challenge…



  • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


  • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
    Explanations of your answer make it more interesting to read and are very much encouraged.


  • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.


More generally…



  • …Please make sure to answer the question and provide sufficient detail.


  • …Avoid asking for help, clarification or responding to other answers (use comments instead).




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f188142%2fcops-the-hidden-oeis-substring%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480