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!)
A298732 Number of compositions (ordered partitions) of n into parts > 1 such that no two adjacent parts are equal (Carlitz compositions). 1
1, 0, 1, 1, 1, 3, 3, 6, 7, 14, 18, 30, 45, 66, 107, 157, 245, 369, 569, 862, 1325, 2020, 3078, 4717, 7183, 10991, 16769, 25626, 39117, 59763, 91264, 139362, 212893, 325060, 496525, 758258, 1158079, 1768634, 2701162, 4125320, 6300303, 9622247, 14695253, 22443451, 34276405, 52348435 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
FORMULA
G.f.: 1/(1 - Sum_{k>=2} x^k/(1 + x^k)).
EXAMPLE
a(7) = 6 because we have [7], [5, 2], [4, 3], [3, 4], [2, 5] and [2, 3, 2].
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1,
add(`if`(j=i, 0, b(n-j, `if`(j<=n-j, j, 0))), j=2..n))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..50); # Alois P. Heinz, Jan 25 2018
MATHEMATICA
nmax = 45; CoefficientList[Series[1/(1 - Sum[x^k/(1 + x^k), {k, 2, nmax}]), {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A056508 A050065 A367394 * A078477 A336077 A360375
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 25 2018
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 August 12 15:11 EDT 2024. Contains 375113 sequences. (Running on oeis4.)