Problem 162

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.
PierrotLeFou
Posts: 32
Joined: Tue Jun 10, 2025 2:42 am
Location: Montreal, Canada
Contact:

Re: Problem 162

Post by PierrotLeFou »

You mean that the numbers must contain at least the digits $0$, $1$ and $A$ but may contain other hexadecimal digits?
If it's the case, indeed I didn't understand clearly the statement of the problem.
Thanks for your reply. I will check again the statement.
I'm always right ... until I'm wrong
User avatar
SAG145
Posts: 41
Joined: Thu Apr 11, 2024 10:25 pm

Re: Problem 162

Post by SAG145 »

You got it right. Good luck!
Image
PierrotLeFou
Posts: 32
Joined: Tue Jun 10, 2025 2:42 am
Location: Montreal, Canada
Contact:

Re: Problem 162

Post by PierrotLeFou »

This will be a little more difficult than the previous solution.
Maybe I go in the wrong direction but a part of the solution is to evaluate the possibility to insert the requested digits among the others.
Suppose I have $4$ positions left and $2$ digits to insert among the others.
Here what I found:
$.X.X.$ gives $2X0X0$, $1X1X0$, $1X0X1$, $0X2X0$, $0X1X1$, $0X0X2$.
The$.$ are the possible insertion points and $X$ are the other digits, and the numbers are the amount of requested digits inserted at each position.
I will have to count the number of permutations between inserted digits and possible permutations between those digits and the digits in the $X$ position.
I'm always right ... until I'm wrong
Post Reply