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!)
A077386 Sums of rows of triangle in A077385. 2
1, 4, 17, 106, 937, 10886, 156865, 2696338, 53808401, 1222222222, 31124909521, 878100801722, 27181099309561, 915824738370166, 33363344029017857, 1306644371887759906, 54743840860125227041, 2443077625590307888670, 115697055886568046147601 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = {n^n + n^(n-1) -2}/(n-1), for n>1.
E.g.f.: 2*x*Ei(-W(-x)) - 2*x*Ei(x) + W(-x) + 2*exp(x) - 2, where Ei(x) is the exponential integral and W(x) is the Lambert W function. - G. C. Greubel, Sep 21 2022
MATHEMATICA
Table[If[n==1, 1, (n^n +n^(n-1) -2)/(n-1)], {n, 30}] (* G. C. Greubel, Sep 21 2022 *)
PROG
(PARI) a(n) = sum(k=0, n-1, n^k) + sum(k=0, n-2, n^k); \\ Michel Marcus, Feb 03 2014
(Magma) [1] cat [(n^n +n^(n-1) -2)/(n-1): n in [2..30]]; // G. C. Greubel, Sep 21 2022
(SageMath)
def A077386(n): return 1 if (n==1) else (n^n +n^(n-1) -2)/(n-1)
[A077386(n) for n in (1..30)] # G. C. Greubel, Sep 21 2022
CROSSREFS
Cf. A077385.
Sequence in context: A335626 A232211 A122940 * A209903 A330514 A330535
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 06 2002
EXTENSIONS
More terms from Michel Marcus, Feb 03 2014
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 August 20 03:11 EDT 2024. Contains 375310 sequences. (Running on oeis4.)