Figure out the code












6












$begingroup$


So remember all those puzzles about 100 or 1000 or however many logicians abducted by aliens and they are going to be killed if they can't figure out their hat color or the number on their back? Well it turns out you were such a bright mind that the aliens abducted you, and luckily you were one of the logicians that survived.



Unfortunately, instead of taking you back home, they just left you in a room with all the other logicians that survived. Escaping doesn't seem very likely any time soon because right now everyone is focusing on getting food every day. There is a single fridge in the corner of the room but it is one of those newfangled fridges and it has a security code that you have to put in to open it. The fridge has a panel on the top that displays 5 digits, and those digits change every day, along with the fridge restocking. The problem is that when the fridge restocks, the security code changes. For the first six days, you've had to brute force the code by just typing every combination in until you get it (only 100000 combinations, not too bad), but you really need to figure out what the pattern is for the codes so you can focus on escaping instead of cheeseburgers.



The panel numbers and codes for that day are as follows:




Panel -- Code

12345 = 56306

04418 = 35129

20530 = 65048

54472 = 68425

00000 = 00000

60454 = 95126

29830 = 39175

00000 = 03334

08224 = 35386

14412 = ?????




Today the panel says 14412. Can you figure out the code and what the algorithm is so you can get the food easily each day?



About the brute-force method: Pertaining to David James' comment,the brute force method started with 00000 on the fifth day, but it does not follow the pattern of 00001, 00002... One logician is in charge of the brute-forcing and each day he starts with the panel number, and then does what seems like a random sequence. At least that's what you all think... he's been a little bit looney since the abduction but you all let him use his "sequence" to make him happy.



Yesterday in the fridge, someone found a fortune cookie which contained the following fortune:




Look backwards to go forward




It's probably just a generic fortune mass produced in a cookie factory, but what if it's a clue about solving the code?



Another fortune cookie has shown up:




651
930
862
565
000
696
532
400




What could those numbers be referring to?



More fortune cookies:




56345
35118
65030
68472
00000
95154
39130
03300
35324




And:




Codes to a day need not connect
But codes to the panel need be
Look how to get panel from code
And you'll be able to get free




Last fortune cookie:




There can be more than one, but each can't be more than once.




Days passed: 9 (seems like a lot more though)



Note: Please post partial answers if you think you have anything so I can see where you are having problems










share|improve this question











$endgroup$








  • 1




    $begingroup$
    Is the code always strictly greater than the panel number when it's greater than 00000?
    $endgroup$
    – Rand al'Thor
    May 21 '15 at 7:27






  • 1




    $begingroup$
    Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
    $endgroup$
    – David James
    May 21 '15 at 8:00








  • 4




    $begingroup$
    If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
    $endgroup$
    – Alconja
    May 21 '15 at 10:00






  • 1




    $begingroup$
    86,400 seconds in a day, so that is some super fast typing!
    $endgroup$
    – JLee
    May 21 '15 at 16:13






  • 2




    $begingroup$
    Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
    $endgroup$
    – Brian
    May 31 '15 at 21:00
















6












$begingroup$


So remember all those puzzles about 100 or 1000 or however many logicians abducted by aliens and they are going to be killed if they can't figure out their hat color or the number on their back? Well it turns out you were such a bright mind that the aliens abducted you, and luckily you were one of the logicians that survived.



Unfortunately, instead of taking you back home, they just left you in a room with all the other logicians that survived. Escaping doesn't seem very likely any time soon because right now everyone is focusing on getting food every day. There is a single fridge in the corner of the room but it is one of those newfangled fridges and it has a security code that you have to put in to open it. The fridge has a panel on the top that displays 5 digits, and those digits change every day, along with the fridge restocking. The problem is that when the fridge restocks, the security code changes. For the first six days, you've had to brute force the code by just typing every combination in until you get it (only 100000 combinations, not too bad), but you really need to figure out what the pattern is for the codes so you can focus on escaping instead of cheeseburgers.



The panel numbers and codes for that day are as follows:




Panel -- Code

12345 = 56306

04418 = 35129

20530 = 65048

54472 = 68425

00000 = 00000

60454 = 95126

29830 = 39175

00000 = 03334

08224 = 35386

14412 = ?????




Today the panel says 14412. Can you figure out the code and what the algorithm is so you can get the food easily each day?



