[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

513.0. "Maximal product that adds to 100 ?" by AVANTI::OSMAN (and silos to fill before I feep, and silos to fill before I feep) Mon Jun 16 1986 14:11

    Find the set of positive integers that add to 100 and whose product
    is maximal.  If you're just almost correct, you get no credit, so
    be careful.
    
    /Eric
T.RTitleUserPersonal
Name
DateLines
513.1IntuitionBEING::RABAHYMon Jun 16 1986 14:391
My first guess is a set of fifty twos.
513.2JON::MORONEYThis space for rent.Mon Jun 16 1986 14:5416
I looked at the following:

 50   25   20    10              50   25   20    10
2  , 4  , 5  , 10  .  Turns out 2  = 4  > 5  > 10  >...

            2    3   32    48                             33
But, since 3  > 2 , 3   > 2  .  So next "guess" would be 3   * 1.

But that "1" doesn't increase the product any, so lets get rid of it.

The expression is ..*3*3*3*1, if we change the last two factors to 2*2, we
get a larger product since 2*2 > 3*1  So my guess is
 32            32
3  * 2 * 2 or 3  * 4.

-Mike
513.3BEING::POSTPISCHILAlways mount a scratch monkey.Mon Jun 16 1986 15:206
    Re .1, .2:
    
    Sets don't contain multiple copies of anything.
    
    
    				-- edp
513.4No duplicatesBEING::RABAHYMon Jun 16 1986 15:411
I guess {2,3,5,6,7,8,9,10,11,12,13,14}.
513.5I had intended duplicates to be o.k.SIERRA::OSMANand silos to fill before I feep, and silos to fill before I feepMon Jun 16 1986 20:0719
    As the submitter of .0, I intended multiples to be allowed.
    
    So, either we replace the word "set of integers" with something
    else, or we announce that {3,3,3...} doesn't mean multiple COPIES
    of 3, but distinct 3's.  Hence we can continue to use the word "set".
    
    Anyway, the question about a set with non-duplicates is an interesting
    one too.
    
    By the way, all 3's except for two 2's is what I believe the answer
    to the original question is.  The "reason" the answer only includes
    2's and 3's is related to the fact that the number "e" (natural
    logarithm base) falls between 2 and 3.
    
    The dependence on "e" can be more clearly seen if you attempt
    to find a collection of positive REALS that add to 100 and multiply
    to a maximum.
    
    /Eric
513.6CLT::GILBERTJuggler of NoterdomTue Jun 17 1986 01:2824
513.72*4 > 3*3 ?TLE::FAIMANNeil FaimanTue Jun 17 1986 12:428
    Re .6:
    
    > Similarly, we can easily show that any multiset that maximizes the product
    > may contain at most one 3 (since 2*4 > 3*3), need contain no 4s (since 4 = 2*2),

    2*4 > 3*3 ?
    
    	-Neil
513.8CLT::GILBERTJuggler of NoterdomTue Jun 17 1986 19:4718
513.9CLT::GILBERTJuggler of NoterdomTue Jun 17 1986 21:5819
re 513.5 (same problem, but with a set of positive reals)

	Let us find a set of real positive numbers, with sum S,
	for which the product is maximized.  Now, all the numbers
	must be equal; otherwise, we could take two different numbers
	a-b and a+b and replace them by a and a, giving the same sum,
	but a larger product, since a*a > (a-b)(a+b) = a^2 - b^2.

	Given S, the only freedom we have in maximizing the product
	is the choice of N, the number of numbers.  Each number is S/N
	(since N of them sum to S), and the product is (S/N)^N.  We
	note that the continuous function f(N) = (S/N)^N is concave
	downward, with a maximum at N = S/e.  To maximize f(N) with an
	integer N, we have either N = floor(S/e) or N = ceiling(S/e).

	Does anyone have an idea of how to determine, in general, whether
	the floor or ceiling should be used? (yeah, I know, try 'em both).
	For example, will S/e rounded to the nearest integer always maximize
	the product for integer S?
513.10e is closer to 3 than 2.SIERRA::OSMANand silos to fill before I feep, and silos to fill before I feepWed Jun 18 1986 14:4210
    Well, you were so quick at comparing e**pi and pi**e (q.v.) without
    "trying them both", so I'd think you could just as effectively
    compare ceiling and floor of (S/e) ! :-)
    
    Anyway, perhaps a small amount of analysis of the derivative will
    reveal which is better, floor or ceiling.  Perhaps we might
    even cheat a little to help the analysis by using the fact that
    e is closer to 3 than 2.  Would this help ?
    
    /Eric
513.11just a few comments4GL::GILBERTOwnership ObligatesMon Nov 27 1989 15:0823
Sometimes S/e should be rounded down, sometimes up.  Let's find values of S
that are 'borderline': rounding either way is just as good.  These S values
have:
	 /   S   \ [S/e]      /    S    \ [S/e]+1
	(  -----  )       =  (  -------  )
	 \ [S/e] /            \ [S/e]+1 /

where [x] is the floor function.  Rearranging the above, we have:

	                      1    [S/e]
	S = ([S/e]+1) ( 1 + ----- )
	                    [S/e]

Now as S (and [S/e]) increases, the expression (1 + 1/[S/e])^[S/e] approaches
e from below.  This makes the above equation for S rather interesting:

	S = ([S/e]+1) (e-delta)

Substituting this into itself gives:

	S = ([ ([S/e]+1)(e-delta)/e ]+1) (e-delta)
	  = ([ ([S/e]+1)(1-delta/e) ]+1) (e-delta)
	  = (   [S/e]                +1) (e-delta)