The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A214698 a(n) = (n^n - n^2)/2. 1
0, 0, 9, 120, 1550, 23310, 411747, 8388576, 193710204, 4999999950, 142655835245, 4458050224056, 151437553296042, 5556003412778910, 218946945190429575, 9223372036854775680, 413620130943168381944, 19673204037648268787550, 989209827830156794561809, 52428799999999999999999800 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = A214647(n) - n^2 = A117694(n) - A000217(n).
E.g.f.: (-1/2)*(lambertW(-x)/(1 + lambertW(-x)) + x*(x+1)*exp(x)). - G. C. Greubel, Jan 08 2024
EXAMPLE
a(3) = (27 - 9)/2 = 9.
MAPLE
A214698:= proc(n)
(n^n-n^2)/2 ;
end proc: # R. J. Mathar, Aug 07 2012
MATHEMATICA
Table[(n^n-n^2)/2, {n, 30}] (* Harvey P. Dale, Dec 25 2022 *)
PROG
(Python)
for n in range(1, 22):
print (n**n - n*n)/2,
(Magma) [(n^n -n^2)/2: n in [1..30]]; // G. C. Greubel, Jan 08 2024
(SageMath) [(n^n -n^2)/2 for n in range(1, 31)] # G. C. Greubel, Jan 08 2024
CROSSREFS
Cf. A124797 is essentially equal to (n^n-n)/2.
Sequence in context: A159660 A061172 A167593 * A024487 A002691 A234320
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Jul 26 2012
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 June 8 12:22 EDT 2024. Contains 373217 sequences. (Running on oeis4.)