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!)
A301428 Number of compositions (ordered partitions) of n into prime parts such that no two adjacent parts are equal (Carlitz compositions). 3
1, 0, 1, 1, 0, 3, 0, 4, 3, 3, 10, 3, 16, 12, 18, 35, 24, 64, 57, 90, 137, 136, 259, 270, 416, 573, 679, 1088, 1264, 1869, 2491, 3199, 4691, 5834, 8341, 11053, 14685, 20595, 26636, 37199, 49449, 66572, 91377, 120733, 166151, 221912, 300038, 407775, 544843, 743318, 996752 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
FORMULA
G.f.: 1/(1 - Sum_{k>=1} x^prime(k)/(1 + x^prime(k))).
EXAMPLE
a(7) = 4 because we have [7], [5, 2], [2, 5] and [2, 3, 2].
MATHEMATICA
nmax = 50; CoefficientList[Series[1/(1 - Sum[x^Prime[k]/(1 + x^Prime[k]), {k, 1, nmax}]), {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A322335 A245907 A104686 * A104514 A349915 A072480
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 21 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 April 24 15:37 EDT 2024. Contains 371960 sequences. (Running on oeis4.)