Problem 090
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
Frisker
- Posts: 6
- Joined: Thu Mar 13, 2008 3:34 pm
Problem 090
So im stuck at problem 90 and I dont know what im doing wrong.
I'm currently trying to with a recursion loop through all the possible combinations of the first cube and taking into account that six also counts as a nine (without having any equivalents), then I do the same thing to the second cube then to check if the two cubes can form every square below a hundred. Im pretty sure that my code gets the right result but that I havn't fully understood the problem.
Some examples of what my program counts as distinct cubes that can form all squares below 100:
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}
{0,1,2,3,4,7} , {0,2,5,6,7,8}
{0,1,4,5,8,9} , {0,2,3,4,8,9}
{1,4,5,7,8,9} , {0,2,3,7,8,9}
Anyways, I get the answer to xxxx. Am I anywhere close and does anyone got any idea about what im doing wrong?
Thanks in advance!
I'm currently trying to with a recursion loop through all the possible combinations of the first cube and taking into account that six also counts as a nine (without having any equivalents), then I do the same thing to the second cube then to check if the two cubes can form every square below a hundred. Im pretty sure that my code gets the right result but that I havn't fully understood the problem.
Some examples of what my program counts as distinct cubes that can form all squares below 100:
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}
{0,1,2,3,4,7} , {0,2,5,6,7,8}
{0,1,4,5,8,9} , {0,2,3,4,8,9}
{1,4,5,7,8,9} , {0,2,3,7,8,9}
Anyways, I get the answer to xxxx. Am I anywhere close and does anyone got any idea about what im doing wrong?
Thanks in advance!
Last edited by harryh on Sun Jan 04, 2009 12:21 pm, edited 3 times in total.
Reason: number too revealing, hk
Reason: number too revealing, hk
- rayfil
- Administrator
- Posts: 1412
- Joined: Sun Mar 26, 2006 5:30 am
- Location: Quebec, Canada
- Contact:
Re: P90 help
As a start, you should know better that your first two examples are not distinct, i.e.
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}
When you assume something, you risk being wrong half the time.
-
JohnMorris
- Posts: 64
- Joined: Sun Dec 23, 2007 6:38 am
Re: P90 help
From your examples, the first:
is the same as the second:{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}

-
JohnMorris
- Posts: 64
- Joined: Sun Dec 23, 2007 6:38 am
Re: P90 help
Argh! Yet again, beaten to the punch! I must learn to type fasterrayfil wrote:As a start, you should know better that your first two examples are not distinct, i.e.
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}

