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.

Showing 1-5 of 5 results.

A100047 A Chebyshev transform of the Fibonacci numbers.

Original entry on oeis.org

0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1, 0, 1, 1, -1, -1, 0, -1, -1, 1, 1
Offset: 0

Views

Author

Paul Barry, Oct 31 2004

Keywords

Comments

Multiplicative with a(p^e) = (-1)^(e+1) if p = 2, 0 if p = 5, 1 if p == 1 or 9 (mod 10), (-1)^e if p == 3 or 7 (mod 10). - David W. Wilson, Jun 10 2005
This sequence is a divisibility sequence, i.e., a(n) divides a(m) whenever n divides m. Case P1 = 1, P2 = -1, Q = 1 of the 3 parameter family of 4th-order linear divisibility sequences found by Williams and Guy. - Peter Bala, Mar 24 2014
From Peter Bala, Mar 24 2014: (Start)
This is the particular case P1 = 1, P2 = -1, Q = 1 of the following results:
Let P1, P2 and Q be integers. Let alpha and beta denote the roots of the quadratic equation x^2 - 1/2*P1*x + 1/4*P2 = 0. Let T(n,x;Q) denote the bivariate Chebyshev polynomial of the first kind defined by T(n,x;Q) = 1/2*( (x + sqrt(x^2 - Q))^n + (x - sqrt(x^2 - Q))^n ) (when Q = 1, T(n,x;Q) reduces to the ordinary Chebyshev polynomial of the first kind T(n,x)). Then we have
1) The sequence A(n) := ( T(n,alpha;Q) - T(n,beta;Q) )/(alpha - beta) is a linear divisibility sequence of the fourth order.
2) A(n) belongs to the 3-parameter family of fourth-order divisibility sequences found by Williams and Guy.
3) The o.g.f. of the sequence A(n) is the rational function x*(1 - Q*x^2)/(1 - P1*x + (P2 + 2*Q)*x^2 - P1*Q*x^3 + Q^2*x^4).
4) The o.g.f. is the Chebyshev transform of the rational function x/(1 - P1*x + P2*x^2), where the Chebyshev transform takes the function A(x) to the function (1 - Q*x^2)/(1 + Q*x^2)*A(x/(1 + Q*x^2)).
5) Let q = sqrt(Q) and set a = sqrt( q + (P2)/(4*q) + (P1)/2 ) and b = sqrt( q + (P2)/(4*q) - (P1)/2 ). Then the o.g.f. of the sequence A(n) is the Hadamard product of the rational functions x/(1 - (a + b)*x + q*x^2) and x/(1 - (a - b)*x + q*x^2). Thus A(n) is the product of two (usually, non-integer) Lucas-type sequences.
6) A(n) = the bottom left entry of the 2 X 2 matrix 2*T(n,1/2*M;Q), where M is the 2 X 2 matrix [0, -P2; 1, P1].
For examples of the above see A006238, A054493, A078070, A092184, A098306, A100048, A108196, A138573, A152090 and A218134. (End)

Examples

			A Chebyshev transform of the Fibonacci numbers A000045: if A(x) is the g.f. of a sequence, map it to ((1-x^2)/(1+x^2))A(x/(1+x^2)).
The denominator is the 10th cyclotomic polynomial.
G.f. = x + x^2 - x^3 - x^4 - x^6 - x^7 + x^8 + x^9 + x^11 + x^12 - x^13 + ...
		

Crossrefs

Programs

  • Maple
    a := n -> (-1)^iquo(n, 5)*signum(mods(n, 5)):
    seq(a(n), n=0..89); # after Michael Somos, Peter Luschny, Dec 30 2018
  • Mathematica
    a[ n_] := {1, 1, -1, -1, 0, -1, -1, 1, 1, 0}[[Mod[ n, 10, 1]]]; (* Michael Somos, May 24 2015 *)
    a[ n_] := (-1)^Quotient[ n, 5] Sign[ Mod[ n, 5, -2]]; (* Michael Somos, May 24 2015 *)
    a[ n_] := (-1)^Quotient[n, 5] {1, 1, -1, -1, 0}[[Mod[ n, 5, 1]]]; (* Michael Somos, May 24 2015 *)
    LinearRecurrence[{1, -1, 1, -1}, {0, 1, 1, -1}, 90] (* Jean-François Alcover, Jun 11 2019 *)
  • PARI
    {a(n) = (-1)^(n\5) * [0, 1, 1, -1, -1][n%5+1]}; /* Michael Somos, May 24 2015 */
    
  • PARI
    {a(n) = (-1)^(n\5) * sign( centerlift( Mod(n, 5)))}; /* Michael Somos, May 24 2015 */

Formula

