[go: up one dir, main page]

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!)
Revision History for A261983 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A261983 Number of compositions of n such that at least two adjacent parts are equal.
(history; published version)
#30 by Amiram Eldar at Mon Nov 20 11:29:02 EST 2023
STATUS

reviewed

approved

#29 by Joerg Arndt at Mon Nov 20 10:28:44 EST 2023
STATUS

proposed

reviewed

#28 by Jean-François Alcover at Mon Nov 20 05:14:21 EST 2023
STATUS

editing

proposed

#27 by Jean-François Alcover at Mon Nov 20 05:13:53 EST 2023
MATHEMATICA

b[n_, i_] := b[n, i] = If[n == 0, 0, Sum[If[i == j, Ceiling[2^(n-j-1)], b[n-j, j]], {j, 1, n}]];

a[n_] := b[n, 0];

Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Nov 20 2023, after Alois P. Heinz's Maple code *)

STATUS

approved

editing

#26 by Susanna Cuyler at Thu Jul 09 22:42:10 EDT 2020
STATUS

proposed

approved

#25 by Gus Wiseman at Tue Jul 07 09:00:52 EDT 2020
STATUS

editing

proposed

#24 by Gus Wiseman at Tue Jul 07 09:00:15 EDT 2020
EXAMPLE

From Gus Wiseman, Jul 07 2020: (Start)

The a(2) = 1 through a(6) = 18 compositions:

(1,1) (1,1,1) (2,2) (1,1,3) (3,3)

(1,1,2) (1,2,2) (1,1,4)

(2,1,1) (2,2,1) (2,2,2)

(1,1,1,1) (3,1,1) (4,1,1)

(1,1,1,2) (1,1,1,3)

(1,1,2,1) (1,1,2,2)

(1,2,1,1) (1,1,3,1)

(2,1,1,1) (1,2,2,1)

(1,1,1,1,1) (1,3,1,1)

(2,1,1,2)

(2,2,1,1)

(3,1,1,1)

(1,1,1,1,2)

(1,1,1,2,1)

(1,1,2,1,1)

(1,2,1,1,1)

(2,1,1,1,1)

(1,1,1,1,1,1)

(End)

#23 by Gus Wiseman at Tue Jul 07 08:54:47 EDT 2020
CROSSREFS

a(n) is the sumSum of positive-indexed terms of row n of A106356.

Compositions where each part is adjacent to an equal part are A114901.

Cf. A114901, A178470, A242882, A244164, A325534, A335448, A335452.

#22 by Gus Wiseman at Tue Jul 07 08:50:11 EDT 2020
CROSSREFS

Cf. A008965, A059966, A178470, A181796, A242882, A244164, A329738, A335448, A335452.

#21 by Gus Wiseman at Tue Jul 07 08:47:36 EDT 2020
CROSSREFS

Compositions with equal multiplicities are A098504.

Compositions with equal runsparts togethercontiguous are A274174.

Permutations of prime indices with runs together are A335448.

Cf. A008965, A059966, A178470, A181796, A242882, A244164, A329738, A335448, A335452.

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 29 09:16 EDT 2024. Contains 375511 sequences. (Running on oeis4.)