Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to Maximize this fairly simple expression

Maximize[{2^(-1-n)*(1+k)^(-1-n)*(1+2k)^(-1+n)*(-1 - 2 k + n)*(-2 k + n),k<=n/2, k>=1},
         {n,k}, Integers]

However Mathematica just returns the query. What's the right way to do this?

share|improve this question

Try NMaximize.

Maximize[{2^(-1-n)(1+k)^(-1-n)(1+2k)^(-1+n)(-1 - 2 k + n)(-2 k + n),k<=n/2, k>=1},{n,k}]
share|improve this answer
What result do you get? – Dr. belisarius Apr 7 '14 at 19:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.