G.f.: x*(1 - x^2)/(1 - x + x^2 - x^3 + x^4).
a(n) = a(n-1) - a(n-2) + a(n-3) - a(n-4).
a(n) = n*Sum_{k=0..floor(n/2)} (-1)^k *binomial(n-k, k)*A000045(n-2*k)/(n -k).
From Peter Bala, Mar 24 2014: (Start)
a(n) = (T(n,alpha) - T(n,beta))/(alpha - beta), where alpha = (1 + sqrt(5))/4 and beta = (1 - sqrt(5))/4 and T(n,x) denotes the Chebyshev polynomial of the first kind.
a(n) = bottom left entry of the matrix T(n, M), where M is the 2 X 2 matrix [0, 1/4; 1, 1/2].
The o.g.f. is the Hadamard product of the rational functions x/(1 - 1/2*(sqrt(5) + 1)*x + x^2) and x/(1 - 1/2*(sqrt(5) - 1)*x + x^2). (End)
Euler transform of length 10 sequence [ 1, -2, 0, 0, -1, 0, 0, 0, 0, 1]. - Michael Somos, May 24 2015
a(n) = a(-n) = -a(n + 5) for all n in Z. - Michael Somos, May 24 2015
|A011558(n)| = |A080891(n)| = |a(n)| = A244895(n). - Michael Somos, May 24 2015

A218135 Norm of coefficients in the expansion of 1 / (1 - x - 2*I*x^2), where I^2=-1.

Original entry on oeis.org

1, 1, 5, 17, 45, 185, 533, 1921, 6205, 20745, 69541, 229585, 769613, 2552537, 8515125, 28340513, 94357853, 314301865, 1046284741, 3484682865, 11602442605, 38636214649, 128653931093, 428398492865, 1426535718525, 4750159951433, 15817576773605, 52670623373329
Offset: 0

Views

Author

Paul D. Hanna, Oct 21 2012

Keywords

Comments

The radius of convergence of g.f. equals (1 + sqrt(65) - sqrt(2)*sqrt(1+sqrt(65)))/16 = 0.30031050...

Examples

			G.f.: A(x) = 1 + 4*x + 17*x^2 + 80*x^3 + 369*x^4 + 1700*x^5 + 7841*x^6 +...
The terms equal the norm of the complex coefficients in the expansion:
1/(1-x-2*I*x^2) = 1 + x + (1 + 2*I)*x^2 + (1 + 4*I)*x^3 + (-3 + 6*I)*x^4 + (-11 + 8*I)*x^5 + (-23 + 2*I)*x^6 + (-39 - 20*I)*x^7 + (-43 - 66*I)*x^8 +...
so that
a(1) = 1, a(2) = 1 + 2^2, a(3) = 1 + 4^2, a(4) = 3^2 + 6^2, a(5) = 11^2 + 8^2, ...
		

Crossrefs

Programs

  • PARI
    {a(n)=norm(polcoeff(1/(1-x-2*I*x^2+x*O(x^n)), n))}
    for(n=0,30,print1(a(n),", "))

Formula

G.f.: (1-4*x^2) / (1 - x - 8*x^2 - 4*x^3 + 16*x^4).

A218138 Sum of absolute values of real and imaginary parts of the coefficients in the expansion of 1 / (1 - x - 2*I*x^2), where I^2=-1.

Original entry on oeis.org

1, 1, 3, 5, 9, 19, 25, 59, 109, 147, 359, 653, 899, 2205, 3915, 5715, 13545, 23347, 36229, 82923, 138781, 228653, 506215, 822381, 1437267, 3082029, 4856667, 9000947, 18714281, 28578195, 56172277, 113328667, 167517773, 349394765, 684430311, 977894349, 2166392995
Offset: 0

Views

Author

Paul D. Hanna, Oct 21 2012

Keywords

Examples

			G.f.: A(x) = 1 + x + 3*x^2 + 5*x^3 + 9*x^4 + 19*x^5 + 25*x^6 + 59*x^7 +...
The terms equal the norm of the complex coefficients in the expansion:
1/(1-x-2*I*x^2) = 1 + x + (1 + 2*I)*x^2 + (1 + 4*I)*x^3 + (-3 + 6*I)*x^4 + (-11 + 8*I)*x^5 + (-23 + 2*I)*x^6 + (-39 - 20*I)*x^7 + (-43 - 66*I)*x^8 + (-3 - 144*I)*x^9 + (129 - 230*I)*x^10 + (417 - 236*I)*x^11 + (877 + 22*I)*x^12 +...
so that
a(1) = 1, a(2) = 1 + 2, a(3) = 1 + 4, a(4) = 3 + 6, a(5) = 11 + 8, ...
		

