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!)
A154028 a(2n) = n*(n+1)/2, a(2n+1) = n!. 1
0, 1, 1, 1, 3, 2, 6, 6, 10, 24, 15, 120, 21, 720, 28, 5040, 36, 40320, 45, 362880, 55, 3628800, 66, 39916800, 78, 479001600, 91, 6227020800, 105, 87178291200, 120, 1307674368000, 136, 20922789888000, 153, 355687428096000, 171 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
a(n) = n + a(n-1), a(n) = n*(n+1)/2, with a(0) = 0 and b(n) = n*a(n-1), a(n) = n!, with b(0) = 1, then you can form a function F such that: F(n!) = n*(n+1)/2.
LINKS
MATHEMATICA
Flatten[Table[{n*(n + 1)/2, n!}, {n, 0, 20}]] (* Produces terms *)
(*addition*)
a[0] = 0; a[n_] := a[n] = n + a[n - 1];
Table[a[n] - n*(n + 1)/2, {n, 0, 20}] (* Demonstrates that a[n] = n*(n+1)/2 *)
(*multiplication*)
b[0] = 1; b[n_] := b[n] = n*b[n - 1];
Table[b[n] - n!, {n, 0, 20}] (* Demonstrates that b[n] = n! *)
PROG
(PARI) a(n)=if(n%2, (n\2)!, n*(n+2)/8) \\ Charles R Greathouse IV, Sep 01 2016
CROSSREFS
Sequence in context: A286970 A347743 A023360 * A157793 A096375 A062200
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jan 04 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 8 07:09 EDT 2024. Contains 372319 sequences. (Running on oeis4.)