Problem 908

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
pjt33
Posts: 140
Joined: Mon Oct 06, 2008 6:14 pm

Problem 908

Post by pjt33 »

I can't understand how $C(3) = 3$ unless "different" doesn't mean "distinct".

Clearly a clock sequence must start $1$, so the only clock sequence of length $1$ is $1, 1, 1, \ldots$.

An irreducible clock sequence of period $2$ would have to start $1, 2$ but that fails because the seventh segment has to sum to $6$ or $8$.

An irreducible clock sequence of period $3$ could have two elements in the second segment, but then they're both $1$. So it must start $1, 2, 3$, and that breaks down because the fourth segment must sum to $3$ or $6$.

I conclude that either $C(3) = 1$ or that the three "different clock sequences" which contribute to $C(3)$ are all the same sequence: $1, 1, 1, 1, 1, 1, \ldots$. Am I missing something?
User avatar
RobertStanforth
Administrator
Posts: 2666
Joined: Mon Dec 30, 2013 11:25 pm

Re: Problem 908

Post by RobertStanforth »

Thanks for you post pjt33; I think I can clarify.

The sequence 121212... is actually valid as a clock sequence. There should be no difficulty in making the seventh segment sum to 7.

The sequence 123123... is invalid as you correctly observe, but there is another period-3 sequence that has been overlooked.
pjt33
Posts: 140
Joined: Mon Oct 06, 2008 6:14 pm

Re: Problem 908

Post by pjt33 »

Thanks. I think I must have skipped an element from (12)* when doing it by hand just after waking up.
henrig
Posts: 18
Joined: Mon Nov 21, 2016 7:39 am

Re: Problem 908

Post by henrig »

I had an issue understanding what the period of six meant in the example given. I now understand that it is the six numbers "123432" that keeps on repeating itself. I hope this helps others the struggle to get to grips with this puzzle.
Post Reply