InternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 1 month agoVirgin Physicistslemmy.worldimagemessage-square86fedilinkarrow-up11arrow-down10 cross-posted to: [email protected]
arrow-up11arrow-down1imageVirgin Physicistslemmy.worldInternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 1 month agomessage-square86fedilink cross-posted to: [email protected]
minus-squareInternetCitizen2@lemmy.worldOPlinkfedilinkarrow-up0·1 month agoI wrote it correctly. It is the definition of a factorial.
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up0·1 month agoNo, correctly it would be n * (n-1) * (n-2) * … * 3 * 2* 1 Or the actual recursive definition 1! = 1 n! = (n-1)! * n
I wrote it correctly. It is the definition of a factorial.
No, correctly it would be n * (n-1) * (n-2) * … * 3 * 2* 1
Or the actual recursive definition
1! = 1
n! = (n-1)! * n