Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A124754
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A124754 Alternating sum of compositions in standard order. +0
2
0, 1, 2, 0, 3, 1, -1, 1, 4, 2, 0, 2, -2, 0, 2, 0, 5, 3, 1, 3, -1, 1, 3, 1, -3, -1, 1, -1, 3, 1, -1, 1, 6, 4, 2, 4, 0, 2, 4, 2, -2, 0, 2, 0, 4, 2, 0, 2, -4, -2, 0, -2, 2, 0, -2, 0, 4, 2, 0, 2, -2, 0, 2, 0, 7, 5, 3, 5, 1, 3, 5, 3, -1, 1, 3, 1, 5, 3, 1, 3, -3, -1, 1, -1, 3, 1, -1, 1, 5, 3, 1, 3, -1, 1, 3, 1, -5, -3, -1, -3, 1, -1, -3, -1, 3 (list; graph; listen)
OFFSET

0,3

COMMENT

The standard order of compositions is given by A066099.

The sum of row n is 2^{n-1} for n>0.

FORMULA

For a composition b(1),...,b(k), a(n) = Sum_{i=1}^k (-1)^{i-1} b(i).

a(2^k) = k+1. If n = 2^e_1 + 2^e_2 + k, 0 <= k < 2^e_2 < 2^e_1, then a(n) = (e_1 - e_2) - a(2^e_2 + k).

a(0) = 0; for n>0, a(n) = a(floor(n/2)) - A106400(n).

EXAMPLE

Composition number 11 is 2,1,1; 2-1+1 = 2, so a(11) = 2.

The table starts:

0

1

2 0

3 1 -1 1

CROSSREFS

Cf. A066099, A070939, A124756, A011782 (row lengths), A106400.

Sequence in context: A002187 A124756 A113504 this_sequence A047983 A070812 A061865

Adjacent sequences: A124751 A124752 A124753 this_sequence A124755 A124756 A124757

KEYWORD

easy,sign,tabf

AUTHOR

Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Nov 06 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research