login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A115276 Number of partitions of {1,...,n} into block sizes not a multiple of 4. 5
1, 1, 2, 5, 14, 47, 173, 702, 3124, 14901, 76405, 417210, 2411466, 14731095, 94573911, 636575050, 4480990936, 32887804361, 251236573561, 1993395483746, 16397468177406, 139634290253907, 1229013163330947, 11166172488138322, 104593176077399652 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Alois P. Heinz, Table of n, a(n) for n = 0..500

FORMULA

E.g.f.: exp(sinh(x)+(cosh(x)-cos(x))/2).

MAPLE

a:= proc(n) option remember; `if`(n=0, 1, add(`if`(

      irem(j, 4)=0, 0, binomial(n-1, j-1)*a(n-j)), j=1..n))

    end:

seq(a(n), n=0..30);  # Alois P. Heinz, Mar 17 2015

MATHEMATICA

a[n_] := a[n] = If[n == 0, 1, Sum[If[Mod[j, 4] == 0, 0, Binomial[n - 1, j - 1]*a[n - j]], {j, 1, n}]]; Table[a[n], {n, 0, 30}] (* Jean-Fran├žois Alcover, Jan 20 2016, after Alois P. Heinz *)

CROSSREFS

Cf. A001935, A003724, A115275, A115277.

Sequence in context: A149903 A149904 A287888 * A327702 A317784 A096402

Adjacent sequences:  A115273 A115274 A115275 * A115277 A115278 A115279

KEYWORD

nonn

AUTHOR

Christian G. Bower, Jan 18 2006

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 04:35 EST 2020. Contains 331183 sequences. (Running on oeis4.)