OFFSET
0,5
COMMENTS
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..8000 (terms 0..1000 from Alois P. Heinz)
FORMULA
From Vaclav Kotesovec, Feb 20 2026: (Start)
a(n) ~ (2 - sqrt(2)) * exp(Pi*sqrt(2*n/3)) / (8*n*sqrt(3)).
a(n) ~ A000041(n) * (1 - 1/sqrt(2)). (End)
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0,
`if`(t<=0, 1, 0), `if`(i<1, 0, b(n, i-1, t)+
`if`(i>n, 0, b(n-i, i, t+(2*irem(i, 2)-1)))))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..80); # Alois P. Heinz, Mar 30 2014
MATHEMATICA
$RecursionLimit = 1000; b[n_, i_, t_] := b[n, i, t] = If[n == 0, If[t <= 0, 1, 0], If[i<1, 0, b[n, i-1, t] + If[i>n, 0, b[n-i, i, t+(2*Mod[i, 2]-1)]]]]; a[n_] := b[n, n, 0]; Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Jun 30 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 21 2010
STATUS
approved
