On Thu, Aug 20, 2009 at 12:32 PM, Bruno Marchal<marchal.domain.name.hidden> wrote:
>
>
> Hi,
>
> I give the solution of the first of the last exercises.
...
> This motivates the definition of the following function from N to N,
> called factorial.
> factorial(0) = 1, and factorial(n) = n*(n-1)*(n-2)*(n-3) * ... *1, if
> is n is different from 0.
>
> Note this: if n is different from 0, for each n we have that fact(n) =
> n*fact(n).
Of course you meant fact(n)=n*fact(n-1).
Brent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Everything List" group.
To post to this group, send email to everything-list.domain.name.hidden
To unsubscribe from this group, send email to everything-list+unsubscribe.domain.name.hidden
For more options, visit this group at
http://groups.google.com/group/everything-list?hl=en
-~----------~----~----~----~------~----~------~--~---
Received on Thu Aug 20 2009 - 16:24:35 PDT