proposed
approved
proposed
approved
editing
proposed
max = 38; f[x_] := Sum[ a[n]*x^n, {n, 0, max}]; coes = CoefficientList[ Series[f[x] - ((1 + x)*f[x^2])^2, {x, 0, max}], x]; sol = Solve[ Thread[coes == 0]]; A073708 = CoefficientList[ f[x] /. sol[[2]], x] (* Jean-François Alcover, Jan 04 2013 *)
A073708list[n_] := Module[{m = 1, A = 1}, While[m <= n, m = 2 m; A = ((1 + x)*(A /. x -> x^2))^2] + O[x]^m; CoefficientList[A, x][[1 ;; n]]]; A073708list[50] (* Jean-François Alcover, Apr 21 2016, adapted from PARI *)
approved
editing
Edited by _Michael Somos, _, May 03, 2003
editing
approved
(Haskell)
a073708 n = a073708_list !! n
a073708_list = conv a073707_list [] where
conv (v:vs) ws = (sum $ zipWith (*) ws' $ reverse ws') : conv vs ws'
where ws' = v : ws
-- Reinhard Zumkeller, Jun 13 2013
approved
editing
editing
approved
Edited by Paul D. Hanna, Jan 04 2013
approved
editing
editing
approved
Paul D. Hanna, <a href="/A073708/b073708.txt">Table of n, a(n) for n = 0..1000</a>