About the brute-force method: Pertaining to David James' comment,the brute force method started with 00000 on the fifth day, but it does not follow the pattern of 00001, 00002... One logician is in charge of the brute-forcing and each day he starts with the panel number, and then does what seems like a random sequence. At least that's what you all think... he's been a little bit looney since the abduction but you all let him use his "sequence" to make him happy.



Yesterday in the fridge, someone found a fortune cookie which contained the following fortune:




Look backwards to go forward




It's probably just a generic fortune mass produced in a cookie factory, but what if it's a clue about solving the code?



Another fortune cookie has shown up:




651
930
862
565
000
696
532
400




What could those numbers be referring to?



More fortune cookies:




56345
35118
65030
68472
00000
95154
39130
03300
35324




And:




Codes to a day need not connect
But codes to the panel need be
Look how to get panel from code
And you'll be able to get free




Last fortune cookie:




There can be more than one, but each can't be more than once.




Days passed: 9 (seems like a lot more though)



Note: Please post partial answers if you think you have anything so I can see where you are having problems










share|improve this question











$endgroup$








  • 1




    $begingroup$
    Is the code always strictly greater than the panel number when it's greater than 00000?
    $endgroup$
    – Rand al'Thor
    May 21 '15 at 7:27






  • 1




    $begingroup$
    Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
    $endgroup$
    – David James
    May 21 '15 at 8:00








  • 4




    $begingroup$
    If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
    $endgroup$
    – Alconja
    May 21 '15 at 10:00






  • 1




    $begingroup$
    86,400 seconds in a day, so that is some super fast typing!
    $endgroup$
    – JLee
    May 21 '15 at 16:13






  • 2




    $begingroup$
    Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
    $endgroup$
    – Brian
    May 31 '15 at 21:00














6












6








6


7



$begingroup$


So remember all those puzzles about 100 or 1000 or however many logicians abducted by aliens and they are going to be killed if they can't figure out their hat color or the number on their back? Well it turns out you were such a bright mind that the aliens abducted you, and luckily you were one of the logicians that survived.



Unfortunately, instead of taking you back home, they just left you in a room with all the other logicians that survived. Escaping doesn't seem very likely any time soon because right now everyone is focusing on getting food every day. There is a single fridge in the corner of the room but it is one of those newfangled fridges and it has a security code that you have to put in to open it. The fridge has a panel on the top that displays 5 digits, and those digits change every day, along with the fridge restocking. The problem is that when the fridge restocks, the security code changes. For the first six days, you've had to brute force the code by just typing every combination in until you get it (only 100000 combinations, not too bad), but you really need to figure out what the pattern is for the codes so you can focus on escaping instead of cheeseburgers.



The panel numbers and codes for that day are as follows:




Panel -- Code

12345 = 56306

04418 = 35129

20530 = 65048

54472 = 68425

00000 = 00000

60454 = 95126

29830 = 39175

00000 = 03334

08224 = 35386

14412 = ?????




Today the panel says 14412. Can you figure out the code and what the algorithm is so you can get the food easily each day?



About the brute-force method: Pertaining to David James' comment,the brute force method started with 00000 on the fifth day, but it does not follow the pattern of 00001, 00002... One logician is in charge of the brute-forcing and each day he starts with the panel number, and then does what seems like a random sequence. At least that's what you all think... he's been a little bit looney since the abduction but you all let him use his "sequence" to make him happy.



Yesterday in the fridge, someone found a fortune cookie which contained the following fortune:




Look backwards to go forward




It's probably just a generic fortune mass produced in a cookie factory, but what if it's a clue about solving the code?



Another fortune cookie has shown up:




651
930
862
565
000
696
532
400




What could those numbers be referring to?



More fortune cookies:




56345
35118
65030
68472
00000
95154
39130
03300
35324




And:




Codes to a day need not connect
But codes to the panel need be
Look how to get panel from code
And you'll be able to get free




Last fortune cookie:




There can be more than one, but each can't be more than once.




Days passed: 9 (seems like a lot more though)



Note: Please post partial answers if you think you have anything so I can see where you are having problems










share|improve this question











$endgroup$




So remember all those puzzles about 100 or 1000 or however many logicians abducted by aliens and they are going to be killed if they can't figure out their hat color or the number on their back? Well it turns out you were such a bright mind that the aliens abducted you, and luckily you were one of the logicians that survived.



