Problem 688
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.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
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
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.
- KING-OLE
- Posts: 28
- Joined: Mon Dec 22, 2014 9:33 pm
Problem 688
I have problems understanding the exact question.
Do the piles need to have different counts of plates:
1) before the new plates are added,
2) added to each pile,
3) after new plates are added
4) all or some of the above - which? _____________
Thanks.
Do the piles need to have different counts of plates:
1) before the new plates are added,
2) added to each pile,
3) after new plates are added
4) all or some of the above - which? _____________
Thanks.

-
mdean
- Posts: 206
- Joined: Tue Aug 02, 2011 2:05 am
Re: Problem 688
What "new plates"? You take n plates and divide them into k piles. For each calculation of f(n,k), the total number of plates is fixed.

- KING-OLE
- Posts: 28
- Joined: Mon Dec 22, 2014 9:33 pm
Re: Problem 688
"We stack n plates into k non-empty piles where each pile is a different size."
So, the new plates are n, and the k piles are NOT empty, therefore old or existing.
EDIT: Or am I reading that wrong? - Does it simply mean that I have to place at least one plate on each pile, leaving none empty, and that the k piles are empty before you place the plates?
So, the new plates are n, and the k piles are NOT empty, therefore old or existing.
EDIT: Or am I reading that wrong? - Does it simply mean that I have to place at least one plate on each pile, leaving none empty, and that the k piles are empty before you place the plates?

-
DJohn
- Posts: 90
- Joined: Sat Oct 11, 2008 12:24 pm
Re: Problem 688
You might be reading "We stack n plates into k non-empty piles" as "We stack n plates onto k non-empty piles", which (to me at least) has a quite different meaning. We start with nothing but n plates. Stacking takes place. Then we have k piles, none of which are empty. The question is concerned with this final state: a total of n plates in k piles (with no two piles having the same number of plates). How they got there doesn't matter.
It might be the "non-empty" that's tripping you up. This is describing the piles after the stacking, not before. It's not something you'd say in every-day speech, but in maths a pile could contain zero plates, and that case must be excluded for this problem.
It might be better worded "We divide n plates into k non-empty piles".
It might be the "non-empty" that's tripping you up. This is describing the piles after the stacking, not before. It's not something you'd say in every-day speech, but in maths a pile could contain zero plates, and that case must be excluded for this problem.
It might be better worded "We divide n plates into k non-empty piles".
- KING-OLE
- Posts: 28
- Joined: Mon Dec 22, 2014 9:33 pm
Re: Problem 688
Thank you for clarifying DJohn.
The language had me misunderstanding the task. I would have preferred something like "Stack n plates in k piles. No pile must remain empty."
Anyway, I understand the question now, so I will now see if I can solve it.
The language had me misunderstanding the task. I would have preferred something like "Stack n plates in k piles. No pile must remain empty."
Anyway, I understand the question now, so I will now see if I can solve it.

-
vamsikal3
- Posts: 89
- Joined: Sat Oct 01, 2016 9:25 am
Re: Problem 688
<deleted post>
Last edited by vamsikal3 on Wed Nov 25, 2020 4:13 pm, edited 1 time in total.
my friend key --> 990813_OZPwQtCjkD6KlvxirOoTSZxccMFsuw1L


- RobertStanforth
- Administrator
- Posts: 2666
- Joined: Mon Dec 30, 2013 11:25 pm
Re: Problem 688
Thank you for pointing this out. The wording has now been amended.vamsikal3 wrote: Mon Nov 18, 2019 6:07 am The problem text reads: It is impossible to divide 10 into 5 non-empty piles and hence f(10,5)=0.
-
TGiordi
- Posts: 1
- Joined: Sun Jan 05, 2020 2:01 pm
Re: Problem 688
Hello,
I'm able to compute the exact S(100) value with a simple algorithm and an optimized algorithm. My simple algorithm gives me the same result as the optimized one till 106 or 108. Anyway, the solution for 1016 is wrong. Could you provide S(106) or S(108) in order to be able to trouble shoot my simple & optimized algorithm as I assume there should be a special case that I've not taken into account and that is not visible in S(100).
Thanks
I'm able to compute the exact S(100) value with a simple algorithm and an optimized algorithm. My simple algorithm gives me the same result as the optimized one till 106 or 108. Anyway, the solution for 1016 is wrong. Could you provide S(106) or S(108) in order to be able to trouble shoot my simple & optimized algorithm as I assume there should be a special case that I've not taken into account and that is not visible in S(100).
Thanks
-
castrate
- Posts: 31
- Joined: Mon Aug 19, 2019 2:34 pm
Re: Problem 688
I came across almost the same problem as @TGiordi. I got the correct answer(12656) for S(100) and I was able to compute S(10^16) in reasonable time, but the answer was wrong. So can I PM someone in order to check my answers for higher results such as S(10^8)? Thanks 
-
castrate
- Posts: 31
- Joined: Mon Aug 19, 2019 2:34 pm
Re: Problem 688
Hmm...Seems that I'm stuck. I tried sending PM to several administrators, but with no replies for over three months. So could someone help confirm the following results:
S(10^6)=***xxxxxxx***
S(10^8)=***xxxxxxxxxxx***
S(10^10)=***xxxxxxxxxxxxxxx***
S(10^12)=***xxxxxxxxxxxxxxxxxxx*** EDIT digits removed by moderator
where x represents a single digit.
I don't mean to spoil, but the problem has been confusing me for too long.
Thanks in advance.
S(10^6)=***xxxxxxx***
S(10^8)=***xxxxxxxxxxx***
S(10^10)=***xxxxxxxxxxxxxxx***
S(10^12)=***xxxxxxxxxxxxxxxxxxx*** EDIT digits removed by moderator
where x represents a single digit.
I don't mean to spoil, but the problem has been confusing me for too long.
Thanks in advance.