Problem 844

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 844

Post by DeatH_StaR »

Is the answer to S(4, 10^2) really 229?
I believe M4(10^2) = 228, and M3(10^2) can't be 1, doesn't it? Isn't it 173?
Doesn't the sum equals 401?
User avatar
RobertStanforth
Administrator
Posts: 2666
Joined: Mon Dec 30, 2013 11:25 pm

Re: Problem 844

Post by RobertStanforth »

DeatH_StaR wrote: Sat May 20, 2023 5:30 pm Is the answer to S(4, 10^2) really 229?
I believe M4(10^2) = 228, and M3(10^2) can't be 1, doesn't it? Isn't it 173?
Doesn't the sum equals 401?
Thanks for your question; the problem development team are looking into this.
In the meantime, do you perhaps mean $M_4(10^2) = 238$ rather than 228?
User avatar
RobertStanforth
Administrator
Posts: 2666
Joined: Mon Dec 30, 2013 11:25 pm

Re: Problem 844

Post by RobertStanforth »

Upon further investigation, I can confirm that the answer to $S(4, 100)$ really is 229. Feel free to PM me if you believe you have more 3- and 4-Markov numbers than this sum affords.
User avatar
yourmaths
Posts: 47
Joined: Mon Aug 25, 2014 11:00 am

Re: Problem 844

Post by yourmaths »

RobertStanforth wrote: Sat May 20, 2023 9:14 pm Upon further investigation, I can confirm that the answer to $S(4, 100)$ really is 229. Feel free to PM me if you believe you have more 3- and 4-Markov numbers than this sum affords.
The key part of the question statement is "any part of a solution", so that, for example, if $(a,b,c)$ is a solution with $a,b\leq N < c$ then $a$ and $b$ count towards $M_3(N)$, but $c$ doesn't. Is that right?
level = lambda number_solved: number_solved // 25
Image
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: Problem 844

Post by neverforget »

yourmaths wrote: Sun May 21, 2023 12:49 am The key part of the question statement is "any part of a solution", so that, for example, if $(a,b,c)$ is a solution with $a,b\leq N < c$ then $a$ and $b$ count towards $M_3(N)$, but $c$ doesn't. Is that right?
Yes, the other numbers are allowed to exceed the bound (and while they are themselves $k$-Markov numbers, they are not included in $M_k$ if over the bound).

And of course, make sure you are only counting each $k$-Markov number once (for each $M_k$), even if it is present in multiple solutions, or present multiple times within the same solution.
Image
Post Reply