I have a question regarding the code to solve a particular equation. This is the equation:
364! / [(365-n)! * 365^(n-1)] <= 0.5
and I need to solve for n
.
The code I used is:
Clear[n];
Solve[364!/{(365-n)! 365^(n-1)} <= 0.5, n]
However, it's not solving for n
and only expanding 364!
with the rest of the equation as it is. Can anyone point out if I'm making a mistake in the code?
{}
and[]
parenteses, where you need()
$\endgroup$ – Coolwater Sep 14 '15 at 7:30Solve[364!/((365 - n)! 365^(n - 1)) <= 1/2 && 0 <= n <= 365, n, Integers]
a spin, andArgMin[{Abs[364!/((365 - n)! 365^(n - 1)) - 1/2], 0 <= n <= 365}, n, Integers]
might be more what you're after. $\endgroup$ – ciao Sep 14 '15 at 7:41