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!)
A084613 a(n) = sum of absolute values of coefficients of (1 + x - 2*x^2)^n. 5
1, 4, 14, 44, 124, 394, 1418, 4706, 14322, 40712, 135878, 468934, 1513650, 4502864, 13421408, 45258442, 152708520, 483810550, 1413811358, 4483843328, 15051967962, 49724234652, 154802614364, 461020649750, 1486736569982 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
MATHEMATICA
Table[Total[Abs[CoefficientList[Expand[(1+x-2x^2)^n], x]]], {n, 0, 30}] (* Harvey P. Dale, Apr 21 2011 *)
PROG
(PARI) for(n=0, 40, S=0; for(k=0, 2*n, t=polcoeff((1+x-2*x^2)^n, k, x); S=S+abs(t)); print1(S", "))
(Magma)
A084612:= func< n, k | (&+[Binomial(n, k-j)*Binomial(k-j, j)*(-2)^j: j in [0..k]]) >;
[(&+[Abs(A084612(n, k)): k in [0..2*n]]): n in [0..50]]; // G. C. Greubel, Mar 25 2023
(SageMath)
def A084612(n, k): return sum(binomial(n, k-j)*binomial(k-j, j)*(-2)^j for j in range(k+1))
def A084613(n): return sum(abs(A084612(n, k)) for k in range(2*n+1))
[A084613(n) for n in range(51)] # G. C. Greubel, Mar 25 2023
CROSSREFS
Sequence in context: A292718 A212688 A261451 * A099063 A057223 A007466
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jun 01 2003
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 21 02:29 EDT 2024. Contains 372720 sequences. (Running on oeis4.)