Unfortunately, instead of taking you back home, they just left you in a room with all the other logicians that survived. Escaping doesn't seem very likely any time soon because right now everyone is focusing on getting food every day. There is a single fridge in the corner of the room but it is one of those newfangled fridges and it has a security code that you have to put in to open it. The fridge has a panel on the top that displays 5 digits, and those digits change every day, along with the fridge restocking. The problem is that when the fridge restocks, the security code changes. For the first six days, you've had to brute force the code by just typing every combination in until you get it (only 100000 combinations, not too bad), but you really need to figure out what the pattern is for the codes so you can focus on escaping instead of cheeseburgers.



The panel numbers and codes for that day are as follows:




Panel -- Code

12345 = 56306

04418 = 35129

20530 = 65048

54472 = 68425

00000 = 00000

60454 = 95126

29830 = 39175

00000 = 03334

08224 = 35386

14412 = ?????




Today the panel says 14412. Can you figure out the code and what the algorithm is so you can get the food easily each day?



About the brute-force method: Pertaining to David James' comment,the brute force method started with 00000 on the fifth day, but it does not follow the pattern of 00001, 00002... One logician is in charge of the brute-forcing and each day he starts with the panel number, and then does what seems like a random sequence. At least that's what you all think... he's been a little bit looney since the abduction but you all let him use his "sequence" to make him happy.



Yesterday in the fridge, someone found a fortune cookie which contained the following fortune:




Look backwards to go forward




It's probably just a generic fortune mass produced in a cookie factory, but what if it's a clue about solving the code?



Another fortune cookie has shown up:




651
930
862
565
000
696
532
400




What could those numbers be referring to?



More fortune cookies:




56345
35118
65030
68472
00000
95154
39130
03300
35324




And:




Codes to a day need not connect
But codes to the panel need be
Look how to get panel from code
And you'll be able to get free




Last fortune cookie:




There can be more than one, but each can't be more than once.




Days passed: 9 (seems like a lot more though)



Note: Please post partial answers if you think you have anything so I can see where you are having problems







pattern password number-theory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 2 '15 at 2:39







MisterEman22

















asked May 21 '15 at 5:31









MisterEman22MisterEman22

1,439619




1,439619








  • 1




    $begingroup$
    Is the code always strictly greater than the panel number when it's greater than 00000?
    $endgroup$
    – Rand al'Thor
    May 21 '15 at 7:27






  • 1




    $begingroup$
    Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
    $endgroup$
    – David James
    May 21 '15 at 8:00








  • 4




    $begingroup$
    If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
    $endgroup$
    – Alconja
    May 21 '15 at 10:00






  • 1




    $begingroup$
    86,400 seconds in a day, so that is some super fast typing!
    $endgroup$
    – JLee
    May 21 '15 at 16:13






  • 2




    $begingroup$
    Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
    $endgroup$
    – Brian
    May 31 '15 at 21:00














  • 1




    $begingroup$
    Is the code always strictly greater than the panel number when it's greater than 00000?
    $endgroup$
    – Rand al'Thor
    May 21 '15 at 7:27






  • 1




    $begingroup$
    Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
    $endgroup$
    – David James
    May 21 '15 at 8:00








  • 4




    $begingroup$
    If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
    $endgroup$
    – Alconja
    May 21 '15 at 10:00






  • 1




    $begingroup$
    86,400 seconds in a day, so that is some super fast typing!
    $endgroup$
    – JLee
    May 21 '15 at 16:13






  • 2




    $begingroup$
    Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
    $endgroup$
    – Brian
    May 31 '15 at 21:00








1




1




$begingroup$
Is the code always strictly greater than the panel number when it's greater than 00000?
$endgroup$
– Rand al'Thor
May 21 '15 at 7:27




$begingroup$
Is the code always strictly greater than the panel number when it's greater than 00000?
$endgroup$
– Rand al'Thor
May 21 '15 at 7:27




1




1




$begingroup$
Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
$endgroup$
– David James
May 21 '15 at 8:00






$begingroup$
Write down the 6 codes we already know, unplug the fridge briefly every 6 days, and hopefully the sequence of codes will repeat. Also, I suspect they were happy on day 5 if their brute force method was to start at code 00000 since they would have gotten it right on the first try that day.
$endgroup$
– David James
May 21 '15 at 8:00






4




4




$begingroup$
If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
$endgroup$
– Alconja
May 21 '15 at 10:00




$begingroup$
If we call panel digits Pn and code digits Cn, then this seems to hold true: C3 = C2 - P3... So, one digit down, 4 to go...
$endgroup$
– Alconja
May 21 '15 at 10:00




