Problem 941

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
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.

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


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
DeatH_StaR
Posts: 16
Joined: Sat Apr 19, 2014 5:09 pm

Problem 941

Post by DeatH_StaR »

What does it mean "Denote by pn the place..." - does it mean that pn actually equals n?
philiplu
Posts: 92
Joined: Wed Aug 02, 2017 8:51 pm
Location: Redmond, WA, USA

Re: Riddle 941

Post by philiplu »

$a_1,a_2,\dots,a_N$ will all appear in $C(10,12)$ somewhere, and not necessarily in that order. For example, it might be that $a_3$ appears first when you look at where each of the $a_i$ appear in $C(10,12).$ If that were the case, then $p_3 = 1$, since $a_3$ was first (and no, I've no idea if $p_3 = 1$, that's just an example).

So $p_n$ is the (1-based) order of $a_n$ in the list of all the $a_i$ when you arrange those in order by where they show up in $C(10,12).$
Image
Stache
Posts: 13
Joined: Sat Mar 28, 2009 3:44 am
Location: Connecticut, USA

Re: Riddle 941

Post by Stache »

Isn't it true for C(3,2) that 0001021122 is lexicographically smaller than 0010211220 and meets the definition of C(k, n) given in the problem? I realize this is not a de Bruijn sequence, but the problem statement doesn't say that each combination must appear exactly once.
Image
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Riddle 941

Post by mdean »

Consider all sequences of shortest possible length that contains every possible combination of the digits.
Denote by $C(k,n)$ the lexicographically smallest of these.
0001021122 does not contain "20".
Image
Stache
Posts: 13
Joined: Sat Mar 28, 2009 3:44 am
Location: Connecticut, USA

Re: Riddle 941

Post by Stache »

:lol: yea, I was thinking 20 was included cyclically, but then of course there would be another 0 at the end and it wouldn't be the shortest sequence....thanks!
Image
Post Reply