OFFSET
2,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 2..1000
FORMULA
a(n) ~ c * d^n, where d = 1.9107639262818041675000243699745706859... (see A128695), c = 0.499300813712837808621944870186032611... - Vaclav Kotesovec, Sep 21 2019
MAPLE
b:= proc(n, l, k) option remember; `if`(n=0, 1, add(`if`(
i=l, 0, add(b(n-i*j, i, k), j=1..min(k, n/i))), i=1..n))
end:
a:= n-> b(n, 0, 2) -b(n, 0, 1):
seq(a(n), n=2..50); # Alois P. Heinz, Feb 08 2017
MATHEMATICA
b[n_, l_, k_] := b[n, l, k] = If[n == 0, 1, Sum[If[i == l, 0, Sum[b[n - i*j, i, k], {j, 1, Min[k, n/i]}]], {i, 1, n}]];
a[n_] := b[n, 0, 2] - b[n, 0, 1];
Table[a[n], {n, 2, 50}] (* Jean-François Alcover, May 21 2018, after Alois P. Heinz *)
nmax = 50; Drop[CoefficientList[Series[1/(1 - Sum[(x^k + x^(2*k))/(1 + x^k + x^(2*k)), {k, 1, nmax}]) - 1/(1 - Sum[x^k/(1 + x^k), {k, 1, nmax}]), {x, 0, nmax}], x], 2] (* Vaclav Kotesovec, Jul 07 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian G. Bower, Jan 23 2004
STATUS
approved