OFFSET
0,9
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
a(n) ~ exp(2*Pi*sqrt(n/15)) / (4 * 3^(1/4) * sqrt(5*phi) * n^(3/4)), where phi = A001622 = (1+sqrt(5))/2 is the golden ratio. - Vaclav Kotesovec, Mar 10 2020
EXAMPLE
a(8) = 2 because 6+2 and 5+3 are the only partitions of 8 that satisfy the three conditions.
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, t,
`if`(i>n, 0, b(n, i+1, t)+b(n-i, i+2, 1-t)))
end:
a:= n-> b(n, 2, 1):
seq(a(n), n=0..80); # Alois P. Heinz, Nov 23 2017
MATHEMATICA
Table[Length@
Select[IntegerPartitions@n,
Min[-Differences@#] >= 2 && Min@# >= 2 && EvenQ@Length@# &], {n,
20}]
(* Second program: *)
b[n_, i_, t_] := b[n, i, t] = If[n == 0, t,
If[i > n, 0, b[n, i + 1, t] + b[n - i, i + 2, 1 - t]]];
a[n_] := b[n, 2, 1];
a /@ Range[0, 80] (* Jean-François Alcover, Jun 06 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
George Beck, May 13 2017
STATUS
approved