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!)
A164356 Expansion of (1 - x^2)^4 / ((1 - x)^4 * (1 - x^4)) in powers of x. 2

%I #15 Mar 12 2021 22:24:46

%S 1,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,

%T 6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,

%U 2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2

%N Expansion of (1 - x^2)^4 / ((1 - x)^4 * (1 - x^4)) in powers of x.

%H G. C. Greubel, <a href="/A164356/b164356.txt">Table of n, a(n) for n = 0..1000</a>

%H Michael Somos, <a href="http://grail.eecs.csuohio.edu/~somos/rfmc.html">Rational Function Multiplicative Coefficients</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,-1,1).

%F Euler transform of length 4 sequence [4, -4, 0, 1].

%F Moebius transform is length 4 sequence [4, 2, 0, -4].

%F a(n) = 4 * b(n) unless n=0 and b(n) is multiplicative with b(2) = 3/2, b(2^e) = 1/2 if e>1, b(p^e) = 1 if p>2.

%F a(n) = a(-n) for all n in Z. a(n+4) = a(n) unless n=0 or n=-4. a(2*n + 1) = 4. a(4*n) = 2 unless n=0. a(4*n + 2) = 6.

%F G.f.: -1 + 4 / (1 - x) - 2 / (1 + x^2).

%F a(n) = 2 * A068073(n) unless n=0. - _Michael Somos_, Apr 17 2015

%e G.f. = 1 + 4*x + 6*x^2 + 4*x^3 + 2*x^4 + 4*x^5 + 6*x^6 + 4*x^7 + 2*x^8 + ...

%t a[ n_] := -Boole[n == 0] + 4 - If[ EvenQ[n], (-1)^(n/2) 2, 0]; (* _Michael Somos_, Apr 17 2015 *)

%t a[ n_] := SeriesCoefficient[ -1 + 4/(1 - x) - 2/(1 + x^2), {x, 0, Abs@n}]; (* _Michael Somos_, Jan 07 2019 *)

%o (PARI) {a(n) = -(n==0) + 4 - if( n%2 == 0, (-1)^(n/2) * 2, 0)};

%Y Cf. A068073.

%K nonn,easy

%O 0,2

%A _Michael Somos_, Aug 13 2009

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 April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)