login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159333 Roman factorial of n. 5
-1, 1, 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000, 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000 (list; graph; refs; listen; history; text; internal format)
OFFSET
-2,5
LINKS
Eric W. Weisstein, Roman Factorial.
FORMULA
a(n) = n! for n >=0 and ((-1)^(n + 1))/(-n - 1)! for n < 0.
MAPLE
A159333 := n -> ifelse(n < 0, (-1)^(-n - 1)/(-n - 1)!, n!):
seq(A159333(n), n = -2..9); # Peter Luschny, Jun 11 2022
MATHEMATICA
Table[If[n < 0, (-1)^(-n - 1)/(-n - 1)!, n!], {n, -2, 30}] (* G. C. Greubel, Jun 25 2018 *)
PROG
(PARI) for(n=-2, 30, print1(if(n<0, (-1)^(-n - 1)/(-n - 1)!, n!), ", ")) \\ G. C. Greubel, Jun 25 2018
(Magma) [-1, 1] cat [Factorial(n): n in [0..30]]; // G. C. Greubel, Jun 25 2018
CROSSREFS
Cf. A000142.
Sequence in context: A155456 A124355 A133942 * A165233 A000142 A104150
KEYWORD
easy,sign,less
AUTHOR
Jonathan Vos Post, Apr 10 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 13:03 EDT 2024. Contains 372293 sequences. (Running on oeis4.)