Qm
BrainteasersJane StreetCitadel

Which is bigger, e to the pi or pi to the e?

Both numbers are around 22 or 23.

Which is larger, e to the power pi or pi to the power e? Find an argument that does not rely on decimal approximations, and that works for any two numbers in place of e and pi as long as one of them is e.

Show a hint

Compare the two by taking logarithms and dividing: you want to compare (ln e)/e with (ln pi)/pi. So ask where the function (ln x)/x is largest.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Writing 100 as a sum of consecutive numbersThe person whose age is the square root of the yearThe number equal to the sum of the cubes of its digitsThe cannonballs that make a square and a pyramidThe number that rotates when multiplied
All questions →