Page 2 of 2
Re: Problem 088
Posted: Tue Mar 11, 2014 6:38 am
by satyres
Why this is wrong?
k=2: 2 = 2 × 1 = 1 + 1
Thanks !
Re: Problem 088
Posted: Tue Mar 11, 2014 7:20 am
by jaap
satyres wrote:Why this is wrong?
k=2: 2 = 2 × 1 = 1 + 1
Thanks !
You need the same numbers in the product as in the sum. So 1x1 and 1+1, or 2x1 and 2+1, but neither of these are correct.
Re: Problem 088
Posted: Tue Mar 11, 2014 2:20 pm
by nicolas.patrois
The lists must be the same and 2+1≠1×1. You must have x+y=x×y.
Re: Problem 088
Posted: Tue Mar 11, 2014 10:28 pm
by satyres
Thanks both for the clarification ! really apreciate it !
Problem 088
Posted: Thu Sep 11, 2014 1:09 am
by tomboy
Hello.
I'm positive I've understood the problem and got a good algorithm in my head. Still, it spits out a wrong result for the second example in the problem: Instead of {4, 6, 8, 12, 15, 16} I get {4, 6, 8, 12, 15, 16, 20} for the minimal product-sums 2<=k<=12.
In particular, it's the minimal product-sum for 10 I'm stuck on. My algorithm (verified by hand) says its minimum prod-sum is 20. What is the real answer? I just can't find something smaller.
<Post moved by moderator. Please don't create a new topic if one already exists.>
Re: Problem 088
Posted: Thu Sep 11, 2014 5:10 am
by nicolas.patrois
I find 16.
Re: Problem 088
Posted: Thu Sep 11, 2014 12:33 pm
by tomboy
As usual, i got my counting wrong.
Thanks
Re: Problem 088
Posted: Tue Jul 24, 2018 3:42 am
by syckls
The problem statement says, "A natural number, N, that can be written as the sum and product of a given set of at least two natural numbers, {a1, a2, ... , ak} is called a product-sum number." However, several of the examples given have repeated numbers. I think the problem statement should say, "A natural number, N, that can be written as the sum and product of a given sequence a1, a2, ... , ak of at least two natural numbers, is called a product-sum number."
Re: Problem 088
Posted: Tue Jul 24, 2018 8:20 am
by hk
The mathematical name of the structure you mean is
Multiset
Re: Problem 088
Posted: Tue Jul 24, 2018 10:41 am
by syckls
"Multiset" would also work, yes.