Anybody know how to express odd factorials?

YoYoBabyYo

Senior member
Jul 1, 2003
606
0
0
I am trying to find a formula to express odd or even factorials, for example:

1*3*5*7*...*n

or

2*4*6*8...*n

I searched google, but had no luck. Does anybody have a clue what the formula is?
 

Chaotic42

Lifer
Jun 15, 2001
33,929
1,097
126
Well, 2n-1 is always odd and 2n is always even.

Are you looking for a mathematical forumla, or a way to do it in programming?
 

YoYoBabyYo

Senior member
Jul 1, 2003
606
0
0
Originally posted by: vrbaba
Originally posted by: YoYoBabyYo
Huh! Let me try those out!

Updated n odd, check above

I was going to ask about the odd, but the even seemed to have worked! May I ask how you knew? :thumbsup: :cookie:

Sorry to break the bad news, but YoyoYo does not have a kid. :D
 

vrbaba

Diamond Member
Jul 17, 2003
3,266
0
71
Originally posted by: YoYoBabyYo
Originally posted by: vrbaba
Originally posted by: YoYoBabyYo
Huh! Let me try those out!

Updated n odd, check above

I was going to ask about the odd, but the even seemed to have worked! May I ask how you knew? :thumbsup: :cookie:

Sorry to break the bad news, but YoyoYo does not have a kid. :D

courtesy Chuckywang <-- :beer: