The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118196 Column 0 of the matrix inverse of triangle A117401(n,k) = (2^k)^(n-k). 2

%I #31 May 09 2023 08:55:38

%S 1,-1,1,-1,-1,31,-449,4223,377087,-79232513,13509592063,-74458331137,

%T -5113818652864513,11766261105083555839,-22128578595003966668801,

%U -88147548436159218430476289,3787186430286106428653327941631,-103331603080469761480767867413463041

%N Column 0 of the matrix inverse of triangle A117401(n,k) = (2^k)^(n-k).

%C The entire matrix inverse of triangle A117401 is determined by column 0 (this sequence): [A117401^-1](n,k) = a(n-k)*2^(k*(n-k)) for n>=k>=0. Any g.f. of the form: Sum_{k>=0} b(k)*x^k may be expressed as: Sum_{n>=0} c(n)*x^n/(1-2^n*x) by applying the inverse transformation: c(n) = Sum_{k=0..n} a(n-k)*b(k)*2^(k*(n-k)).

%H G. C. Greubel, <a href="/A118196/b118196.txt">Table of n, a(n) for n = 0..75</a>

%F G.f.: 1 = Sum_{n>=0} a(n)*x^n/(1-2^n*x).

%F 0^n = Sum_{k=0..n} a(k)*2^(k*(n-k)) for n>=0.

%F a(n) = (-1)*Sum_{j=0..n-1} 2^(j*(n-j))*a(j) with a(0) = 1 and a(1) = -1. - _G. C. Greubel_, Jun 30 2021

%F From _Geoffrey Critzer_, May 08 2023: (Start)

%F a(n) = Sum_{k=0..n} (-1)^k*A335330(n,k).

%F Sum_{n>=0} a(n)*z^n/A006125(n) = 1/E(z) where E(z) = Sum_{n>=0} z^n/A006125(n). (End)

%e Recurrence at n=4:

%e 0 = a(0)*(2^0)^4 +a(1)*(2^1)^3 +a(2)*(2^2)^2 +a(3)*(2^3)^1 +a(4)*(2^4)^0 = 1*(2^0) - 1*(2^3) + 1*(2^4) - 1*(2^3) - 1*(2^0).

%e The g.f. is illustrated by:

%e 1 = 1/(1-x) -1*x/(1-2*x) +1*x^2/(1-4*x) -1*x^3/(1-8*x) -1*x^4/(1-16*x) +31*x^5/(1-32*x) -449*x^6/(1-64*x) + 4223*x^7/(1-128*x) +...

%t (* First program *)

%t m = 17;

%t M = Table[If[k <= n, 2^((n-k)k), 0], {n, 0, m}, {k, 0, m}];

%t Inverse[M][[All, 1]] (* _Jean-François Alcover_, Jun 13 2019 *)

%t (* Second program *)

%t a[n_]:= a[n]= If[n<2, (-1)^n, -Sum[2^(j*(n-j))*a[j], {j, 0, n-1}]];

%t Table[a[n], {n, 0, 30}] (* _G. C. Greubel_, Jun 30 2021 *)

%o (PARI) {a(n) = local(T=matrix(n+1,n+1,r,c,if(r>=c,(2^(c-1))^(r-c)))); return((T^-1)[n+1,1])};

%o (Sage)

%o def A118196_list(len):

%o R, C = [1], [1]+[0]*(len-1)

%o for n in (1..len-1):

%o for k in range(n, 0, -1):

%o C[k] = C[k-1] / (2^k)

%o C[0] = -sum(C[k] for k in (1..n))

%o R.append(C[0]*2^(n*(n+1)/2))

%o return R

%o print(A118196_list(18)) # _Peter Luschny_, Feb 20 2016

%o (Sage)

%o @CachedFunction

%o def a(n): return (-1)^n if (n<2) else -sum(2^(j*(n-j))*a(j) for j in (0..n-1))

%o [a(n) for n in (0..30)] # _G. C. Greubel_, Jun 30 2021

%Y Cf. A117401, A118197, A335330, A006125.

%K sign

%O 0,6

%A _Paul D. Hanna_, Apr 15 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 00:45 EDT 2024. Contains 372555 sequences. (Running on oeis4.)