Crossrefs

Programs

  • PARI
    {a(n)=local(Cn=polcoeff(1/(1-x-2*I*x^2+x*O(x^n)),n));abs(real(Cn)) + abs(imag(Cn))}
    for(n=0,40,print1(a(n),", "))

A140824 Expansion of (x-x^3)/(1-3*x+2*x^2-3*x^3+x^4).

Original entry on oeis.org

0, 1, 3, 6, 15, 41, 108, 281, 735, 1926, 5043, 13201, 34560, 90481, 236883, 620166, 1623615, 4250681, 11128428, 29134601, 76275375, 199691526, 522799203, 1368706081, 3583319040, 9381251041, 24560434083, 64300051206, 168339719535, 440719107401, 1153817602668
Offset: 0

Views

Author

N. J. A. Sloane, Sep 07 2009, based on email from R. K. Guy, Mar 09 2009

Keywords

Comments

Case P1 = 3, P2 = 0, Q = 1 of the 3 parameter family of 4th-order linear divisibility sequences found by Williams and Guy. - Peter Bala, Mar 25 2014

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{3, -2, 3, -1}, {0, 1, 3, 6}, 50] (* G. C. Greubel, Aug 08 2017 *)
  • PARI
    x='x+O('x^50); concat([0], Vec((x-x^3)/(1-3*x+2*x^2-3*x^3+x^4))) \\ G. C. Greubel, Aug 08 2017

Formula

a(0) = 0, a(1) = 1, a(2) = 3, a(3) = 6, a(n) - 3 a(n + 1) + 2 a(n + 2) - 3 a(n + 3) + a(n + 4) = 0.
From Peter Bala, Mar 25 2014: (Start)
a(n) = 2/3*( T(n,3/2) - T(n,0) ), where T(n,x) is a Chebyshev polynomial of the first kind.
a(n) = 1/3 * (A005248(n) - (i^n + (-i)^n)) = 1/3 * (Fibonacci(2*n-1) + Fibonacci(2*n+1) - (i^n + (-i)^n)).
a(n) = bottom left entry of the 2 X 2 matrix 2*T(n, 1/2*M), where M is the 2 X 2 matrix [0, 0; 1, 3].
The o.g.f. is the Hadamard product of the rational functions x/(1 - 1/sqrt(2)*(sqrt(5) + i)*x + x^2) and x/(1 - 1/sqrt(2)*(sqrt(5) - i)*x + x^2). See the remarks in A100047 for the general connection between Chebyshev polynomials and 4th-order linear divisibility sequences. (End)
a(n) = A099483(n) - A099483(n-2). - R. J. Mathar, Feb 10 2016

A218136 Norm of coefficients in the expansion of 1 / (1 - 3*x + 2*I*x^2), where I^2=-1.

Original entry on oeis.org

1, 9, 85, 873, 8845, 89505, 906373, 9177849, 92932285, 941010705, 9528455221, 96482899305, 976963204333, 9892500250113, 100169136977125, 1014289183762137, 10270454347410973, 103996211523970545, 1053041242918825621, 10662848608027795785, 107969503760905131085
Offset: 0

Views

Author

Paul D. Hanna, Oct 21 2012

Keywords

Comments

The radius of convergence of g.f. equals (9+sqrt(145) - 3*sqrt(2)*sqrt(9+sqrt(145)))/16 = 0.0987579662...

Examples

			G.f.: A(x) = 1 + 9*x + 85*x^2 + 873*x^3 + 8845*x^4 + 89505*x^5 + 906373*x^6 +...
The terms equal the norm of the complex coefficients in the expansion:
1/(1-3*x+2*I*x^2) = 1 + 3*x + (9 - 2*I)*x^2 + (27 - 12*I)*x^3 + (77 - 54*I)*x^4 + (207 - 216*I)*x^5 + (513 - 802*I)*x^6 + (1107 - 2820*I)*x^7 +...
so that
a(1) = 3^2, a(2) = 9^2 + 2^2, a(3) = 27^2 + 12^2, a(4) = 77^2 + 54^2, a(5) = 207^2 + 216^2, ...
		

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1-4x^2)/(1-9x-8x^2-36x^3+16x^4),{x,0,20}],x] (* or *) LinearRecurrence[{9,8,36,-16},{1,9,85,873},30] (* Harvey P. Dale, Mar 22 2023 *)
  • PARI
    {a(n)=norm(polcoeff(1/(1-3*x+2*I*x^2+x*O(x^n)), n))}
    for(n=0,30,print1(a(n),", "))

Formula

G.f.: (1-4*x^2) / (1 - 9*x - 8*x^2 - 36*x^3 + 16*x^4).
Showing 1-5 of 5 results.