Tradução da entrada anterior.
A minha resolução do POW12 foi aceite. [Nota de 19-12-2009: apenas se afirma que foi "completa ou parcialmente resolvida"]
« Problema. Determine, demonstrando, o valor máximo de
, em que
e
é variável. Em particular, a sua resposta deve ser maior ou igual a todos os valores que se obtêm escolhendo outros valores de
»
Original:
“ Problem. Find, with proof, the maximum value of
where
and
is variable. In particular, your answer must be greater than or equal to all values obtained from other choices of
“
Eis a resolução submetida.
Resolução:
Sejam ,
,
e
. Para um dado
, com
, sabemos pelo método dos multiplicadores de Lagrange que
é um extremo local, se para
em que é o valor do multiplicador
que é solução destas
equaçoes. Assim temos respectivamente
e
Resolvendo este sistema de equações achamos
e
,
sendo este último um extremo local de , fixado
. Transformámos o problema inicial de maximização em
variáveis contínuas e uma discreta, a variável
no da maximização de
. Agora introduzimos a função seguinte
A função tem um máximo no mesmo ponto
do da função
Mas para
para
e
para
. Assim
é um máximo de . Dado que
, o máximo ocorre para
. Assim, para
tem-se
Actualização de 19-12-2009: corrigidos alguns erros assinalados pelo leitor Rod Carvalho.







While this problem is a decent one, a much more interesting and challenging version of it reads as follows: Maximize the value of the expression
, for some positive integer
, where
and
s are all positive integers.
Before you added the additional constraint I had thought how to generalize this technique and it came to me the naïve approach as follows:
(1) start by fixing
and get a “first solution” depending on
.
(2) Then assuming
were continuous find an “artificial solution”, let’s say
.
(3) Finally compute the values of
at the nearest integers to
and choose according to the maximizing type of problem.
This method, if feasible, still needs to be improved because of your new constraint.
The general method might be in the research domain. I don’t know.
Prior to your comment John Armstrong suggested I shoud try the Hancock’s Theory of Maxima and Minima in a recent comment to his post Extrema with Constraints I, of November 25, 2009. I have to see if I can find one here, in Lisbon.
PS. in this post
http://problemasteoremas.wordpress.com/2009/11/06/a-mathematical-reflections-undergraduate-problem/
you find a MR Undergraduate Problem.
The approach you outlined would probably be the first line of attack, but there is a slight problem with it. Suppose, as you mentioned, we fix
. Then, in order to maximize the given expression, I am guessing you will argue that we need to have
. But that may not be possible at all (because
‘s may not be positive integers)! Which means, one will have to look at lots of
‘s, that is, one can’t fix
.
The reason the “discrete” version is slightly more challenging is due to the fact that the condition “
” may no longer hold. So, one will have to come up with a different solution.
Here’s a hint: Instead of the sum
, consider the cases when the sum is
or
. (Those are the toy cases.) Then, try and see what the maximizing expression looks like.
Hi Vishal
subject to constraints
, i. e. one of the variables (I denote
) instead of being continuous is discrete.
My naïve approach would be for a different general case I thought of in which we had a function
In your problem all variables are discrete: function
and the constraint
.
Thanks for your hint.
Américo
Vishal,
variables, such as
.
The solution to your problem seems to be satisfied by
Thus
.
If this is correct
.
For
, the
.
product is only
I noticed that the function
and
. I have not yet a rigorous argument.
The solution is not as above.
If
and
, then
and
.
Américo,
Penso que existem alguns erros tipográficos na solução que apresentou. Por exemplo:
- se a função
retorna um escalar (o produto dos
), não entendo a expressão
- idem para a expressão
- em vez de “para um dado
, com
“, porque não escrever apenas: “para um dado
“?
- em vez de
, devia ser 
No entanto isto são apenas erros de sintaxe. Apesar de não ser matemático, e apesar de preferir o pragmatismo ao pedantismo intelectual, obter soluções para problemas de optimização em espaços discretos usando técnicas para espaços contínuos, e depois aproximar ao inteiro mais próximo… é algo que me parece potencialmente perigoso!! Tal poderia funcionar para calcular o
que minimiza
, mas para funções-objectivo genéricas, é uma receita para o desastre. Penso que temos que nos restringir a certas classes de funções-objectivo. Exigir continuidade e diferenciabilidade deve ser necessário para se poder usar o método dos multiplicadores de Lagrange. Eu exigiria também convexidade. Por exemplo, a função
é convexa, pelo que quando temos um mínimo, sabemos que é global. Podemos então procurar soluções inteiras na vizinhança desse mínimo. Mas se a função não for convexa, pode haver um enorme número de mínimos locais, e aproximar ao inteiro mais próximo não é correcto.
Rod
Obrigado por ter identificado os erros de escrita: corrigi-os, excepto o dos naturais, porque, por vezes, nos livros, encontro uma definição, outra vez outra, começando em 1 ou em 0; a Wikipedia refere estas duas convenções.
A aproximação aos inteiros mais próximos permitiu encontrar o mesmo valor da solução publicada pela Purdue University, que não usa o método de Lagrange, mas que depois de concluir que
, segue essencialmente o mesmo caminho, se estou a ver bem.
Acrescentei, quanto à resolução, no início do post, a nota referindo que «apenas se afirma que foi “completa ou parcialmente resolvida”».
Permanece, pois, em aberto a questão que levanta, parecendo-me pertinentes as suas considerações, que agradeço por trazer mais luz a este assunto.
Américo asked me to post my solution to it, so here it is. Apologies for replying in English, but I don’t trust Google Translate enough. :)
The maximum is
.
Rough proof:
, maximizing the number of 3's should give the maximum product. The maximum number of 3's you can fit into 100 with an even remainder is 32, leaving 4, which is two 2's.
It’s definitely the case that no factor can be 1 in the maximum, since the 1 could just be added to any other factor to increase the product. It’s also true that for any integer 5 or greater, 3(n-3)>n, so it could be split into 3 and n-3 to give a larger product and equal sum. Any 4 can be split into 2 and 2 giving the same sum and product. Therefore only 2 and 3 are needed to represent the maximum. Because
This turns out to also be equivalent to asking "What's the maximum number of maximal independent sets that can occur in a graph of 100 nodes?" The graph that satisfies this condition is just 32
's and 2
's (it's 34 disconnected components, but it's still a graph). I've been using this lately to construct very bad cases to test out a couple of quantum algorithms I've been working on.
Whoops, that’s
. Sorry, I thought it’d put the entire “32″ in the exponent since there were no spaces, but I guess not.
Neil,
Beautiful proof!
I am going to post the problem statement by Vishal, my guess, and your proof.
I edited your LaTeX a little bit.
Have a Happy New Year!
Américo
PS. Latex fixed.
I posted here the Problement statement by Vishal Lama, my guess and your proof.
Américo,
First, thanks a ton for the New Year’s wishes. Here’s wishing your family and you, too, a great New Year!
Coming back to the problem on this thread, Neil’s solution is exactly what I was looking for! (The LaTeX code night still need some correction. As of now, I see
. As per Neil’s solution, I think the number should be
.)
Vishal,
By now LaTeX code should be entirely fixed.
Thanks again!