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!)
A104882 Diagonal sums of number triangle A104881. 2
1, 1, 2, 3, 5, 8, 14, 24, 45, 85, 170, 351, 749, 1656, 3758, 8776, 21013, 51473, 129018, 329939, 860901, 2288528, 6192526, 17047248, 47693661, 135554549, 391099370, 1144867871, 3398656893, 10226072720, 31173964942, 96240485104, 300777706053 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = Sum_{k=0..floor(n/2)} ( Sum_{j=0..k} (n-2*k)^(k-j) ).
a(n) = Sum_{k=0..floor(n/2)} A104881(n-k, k).
MATHEMATICA
Table[Sum[If[j==k, 1, (n-2*k)^(k-j)], {k, 0, Floor[n/2]}, {j, 0, k}], {n, 0, 40}] (* G. C. Greubel, Jun 15 2021 *)
PROG
(Magma) [(&+[ (&+[ (n-2*k)^(k-j) : j in [0..k]]) : k in [0..Floor(n/2)]]): n in [0..40]]; // G. C. Greubel, Jun 15 2021
(Sage) [sum(sum((n-2*k)^(k-j) for j in (0..k)) for k in (0..n//2)) for n in (0..40)] # G. C. Greubel, Jun 15 2021
CROSSREFS
Sequence in context: A108296 A072100 A290075 * A091956 A107480 A345235
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 28 2005
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 April 17 21:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)