-
Frisker
- Posts: 6
- Joined: Thu Mar 13, 2008 3:34 pm
Re: P90 help
Ah, I found the problem now, thanks for the help!rayfil wrote:As a start, you should know better that your first two examples are not distinct, i.e.
{0,1,2,3,4,5} , {0,1,2,3,6,8}
{0,1,2,3,6,8} , {0,1,2,3,4,5}
Edit: one quick question, on problem 98 can I replace a letters with a numbers greater than 9?
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: P90 help
No, only base 10 digits, numbers from 0 to 9.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
- DNS
- Posts: 30
- Joined: Thu Oct 16, 2008 9:32 am
- Location: Ukraine, Nikolaev
Re: Problem 090
Could one digit appear more than once at one cube?
For example,
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 5}
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 2}
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 1}
For example,
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 5}
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 2}
{0, 1, 2, 3, 4, 8} - {0, 1, 2, 5, 6, 1}
2 x 2 = 4 = true
- DNS
- Posts: 30
- Joined: Thu Oct 16, 2008 9:32 am
- Location: Ukraine, Nikolaev
-
Scorpi0
- Posts: 2
- Joined: Tue Aug 18, 2009 9:49 am
- Location: France
Re: Problem 090
Hi,
I have a problem with this one, and I don't understand where is my error.
Could anyone give me a hint if I send my python code ?
Here are my first and last results of what I count as a solution :
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 4, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 6, 7, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 3, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 4, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 5, 6, 7, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 4, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 6, 7, 8, 9]]
[...]
[[0, 4, 5, 6, 8, 9], [1, 2, 3, 4, 6, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 7, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 8, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 9]]
Am I misunderstand something about the 6-9 rules ?
Thank you !
I have a problem with this one, and I don't understand where is my error.
Could anyone give me a hint if I send my python code ?
Here are my first and last results of what I count as a solution :
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 4, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 6, 7, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 2, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 3, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 4, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 5, 6, 7, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 1, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 4, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 5, 6, 8, 9]]
[[0, 1, 2, 3, 4, 5], [0, 2, 3, 6, 7, 8, 9]]
[...]
[[0, 4, 5, 6, 8, 9], [1, 2, 3, 4, 6, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 7, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 8, 9]]
[[0, 5, 6, 7, 8, 9], [1, 2, 3, 4, 6, 9]]
Am I misunderstand something about the 6-9 rules ?
Thank you !
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Problem 090
Didn't see anything wrong with the examples, so I could look at the code (if you explain what you're doing in comments).
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
-
vasilyev
- Posts: 4
- Joined: Fri Dec 11, 2009 5:54 pm
Re: Problem 090
I have problem with this one, as well. I've implemented two independent solutions to the problem (one recursive, another one brute-force), they give me the same answer, but the website rejects it. Here are a few answers (69 refers to either 6 or 9; two 69's in a row means 6 and 9):
0 1 2 3 4 5; 0 1 2 3 8 69
0 1 2 3 4 5; 0 1 2 4 8 69
0 1 2 3 4 5; 0 1 2 5 8 69
0 1 2 3 4 5; 0 1 2 7 8 69
0 1 2 3 4 5; 0 1 2 8 69 69
0 1 2 3 4 5; 0 1 3 5 8 69
0 1 2 3 4 5; 0 1 4 5 8 69
0 1 2 3 4 5; 0 1 5 7 8 69
0 1 2 3 4 5; 0 1 5 8 69 69
0 1 2 3 4 5; 0 2 3 4 8 69
0 1 2 3 4 5; 0 2 3 5 8 69
0 1 2 3 4 5; 0 2 3 7 8 69
0 1 2 3 4 5; 0 2 3 8 69 69
...
0 1 2 5 69 69; 1 3 4 5 8 69
0 1 2 7 8 69; 0 1 3 4 5 7
0 1 2 7 8 69; 0 1 3 4 5 8
0 1 2 7 8 69; 0 1 3 4 5 69
0 1 2 7 8 69; 0 3 4 5 8 69
0 1 2 7 8 69; 1 2 3 4 5 69
0 1 2 7 8 69; 1 3 4 5 7 69
0 1 2 7 8 69; 1 3 4 5 8 69
0 1 2 7 8 69; 1 3 4 5 69 69
0 1 2 7 69 69; 0 1 3 4 5 8
0 1 2 7 69 69; 0 3 4 5 8 69
0 1 2 7 69 69; 1 3 4 5 8 69
0 1 2 8 69 69; 0 1 3 4 5 7
0 1 2 8 69 69; 0 1 3 4 5 8
0 1 2 8 69 69; 0 1 3 4 5 69
0 1 2 8 69 69; 0 3 4 5 8 69
...
0 3 5 8 69 69; 1 2 3 4 7 69
0 3 5 8 69 69; 1 2 3 4 8 69
0 3 5 8 69 69; 1 2 3 4 69 69
0 3 5 8 69 69; 1 2 4 5 7 69
0 3 5 8 69 69; 1 2 4 5 8 69
0 3 5 8 69 69; 1 2 4 5 69 69
0 3 5 8 69 69; 1 2 4 7 8 69
0 3 5 8 69 69; 1 2 4 7 69 69
0 3 5 8 69 69; 1 2 4 8 69 69
0 4 5 7 8 69; 1 2 3 4 5 69
0 4 5 7 8 69; 1 2 3 4 7 69
0 4 5 7 8 69; 1 2 3 4 8 69
0 4 5 7 8 69; 1 2 3 4 69 69
0 4 5 8 69 69; 1 2 3 4 5 69
0 4 5 8 69 69; 1 2 3 4 7 69
0 4 5 8 69 69; 1 2 3 4 8 69
0 4 5 8 69 69; 1 2 3 4 69 69
0 5 7 8 69 69; 1 2 3 4 5 69
0 5 7 8 69 69; 1 2 3 4 7 69
0 5 7 8 69 69; 1 2 3 4 8 69
0 5 7 8 69 69; 1 2 3 4 69 69
I know that neither of these sequences repeat, none of the first cubes are swapped with the second in the resulting answer... In my solution I ignore the constraint 8^2=64, because 7^2=49 is equivalent to it...
0 1 2 3 4 5; 0 1 2 3 8 69
0 1 2 3 4 5; 0 1 2 4 8 69
0 1 2 3 4 5; 0 1 2 5 8 69
0 1 2 3 4 5; 0 1 2 7 8 69
0 1 2 3 4 5; 0 1 2 8 69 69
0 1 2 3 4 5; 0 1 3 5 8 69
0 1 2 3 4 5; 0 1 4 5 8 69
0 1 2 3 4 5; 0 1 5 7 8 69
0 1 2 3 4 5; 0 1 5 8 69 69
0 1 2 3 4 5; 0 2 3 4 8 69
0 1 2 3 4 5; 0 2 3 5 8 69
0 1 2 3 4 5; 0 2 3 7 8 69
0 1 2 3 4 5; 0 2 3 8 69 69
...
0 1 2 5 69 69; 1 3 4 5 8 69
0 1 2 7 8 69; 0 1 3 4 5 7
0 1 2 7 8 69; 0 1 3 4 5 8
0 1 2 7 8 69; 0 1 3 4 5 69
0 1 2 7 8 69; 0 3 4 5 8 69
0 1 2 7 8 69; 1 2 3 4 5 69
0 1 2 7 8 69; 1 3 4 5 7 69
0 1 2 7 8 69; 1 3 4 5 8 69
0 1 2 7 8 69; 1 3 4 5 69 69
0 1 2 7 69 69; 0 1 3 4 5 8
0 1 2 7 69 69; 0 3 4 5 8 69
0 1 2 7 69 69; 1 3 4 5 8 69
0 1 2 8 69 69; 0 1 3 4 5 7
0 1 2 8 69 69; 0 1 3 4 5 8
0 1 2 8 69 69; 0 1 3 4 5 69
0 1 2 8 69 69; 0 3 4 5 8 69
...
0 3 5 8 69 69; 1 2 3 4 7 69
0 3 5 8 69 69; 1 2 3 4 8 69
0 3 5 8 69 69; 1 2 3 4 69 69
0 3 5 8 69 69; 1 2 4 5 7 69
0 3 5 8 69 69; 1 2 4 5 8 69
0 3 5 8 69 69; 1 2 4 5 69 69
0 3 5 8 69 69; 1 2 4 7 8 69
0 3 5 8 69 69; 1 2 4 7 69 69
0 3 5 8 69 69; 1 2 4 8 69 69
0 4 5 7 8 69; 1 2 3 4 5 69
0 4 5 7 8 69; 1 2 3 4 7 69
0 4 5 7 8 69; 1 2 3 4 8 69
0 4 5 7 8 69; 1 2 3 4 69 69
0 4 5 8 69 69; 1 2 3 4 5 69
0 4 5 8 69 69; 1 2 3 4 7 69
0 4 5 8 69 69; 1 2 3 4 8 69
0 4 5 8 69 69; 1 2 3 4 69 69
0 5 7 8 69 69; 1 2 3 4 5 69
0 5 7 8 69 69; 1 2 3 4 7 69
0 5 7 8 69 69; 1 2 3 4 8 69
0 5 7 8 69 69; 1 2 3 4 69 69
I know that neither of these sequences repeat, none of the first cubes are swapped with the second in the resulting answer... In my solution I ignore the constraint 8^2=64, because 7^2=49 is equivalent to it...
-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
Re: Problem 090
The problem specifically states {1,2,3,4,5,6} is distinct from {1,2,3,4,5,9} - are you handling this? It sounds like you are treating each line you wrote above as one solution, where it could easily be more.
-
vasilyev
- Posts: 4
- Joined: Fri Dec 11, 2009 5:54 pm
Re: Problem 090
Thank you very much! I suspected that I just understand this problem not correctly, and it turned out to be the case.
-
mynameisalreadytaken
- Posts: 20
- Joined: Sun Sep 25, 2011 11:20 pm
Re: Problem 090
I'm having a Problem with understanding how the extended sets work.
Do these Solutions count as 3 distinct arrangements?
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 8, 9}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8, 9}
Edit: No, they don't. My code just had a bug.
Do these Solutions count as 3 distinct arrangements?
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 8, 9}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8, 9}
Edit: No, they don't. My code just had a bug.
Last edited by mynameisalreadytaken on Thu Sep 29, 2011 5:07 pm, edited 1 time in total.

