Problem 821

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
b10r
Posts: 2
Joined: Wed Dec 21, 2022 5:37 pm

Problem 821

Post by b10r »

I think, I don't get the point. Can't we define for F(6) the set S = {1, 4, 5, 6} and hence the union of S, 2S and 3S becomes {1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 18}, which is intersected with {1, ..., 6} again {1, 2, 3, 4, 5, 6}. Overall we then would have F(6) = 6 and more generally F(N) = N. Am I missing something???
User avatar
bruce_love
Administrator
Posts: 3540
Joined: Sat Sep 24, 2011 11:59 am

Re: Problem 821

Post by bruce_love »

The set $S=\{1,4,5,6\}$ is NOT 123-Separable.
$2S = \{2,8,10,12\}$ and $3S = \{3,12,15,18\}$ are not disjoint as $12\in 2S$ and $12\in 3S$.
b10r
Posts: 2
Joined: Wed Dec 21, 2022 5:37 pm

Re: Problem 821

Post by b10r »

Yes, thanks for the clarification! In my mindset I forgot to intersect 2S and 3S...
haroldgparker
Posts: 11
Joined: Sat Apr 24, 2021 1:19 am

Re: Problem 821

Post by haroldgparker »

I'm currently getting the wrong answer for F(10^16) and trying to track down where things are coming apart in my algorithm. Unfortunately, I am getting the right answer for F(6) and F(20). Would it be OK to post my results for, and ask for confirmation of, some moderately high F(n)'s?
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: Problem 821

Post by neverforget »

Unfortunately, this isn't the right place for asking that. These threads are meant to clarify possible confusion and inaccuracies in the problem statement. Often, the examples given in these problem are carefully crafted to verify basic understanding without giving too much away.

Have you tried writing a simpler (but slower) solution to verify your optimized one?
Image
haroldgparker
Posts: 11
Joined: Sat Apr 24, 2021 1:19 am

Re: Problem 821

Post by haroldgparker »

No worries -- I can pursue that approach.
Post Reply