cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A171792 G.f. A(x) satisfies: A(x) = (x + A(x+x^2))/2 with A(0)=0.

Original entry on oeis.org

1, 1, 2, 7, 34, 214, 1652, 15121, 160110, 1925442, 25924260, 386354366, 6314171932, 112286067892, 2158562109096, 44605949528355, 986049177712850, 23218586050641090, 580198948211652348, 15334750335623526670, 427408226085246086676, 12528910074528593086980
Offset: 1

Views

Author

Paul D. Hanna, Jan 25 2010

Keywords

Examples

			G.f.: A(x) = x + x^2 + 2*x^3 + 7*x^4 + 34*x^5 + 214*x^6 +...
A(x+x^2) = x + 2*x^2 + 4*x^3 + 14*x^4 + 68*x^5 + 428*x^6 + ...
		

Crossrefs

Cf. A122888.

Programs

  • Mathematica
    Nest[Append[#1, Sum[Binomial[k, #2 - k] #[[k]], {k, Floor[#2/2], #2 - 1}]] & @@ {#, Length@ # + 1} &, {1}, 19] (* Michael De Vlieger, Dec 06 2018 *)
  • Maxima
    a(n):=if n=1 then 1 else sum(binomial(k,n-k)*a(k),k,floor(n/2),n-1); /* Vladimir Kruchinin, Jun 25 2011 */
  • PARI
    {a(n)=local(A=x+x^2);for(i=1,n*(n+1)/2,A=(x+subst(A,x,x+x^2+x*O(x^n)))/2);ceil(polcoeff(A,n))}
    
  • PARI
    {a(n)=if(n==1,1,polcoeff(sum(m=1,n-1,a(m)*(x+x^2+x*O(x^n))^m),n))} \\ Paul D. Hanna, Jan 30 2010
    

Formula

G.f.: A(x) = Sum_{n>=0} G_{n}(x)/2^(n+1) where G_{n}(x) is the n-th iteration of (x+x^2) defined by G_{n}(x) = G_{n-1}(x+x^2) with G_0(x)=x.
a(k) = Sum_{n>=0} A122888(n,k)/2^(n+1).
a(k) is odd iff k is a power of 2: a(2^n) == 1 (mod 2) for n>=0.
Conjecture: a(n) = Sum_{r=ceiling(n/2)..n-1} binomial(r, n-r)*a(r) with a(1) = 1. See [Aspenberg, Perez]. - Michel Marcus, Jun 26 2019