- jaap
- Posts: 588
- Joined: Tue Mar 25, 2008 3:57 pm
- Contact:
Re: Problem 090
The extended set mentioned is only a bit trying to explain which numbers can be formed. What is being counted is the arrangements of the numbers, not extended sets. So the first two arrangements you name are distinct, the third is not an arrangement.mynameisalreadytaken wrote:I'm having a Problem with understanding how the extended sets work.
Do these Solutions count as 3 distinct arrangements?
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 8, 9}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8}
{0, 5, 6, 7, 8, 9}, {1, 2, 3, 4, 6, 8, 9}
-
EnDorphin
- Posts: 8
- Joined: Wed Oct 13, 2010 3:23 pm
Re: Problem 090
I need a clarification. In the problem it states that,
So is this correct or do all the digits have to be used?
This statement states that each faces simply has to have digits written on it. It does not specify that all the digits from 0 to 9 has to be used. So for example, the digit 7 does not necessarily have to be written on any of the faces as it is not required to form a square.Each of the six faces on a cube has a different digit (0 to 9) written on it
So is this correct or do all the digits have to be used?

-
mynameisalreadytaken
- Posts: 20
- Joined: Sun Sep 25, 2011 11:20 pm
-
EnDorphin
- Posts: 8
- Joined: Wed Oct 13, 2010 3:23 pm
Re: Problem 090
So are these all distinct valid arrangements?
{0,0,0,2,6,8},{0,1,3,4,5,9}
{0,0,0,2,6,8},{1,1,3,4,5,9}
{0,0,0,2,6,8},{1,2,3,4,5,9}
{0,0,0,2,6,8},{1,3,3,4,5,9}
{0,0,0,2,6,8},{1,3,4,4,5,9}
{0,0,0,2,6,8},{1,3,4,5,5,9}
{0,0,0,2,6,8},{1,3,4,5,6,9}
{0,0,0,2,6,8},{1,3,4,5,7,9}
{0,0,0,2,6,8},{1,3,4,5,8,9}
{0,0,0,2,6,8},{1,3,4,5,9,9}
{0,0,0,2,6,8},{0,1,3,4,5,9}
{0,0,0,2,6,8},{1,1,3,4,5,9}
{0,0,0,2,6,8},{1,2,3,4,5,9}
{0,0,0,2,6,8},{1,3,3,4,5,9}
{0,0,0,2,6,8},{1,3,4,4,5,9}
{0,0,0,2,6,8},{1,3,4,5,5,9}
{0,0,0,2,6,8},{1,3,4,5,6,9}
{0,0,0,2,6,8},{1,3,4,5,7,9}
{0,0,0,2,6,8},{1,3,4,5,8,9}
{0,0,0,2,6,8},{1,3,4,5,9,9}

-
Fogmeister
- Posts: 27
- Joined: Mon Aug 22, 2011 11:20 am
Re: Problem 090
I would say not as the first cube has the digit 0 on 3 sides which goes against the first line...
"Each of the six faces on a cube has a different digit (0 to 9) written on it"
I would interpret that as meaning each side of a dice has to be different from every other side of that dice.
"Each of the six faces on a cube has a different digit (0 to 9) written on it"
I would interpret that as meaning each side of a dice has to be different from every other side of that dice.

-
EnDorphin
- Posts: 8
- Joined: Wed Oct 13, 2010 3:23 pm
