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!)
A028494 a(n) = -(1/2)*(n+2)*(n^2 - 6*n - 1). 1
1, 9, 18, 25, 27, 21, 4, -27, -75, -143, -234, -351, -497, -675, -888, -1139, -1431, -1767, -2150, -2583, -3069, -3611, -4212, -4875, -5603, -6399, -7266, -8207, -9225, -10323, -11504, -12771, -14127, -15575, -17118, -18759, -20501, -22347 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
MATHEMATICA
Table[-(1/2)(n+2)(n^2-6n-1), {n, 0, 40}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {1, 9, 18, 25}, 40] (* Harvey P. Dale, Sep 08 2018 *)
PROG
(Magma) [-1/2*(n+2)*(n^2-6*n-1): n in [0..40]]; // Vincenzo Librandi, Apr 27 2011
(PARI) a(n)=-(n+2)*(n^2-6*n-1)/2 \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
Sequence in context: A232056 A109661 A015798 * A167663 A347242 A038838
KEYWORD
sign,easy
AUTHOR
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 March 19 06:32 EDT 2024. Contains 370953 sequences. (Running on oeis4.)