|
Search: id:A045883
|
|
| |
|
| 0, 1, 3, 9, 23, 57, 135, 313, 711, 1593, 3527, 7737, 16839, 36409, 78279, 167481, 356807, 757305, 1601991, 3378745, 7107015, 14913081, 31224263, 65244729, 136081863, 283348537, 589066695, 1222872633, 2535223751, 5249404473
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
Without the initial zero, PSumSIGN transform of A001787. - Michael Somos, Jul 10 2003
Number of rises (drops) in the compositions of n-2 with parts in N.
|
|
LINKS
|
S. Heubach and T. Mansour, Counting rises, levels, and drops in compositions
|
|
FORMULA
|
G.f.: x/((1+x)(1-2x)^2). a(n)=3a(n-1)-4a(n-3).
Convolution of A001045 and A000079. G.f. : x((1-2x)(1-x-2x^2)). - Paul Barry (pbarry(AT)wit.ie), May 21 2004
|
|
PROGRAM
|
(PARI) a(n)=if(n<-1, 0, ((3*n+1)*2^n-(-1)^n)/9)
|
|
CROSSREFS
|
Partial sums of A059570, bisection: A014916.
Row sums of triangle A094953.
Sequence in context: A018555 A064551 A005783 this_sequence A133654 A096574 A045650
Adjacent sequences: A045880 A045881 A045882 this_sequence A045884 A045885 A045886
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Edward Early (efedula(AT)mit.edu)
|
|
EXTENSIONS
|
Simpler description from Vladeta Jovovic (vladeta(AT)Eunet.yu), Jul 18 2002
|
|
|
Search completed in 0.002 seconds
|