1




1




$begingroup$
86,400 seconds in a day, so that is some super fast typing!
$endgroup$
– JLee
May 21 '15 at 16:13




$begingroup$
86,400 seconds in a day, so that is some super fast typing!
$endgroup$
– JLee
May 21 '15 at 16:13




2




2




$begingroup$
Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
$endgroup$
– Brian
May 31 '15 at 21:00




$begingroup$
Hmm... why is the fortune cookie 68425 and not 68472? (Of course these new fortune cookies are C1-C2-C3-P4-P5, following on Jefferson's observation.)
$endgroup$
– Brian
May 31 '15 at 21:00










2 Answers
2






active

oldest

votes


















4












$begingroup$

It's not possible to determine exactly the code to enter on any given day, but we can narrow it down a great deal as follows:



First, let's define the digits of the Panel as being Pn and the digits of the Code as being Cn. Now, there are various mathematical relationships that can be applied, to relate digits of the code to digits of the panel:




  • $C2 - C3 = P3$

  • $C5 mod C1 = P1$

  • $C1(C2 + C3) = P4,P5$

  • $C1 - C3 + C4 = P2$


Thus we have a set of equations, which collectively cover all the digits of the code. However, because there's ambiguity (eg. with the mod operator), we still can't directly determine any given code.



Taking the latest panel value of $14412$, we know the following:




  • $C2 - C3 = 4$

  • $C5 mod C1 = 1$

  • $C1(C2 + C3) = 12$

  • $C1 - C3 + C4 = 4$


(I'm sure an actual mathematician would do a cleaner job of this part of the logic, but I'll fumble along). We can rework these equations to give us, $C1(4 + 2C3) = 12$ (combining equation 1 & 3), or $C1 = frac{12}{(4 + 2C3)}$.



Given that $C1$ must be a whole number, then $C3$ must be $0$, $1$, $4$, making $C1$ equal to $3$, $2$, or $1$. However, we also need the remainder when dividing $C5$ by $C1$ to be $1$ (noting that there's precedent in the examples for treating x%0 as 0), which means $C1ne1$.



Re-entering these possible values in the third equation to get $C2$, we have our code as either $251??$ or $340??$. Then using the 4th equation to get $C4$, we arrive at $2513?$ or $3401?$. Finally, using the 2nd equation we get a $C5$ value of $1$, $3$, $5$, $7$, $9$ (for the first possible code) and $1$, $4$, $7$ (for the second).



Thus, today's code is one of the following:




  • $25131$

  • $25133$

  • $25135$

  • $25137$

  • $25139$

  • $34011$

  • $34014$

  • $34017$


So, not perfect, but certainly faster than brute forcing $100,000$ combinations...






share|improve this answer









$endgroup$













  • $begingroup$
    What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
    $endgroup$
    – MisterEman22
    Jun 2 '15 at 5:30










  • $begingroup$
    @Mistereman22 - it should be the first hint
    $endgroup$
    – Tahir Imanov
    Jun 9 '15 at 7:11



















0












$begingroup$

14412
75628 28591 62916 48164 91748 58464 74748 28483 81638 18174
74826 26475 83828 49175 74658 37575 75936 36565 81638 17585
75756 46282 92857 46382 75748 38165 81848 56485 64858 56382
72628 36281 81728 16463 75828 16483 63828 58163 63630 47481
91918 46385 84656 48565 62946 26285 91859 17491 72756 46575
71658 36264 74818 28462 82649 18193 65626 48484 91838 57491
81657 27483 83858 28364 62726 26562 83759 27263 82827 27283
82858 47582 81837 28462 82837 58164 75748 58162 92000






share|improve this answer








New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$













  • $begingroup$
    please explain your answer, thank you!
    $endgroup$
    – Omega Krypton
    12 mins ago











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "559"
};
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f15261%2ffigure-out-the-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









4












$begingroup$

It's not possible to determine exactly the code to enter on any given day, but we can narrow it down a great deal as follows:



First, let's define the digits of the Panel as being Pn and the digits of the Code as being Cn. Now, there are various mathematical relationships that can be applied, to relate digits of the code to digits of the panel:




  • $C2 - C3 = P3$

  • $C5 mod C1 = P1$

  • $C1(C2 + C3) = P4,P5$

  • $C1 - C3 + C4 = P2$


Thus we have a set of equations, which collectively cover all the digits of the code. However, because there's ambiguity (eg. with the mod operator), we still can't directly determine any given code.



Taking the latest panel value of $14412$, we know the following:




  • $C2 - C3 = 4$

  • $C5 mod C1 = 1$

  • $C1(C2 + C3) = 12$

  • $C1 - C3 + C4 = 4$


(I'm sure an actual mathematician would do a cleaner job of this part of the logic, but I'll fumble along). We can rework these equations to give us, $C1(4 + 2C3) = 12$ (combining equation 1 & 3), or $C1 = frac{12}{(4 + 2C3)}$.



Given that $C1$ must be a whole number, then $C3$ must be $0$, $1$, $4$, making $C1$ equal to $3$, $2$, or $1$. However, we also need the remainder when dividing $C5$ by $C1$ to be $1$ (noting that there's precedent in the examples for treating x%0 as 0), which means $C1ne1$.



Re-entering these possible values in the third equation to get $C2$, we have our code as either $251??$ or $340??$. Then using the 4th equation to get $C4$, we arrive at $2513?$ or $3401?$. Finally, using the 2nd equation we get a $C5$ value of $1$, $3$, $5$, $7$, $9$ (for the first possible code) and $1$, $4$, $7$ (for the second).



Thus, today's code is one of the following:




  • $25131$

  • $25133$

  • $25135$

  • $25137$

  • $25139$

  • $34011$

  • $34014$

  • $34017$


So, not perfect, but certainly faster than brute forcing $100,000$ combinations...






share|improve this answer









$endgroup$













  • $begingroup$
    What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
    $endgroup$
    – MisterEman22
    Jun 2 '15 at 5:30










  • $begingroup$
    @Mistereman22 - it should be the first hint
    $endgroup$
    – Tahir Imanov
    Jun 9 '15 at 7:11
















4












$begingroup$

It's not possible to determine exactly the code to enter on any given day, but we can narrow it down a great deal as follows:



First, let's define the digits of the Panel as being Pn and the digits of the Code as being Cn. Now, there are various mathematical relationships that can be applied, to relate digits of the code to digits of the panel:




  • $C2 - C3 = P3$

  • $C5 mod C1 = P1$

  • $C1(C2 + C3) = P4,P5$

  • $C1 - C3 + C4 = P2$


Thus we have a set of equations, which collectively cover all the digits of the code. However, because there's ambiguity (eg. with the mod operator), we still can't directly determine any given code.



Taking the latest panel value of $14412$, we know the following:




  • $C2 - C3 = 4$

  • $C5 mod C1 = 1$

  • $C1(C2 + C3) = 12$

  • $C1 - C3 + C4 = 4$


(I'm sure an actual mathematician would do a cleaner job of this part of the logic, but I'll fumble along). We can rework these equations to give us, $C1(4 + 2C3) = 12$ (combining equation 1 & 3), or $C1 = frac{12}{(4 + 2C3)}$.



Given that $C1$ must be a whole number, then $C3$ must be $0$, $1$, $4$, making $C1$ equal to $3$, $2$, or $1$. However, we also need the remainder when dividing $C5$ by $C1$ to be $1$ (noting that there's precedent in the examples for treating x%0 as 0), which means $C1ne1$.



Re-entering these possible values in the third equation to get $C2$, we have our code as either $251??$ or $340??$. Then using the 4th equation to get $C4$, we arrive at $2513?$ or $3401?$. Finally, using the 2nd equation we get a $C5$ value of $1$, $3$, $5$, $7$, $9$ (for the first possible code) and $1$, $4$, $7$ (for the second).



Thus, today's code is one of the following:




  • $25131$

  • $25133$

  • $25135$

  • $25137$

  • $25139$

  • $34011$

  • $34014$

  • $34017$


So, not perfect, but certainly faster than brute forcing $100,000$ combinations...






share|improve this answer









$endgroup$













  • $begingroup$
    What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
    $endgroup$
    – MisterEman22
    Jun 2 '15 at 5:30










  • $begingroup$
    @Mistereman22 - it should be the first hint
    $endgroup$
    – Tahir Imanov
    Jun 9 '15 at 7:11














4












4








4





$begingroup$

It's not possible to determine exactly the code to enter on any given day, but we can narrow it down a great deal as follows:



First, let's define the digits of the Panel as being Pn and the digits of the Code as being Cn. Now, there are various mathematical relationships that can be applied, to relate digits of the code to digits of the panel:




  • $C2 - C3 = P3$

  • $C5 mod C1 = P1$

  • $C1(C2 + C3) = P4,P5$

  • $C1 - C3 + C4 = P2$


Thus we have a set of equations, which collectively cover all the digits of the code. However, because there's ambiguity (eg. with the mod operator), we still can't directly determine any given code.



Taking the latest panel value of $14412$, we know the following:




  • $C2 - C3 = 4$

  • $C5 mod C1 = 1$

  • $C1(C2 + C3) = 12$

  • $C1 - C3 + C4 = 4$


(I'm sure an actual mathematician would do a cleaner job of this part of the logic, but I'll fumble along). We can rework these equations to give us, $C1(4 + 2C3) = 12$ (combining equation 1 & 3), or $C1 = frac{12}{(4 + 2C3)}$.



Given that $C1$ must be a whole number, then $C3$ must be $0$, $1$, $4$, making $C1$ equal to $3$, $2$, or $1$. However, we also need the remainder when dividing $C5$ by $C1$ to be $1$ (noting that there's precedent in the examples for treating x%0 as 0), which means $C1ne1$.



Re-entering these possible values in the third equation to get $C2$, we have our code as either $251??$ or $340??$. Then using the 4th equation to get $C4$, we arrive at $2513?$ or $3401?$. Finally, using the 2nd equation we get a $C5$ value of $1$, $3$, $5$, $7$, $9$ (for the first possible code) and $1$, $4$, $7$ (for the second).



Thus, today's code is one of the following:




  • $25131$

  • $25133$

  • $25135$

  • $25137$

  • $25139$

  • $34011$

  • $34014$

  • $34017$


So, not perfect, but certainly faster than brute forcing $100,000$ combinations...






share|improve this answer









$endgroup$



It's not possible to determine exactly the code to enter on any given day, but we can narrow it down a great deal as follows:



First, let's define the digits of the Panel as being Pn and the digits of the Code as being Cn. Now, there are various mathematical relationships that can be applied, to relate digits of the code to digits of the panel:




  • $C2 - C3 = P3$

  • $C5 mod C1 = P1$

  • $C1(C2 + C3) = P4,P5$

  • $C1 - C3 + C4 = P2$


Thus we have a set of equations, which collectively cover all the digits of the code. However, because there's ambiguity (eg. with the mod operator), we still can't directly determine any given code.



Taking the latest panel value of $14412$, we know the following:




  • $C2 - C3 = 4$

  • $C5 mod C1 = 1$

  • $C1(C2 + C3) = 12$

  • $C1 - C3 + C4 = 4$


(I'm sure an actual mathematician would do a cleaner job of this part of the logic, but I'll fumble along). We can rework these equations to give us, $C1(4 + 2C3) = 12$ (combining equation 1 & 3), or $C1 = frac{12}{(4 + 2C3)}$.



Given that $C1$ must be a whole number, then $C3$ must be $0$, $1$, $4$, making $C1$ equal to $3$, $2$, or $1$. However, we also need the remainder when dividing $C5$ by $C1$ to be $1$ (noting that there's precedent in the examples for treating x%0 as 0), which means $C1ne1$.



Re-entering these possible values in the third equation to get $C2$, we have our code as either $251??$ or $340??$. Then using the 4th equation to get $C4$, we arrive at $2513?$ or $3401?$. Finally, using the 2nd equation we get a $C5$ value of $1$, $3$, $5$, $7$, $9$ (for the first possible code) and $1$, $4$, $7$ (for the second).



Thus, today's code is one of the following:




  • $25131$

  • $25133$

  • $25135$

  • $25137$

  • $25139$

  • $34011$

  • $34014$

  • $34017$


So, not perfect, but certainly faster than brute forcing $100,000$ combinations...







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 2 '15 at 4:33









AlconjaAlconja

21.9k1293143




21.9k1293143












  • $begingroup$
    What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
    $endgroup$
    – MisterEman22
    Jun 2 '15 at 5:30










  • $begingroup$
    @Mistereman22 - it should be the first hint
    $endgroup$
    – Tahir Imanov
    Jun 9 '15 at 7:11


















  • $begingroup$
    What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
    $endgroup$
    – MisterEman22
    Jun 2 '15 at 5:30










  • $begingroup$
    @Mistereman22 - it should be the first hint
    $endgroup$
    – Tahir Imanov
    Jun 9 '15 at 7:11
















$begingroup$
What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
$endgroup$
– MisterEman22
Jun 2 '15 at 5:30




$begingroup$
What I was hinting at with the last fortune cookie as well as earlier is that there are multiple codes per day that work, but each only works once for a given panel code (sort of a backwards conversion). When 00000 repeats, the first code can't be used again. Originally I was just trying to find a way of fitting it into the story that there were multiple codes for a panel. Nice job though.
$endgroup$
– MisterEman22
Jun 2 '15 at 5:30












$begingroup$
@Mistereman22 - it should be the first hint
$endgroup$
– Tahir Imanov
Jun 9 '15 at 7:11




$begingroup$
@Mistereman22 - it should be the first hint
$endgroup$
– Tahir Imanov
Jun 9 '15 at 7:11











0












$begingroup$

14412
75628 28591 62916 48164 91748 58464 74748 28483 81638 18174
74826 26475 83828 49175 74658 37575 75936 36565 81638 17585
75756 46282 92857 46382 75748 38165 81848 56485 64858 56382
72628 36281 81728 16463 75828 16483 63828 58163 63630 47481
91918 46385 84656 48565 62946 26285 91859 17491 72756 46575
71658 36264 74818 28462 82649 18193 65626 48484 91838 57491
81657 27483 83858 28364 62726 26562 83759 27263 82827 27283
82858 47582 81837 28462 82837 58164 75748 58162 92000






share|improve this answer








New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$













  • $begingroup$
    please explain your answer, thank you!
    $endgroup$
    – Omega Krypton
    12 mins ago
















0












$begingroup$

14412
75628 28591 62916 48164 91748 58464 74748 28483 81638 18174
74826 26475 83828 49175 74658 37575 75936 36565 81638 17585
75756 46282 92857 46382 75748 38165 81848 56485 64858 56382
72628 36281 81728 16463 75828 16483 63828 58163 63630 47481
91918 46385 84656 48565 62946 26285 91859 17491 72756 46575
71658 36264 74818 28462 82649 18193 65626 48484 91838 57491
81657 27483 83858 28364 62726 26562 83759 27263 82827 27283
82858 47582 81837 28462 82837 58164 75748 58162 92000






share|improve this answer








New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$













  • $begingroup$
    please explain your answer, thank you!
    $endgroup$
    – Omega Krypton
    12 mins ago














0












0








0





$begingroup$

14412
75628 28591 62916 48164 91748 58464 74748 28483 81638 18174
74826 26475 83828 49175 74658 37575 75936 36565 81638 17585
75756 46282 92857 46382 75748 38165 81848 56485 64858 56382
72628 36281 81728 16463 75828 16483 63828 58163 63630 47481
91918 46385 84656 48565 62946 26285 91859 17491 72756 46575
71658 36264 74818 28462 82649 18193 65626 48484 91838 57491
81657 27483 83858 28364 62726 26562 83759 27263 82827 27283
82858 47582 81837 28462 82837 58164 75748 58162 92000






share|improve this answer








New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$



14412
75628 28591 62916 48164 91748 58464 74748 28483 81638 18174
74826 26475 83828 49175 74658 37575 75936 36565 81638 17585
75756 46282 92857 46382 75748 38165 81848 56485 64858 56382
72628 36281 81728 16463 75828 16483 63828 58163 63630 47481
91918 46385 84656 48565 62946 26285 91859 17491 72756 46575
71658 36264 74818 28462 82649 18193 65626 48484 91838 57491
81657 27483 83858 28364 62726 26562 83759 27263 82827 27283
82858 47582 81837 28462 82837 58164 75748 58162 92000







share|improve this answer








New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 16 mins ago









l ll l

11




11




New contributor




l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






l l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • $begingroup$
    please explain your answer, thank you!
    $endgroup$
    – Omega Krypton
    12 mins ago


















  • $begingroup$
    please explain your answer, thank you!
    $endgroup$
    – Omega Krypton
    12 mins ago
















$begingroup$
please explain your answer, thank you!
$endgroup$
– Omega Krypton
12 mins ago




$begingroup$
please explain your answer, thank you!
$endgroup$
– Omega Krypton
12 mins ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Puzzling Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f15261%2ffigure-out-the-code%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

What are all the squawk codes?

What are differences between VBoxVGA, VMSVGA and VBoxSVGA in VirtualBox?

Hudsonelva