login
Number of partitions of n, where the difference between the number of odd parts and the number of even parts is 8.
2

%I #5 Mar 30 2014 18:23:27

%S 1,0,1,1,2,2,4,4,7,8,12,14,21,24,34,41,55,66,87,105,135,165,206,252,

%T 313,380,466,567,688,833,1006,1212,1454,1748,2083,2495,2963,3532,4177,

%U 4965,5848,6924,8134,9593,11236,13212,15429,18082,21070,24613,28611,33332

%N Number of partitions of n, where the difference between the number of odd parts and the number of even parts is 8.

%C With offset 16 number of partitions of n, where the difference between the number of odd parts and the number of even parts is -8.

%H Alois P. Heinz, <a href="/A240017/b240017.txt">Table of n, a(n) for n = 8..1000</a>

%p b:= proc(n, i, t) option remember; `if`(abs(t)>n, 0,

%p `if`(n=0, 1, `if`(i<1, 0, b(n, i-1, t)+

%p `if`(i>n, 0, b(n-i, i, t+(2*irem(i, 2)-1))))))

%p end:

%p a:= n-> b(n$2, -8):

%p seq(a(n), n=8..80);

%Y Column k=8 of A240009.

%K nonn

%O 8,5

%A _Alois P. Heinz_, Mar 30 2014