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.

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

Original entry on oeis.org

0, 1, 6, 38, 252, 1705, 11628, 79547, 544824, 3733234, 25585230, 175356611, 1201893336, 8237850373, 56462937882, 387002396990, 2652553009008, 18180866487757, 124613506702404, 854113665498719, 5854182112700460
Offset: 0

Views

Author

R. J. Mathar, Aug 11 2012

Keywords

Comments

From Peter Bala, Aug 05 2019: (Start)
Let U(n;P,Q), where P and Q are integer parameters, denote the Lucas sequence of the first kind. Then, excluding the case P = -1, the sequence ( U(n;P,1) + U(2*n;P,1) )/(P + 1) is a fourth-order linear divisibility sequence with o.g.f. x*(1 - 2*(P - 1)*x + x^2)/((1 - P*x + x^2)*(1 - (P^2 - 2)*x + x^2)). This is the case P = 3. See A000027 (P = 2), A165998 (P = -2) and A238536 (P = -3).
More generally, the sequence U(n;P,1) + U(2*n;P,1) + ... + U(k*n;P,1) is a linear divisibility sequence of order 2*k. As an example, see A273625 (P = 3, k = 3 and then sequence normalized with initial term 1). (End)

Crossrefs

Programs

  • Magma
    I:=[0,1,6,38]; [n le 4 select I[n] else 10*Self(n-1)-23*Self(n-2)+10*Self(n-3)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Dec 23 2012
    
  • Magma
    /* By definition: */ m:=20; R:=PowerSeriesRing(Integers(), m); [0] cat Coefficients(R!((1-4*x+x^2)/((x^2-7*x+1)*(x^2-3*x+1)))); // Bruno Berselli, Dec 24 2012
    
  • Maple
    A215466 := proc(n)
        if type(n,'even') then
            A000032(n)*combinat[fibonacci](3*n)/4 ;
        else
            combinat[fibonacci](n)*A000032(3*n)/4 ;
        end if;
    end proc:
  • Mathematica
    CoefficientList[Series[x*(1 - 4*x + x^2)/((x^2 - 7*x + 1)*(x^2 - 3*x + 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 23 2012 *)
    LinearRecurrence[{10,-23,10,-1},{0,1,6,38},30] (* Harvey P. Dale, Nov 02 2015 *)
  • PARI
    a(n)=([0,1,0,0; 0,0,1,0; 0,0,0,1; -1,10,-23,10]^n*[0;1;6;38])[1,1] \\ Charles R Greathouse IV, Nov 13 2015
    
  • PARI
    {a(n) = my(w=quadgen(5)^(2*n)); imag(w^2+w)/4}; /* Michael Somos, Dec 29 2022 */

Formula

a(n) = L(n)*F(3n)/4 if n even, = F(n)*L(3n)/4 if n odd, where L=A000032, F=A000045.
a(n) = 3*A004187(n)/4 + A001906(n)/4.
a(n) = 10*a(n-1) - 23*a(n-2) + 10*a(n-3) - a(n-4), a(0)=0, a(1)=1, a(2)=6, a(3)=38. - Harvey P. Dale, Nov 02 2015
a(n) = (1/4)*(Fibonacci(2*n) + Fibonacci(4*n)) = (1/4)*(A001906(n) + A033888(n)). - Peter Bala, Aug 05 2019
E.g.f.: exp(5*x/2)*(cosh(x)+exp(x)*cosh(sqrt(5)*x))*sinh(sqrt(5)*x/2)/sqrt(5). - Stefano Spezia, Aug 17 2019
a(n) = -a(-n) for all n in Z. - Michael Somos, Dec 29 2022

A238601 A sixth-order linear divisibility sequence related to the Fibonacci numbers: a(n) := (1/10)*Fibonacci(3*n)*Fibonacci(5*n)/Fibonacci(n).

Original entry on oeis.org

1, 44, 1037, 32472, 915305, 26874892, 776952553, 22595381424, 655633561309, 19040507781020, 552780012054689, 16050219184005336, 466002944275859873, 13530204273746536948, 392841165312292809085, 11405932444267712654688, 331164788382150547106857, 9615185834308570310716196
Offset: 1

Views

Author

Peter Bala, Mar 06 2014

Keywords

Comments

Let P and Q be relatively prime integers. The Lucas sequence U(n) (which depends on P and Q) is an integer sequence that satisfies the recurrence equation a(n) = P*a(n-1) - Q*a(n-2) with the initial conditions U(0) = 0, U(1) = 1. The sequence {U(n)}n>=1 is a strong divisibility sequence, i.e., gcd(U(n),U(m)) = |U(gcd(n,m))|. It follows that {U(n)} is a divisibility sequence, i.e., U(n) divides U(m) whenever n divides m and U(n) <> 0.
It can be shown that if p and q are a pair of relatively prime positive integers, and if U(n) never vanishes, then the sequence {U(p*n)*U(q*n)/U(n)}n>=1 is a linear divisibility sequence of order 2*min(p,q). For a proof and a generalization of this result see the Bala link.
Here we take p = 3 and q = 5 with P = 1 and Q = -1, for which U(n) is the sequence of Fibonacci numbers, A000045, and normalize the sequence {U(3*n)*U(5*n)/U(n)}n>=1 to have the initial term 1.
For other sequences of this type see A238600, A238602 and A238603. See also A238536.
Since Fibonacci(n) can be defined for all n, so can this sequence. - N. J. A. Sloane, May 07 2017

Examples

			G.f. = x + 44*x^2 + 1037*x^3 + 32472*x^4 + 915305*x^5 + 26874892*x^6 + ... - _Michael Somos_, May 07 2017
		

Crossrefs

Programs

  • Magma
    [(Fibonacci(3*n) + (-1)^n*Fibonacci(5*n) + Fibonacci(7*n))/10: n in [1..30]]; // G. C. Greubel, Aug 07 2018
  • Maple
    with(combinat):
    seq(1/10*fibonacci(3*n)*fibonacci(5*n)/fibonacci(n), n = 1..20);
  • Mathematica
    Table[(1/10)*(Fibonacci[3*n] + (-1)^n*Fibonacci[5*n] + Fibonacci[7*n]), {n, 0, 50}] (* G. C. Greubel, Aug 07 2018 *)
  • PARI
    {a(n) = if(n, fibonacci(3*n) * fibonacci(5*n) / (10 * fibonacci(n)), 0)} /* Michael Somos, May 07 2017 */
    

Formula

a(n) = (1/10)*(Fibonacci(3*n) + (-1)^n*Fibonacci(5*n) + Fibonacci(7*n)).
The sequence can be extended to negative indices using a(-n) = (-1)^(n+1)*a(n).
O.g.f. x*(1 + 22*x - 181*x^2 - 22*x^3 + x^4)/( (1 - 4*x - x^2)*(1 + 11*x - x^2)*(1 - 29*x - x^2) ).
Recurrence equation: a(n) = 22*a(n-1) + 250*a(n-2) - 1320*a(n-3) - 250*a(n-4) + 22*a(n-5) + a(n-6).

A238602 A sixth-order linear divisibility sequence related to the Pell numbers: a(n) := (1/60)*Pell(3*n)*Pell(4*n)/Pell(n).

Original entry on oeis.org

1, 238, 45507, 9063516, 1792708805, 355009117386, 70287911575687, 13916722851826872, 2755438412296182921, 545562971271797876390, 108018710075587599558731, 21387159127038457710621972, 4234549485214861760195346253, 838419411023095574089504928386
Offset: 1

Views

Author

Peter Bala, Mar 06 2014

Keywords

Comments

Let P and Q be relatively prime integers. The Lucas sequence U(n) (which depends on P and Q) is an integer sequence that satisfies the recurrence equation a(n) = P*a(n-1) - Q*a(n-2) with the initial conditions U(0) = 0, U(1) = 1. The sequence {U(n)}n>=1 is a strong divisibility sequence, i.e., gcd(U(n),U(m)) = |U(gcd(n,m))|. It follows that {U(n)} is a divisibility sequence, i.e., U(n) divides U(m) whenever n divides m and U(n) <> 0.
It can be shown that if p and q are a pair of relatively prime positive integers, and if U(n) never vanishes, then the sequence {U(p*n)*U(q*n)/U(n)}n>=1 is a linear divisibility sequence of order 2*min(p,q). For a proof and a generalization of this result see the Bala link.
Here we take p = 3 and q = 4 with P = 2 and Q = -1, for which U(n) is the sequence of Pell numbers, A000129, and normalize the sequence {U(3*n)*U(4*n)/U(n)}n>=1 to have the initial term 1.
For other sequences of this type see A238600, A238601 and A238603. See also A238536.

Crossrefs

Programs

  • Magma
    m:=30; R:=PowerSeriesRing(Integers(), m); Coefficients(R!(x*(1 +68*x-698*x^2+68*x^3+x^4)/((1-6*x+x^2)*(1+34*x+x^2)*(1-198*x+x^2)))); // G. C. Greubel, Aug 07 2018
  • Mathematica
    Table[(1/60)*(Fibonacci[2*n, 2] + (-1)^n*Fibonacci[4*n, 2] + Fibonacci[6*n, 2]), {n, 1, 50}] (* G. C. Greubel, Aug 07 2018 *)
  • PARI
    x='x+O('x^30); Vec(x*(1+68*x-698*x^2+68*x^3+x^4)/((1-6*x+x^2)*(1 + 34*x+x^2)*(1-198*x+x^2))) \\ G. C. Greubel, Aug 07 2018
    

Formula

a(n) = (1/60)*( Pell(2*n) + (-1)^n*Pell(4*n) + Pell(6*n) ).
The sequence can be extended to negative indices using a(-n) = -a(n).
O.g.f. x*(1 + 68*x - 698*x^2 + 68*x^3 + x^4)/( (1 - 6*x + x^2)*(1 + 34*x + x^2)*(1 - 198*x + x^2) ).
Recurrence equation: a(n) = 170*a(n-1) + 5745*a(n-2) - 40052*a(n-3) + 5745*a(n-4) + 170*a(n-5) - a(n-6).

A238603 A sixth-order linear divisibility sequence related to A000225: a(n) := (1/105)*(2^(3*n) - 1)*(2^(4*n) - 1)/(2^n - 1).

Original entry on oeis.org

1, 51, 2847, 170391, 10555655, 664857063, 42215949223, 2691226507047, 171901443816999, 10990938133564455, 703076406514657319, 44985901769992495143, 2878746218051469266983, 184228512166784552153127, 11790264946382521291370535, 754565442462197107544125479
Offset: 1

Views

Author

Peter Bala, Mar 06 2014

Keywords

Comments

Let P and Q be relatively prime integers. The Lucas sequence U(n) (which depends on P and Q) is an integer sequence that satisfies the recurrence equation a(n) = P*a(n-1) - Q*a(n-2) with the initial conditions U(0) = 0, U(1) = 1. The sequence {U(n)}n>=1 is a strong divisibility sequence, i.e., gcd(U(n),U(m)) = |U(gcd(n,m))|. It follows that {U(n)} is a divisibility sequence, i.e., U(n) divides U(m) whenever n divides m and U(n) <> 0.
It can be shown that if p and q are a pair of relatively prime positive integers, and if U(n) never vanishes, then the sequence {U(p*n)*U(q*n)/U(n)}n>=1 is a linear divisibility sequence of order 2*min(p,q). For a proof and a generalization of this result see the Bala link.
Here we take p = 3 and q = 4 with P = 3 and Q = 2, for which U(n) is the sequence A000225 (sometimes called the Mersenne numbers), and normalize the sequence {U(3*n)*U(4*n)/U(n)}n>=1 to have the initial term 1.
For other sequences of this type see A238600, A238601 and A238602. See also A238536.

Examples

			G.f. = x + 51*x^2 + 2847*x^3 + 170391*x^4 + 10555655*x^5 + 664857063*x^6 + ... - _Michael Somos_, May 07 2017
		

Crossrefs

Programs

  • Magma
    [(1/105)*(64^n + 32^n + 16^n - 4^n - 2^n - 1): n in [1..50]]; // G. C. Greubel, Aug 07 2018
  • Maple
    seq(1/105*(2^(3*n)-1)*(2^(4*n)-1)/(2^n-1), n = 1..20);
  • Mathematica
    Table[(1/105)*(64^n + 32^n + 16^n - 4^n - 2^n - 1), {n, 1, 50}] (* G. C. Greubel, Aug 07 2018 *)
  • PARI
    {a(n) = if( n, (8^n - 1) * (16^n - 1) / (105 * (2^n - 1)), 0)}; /* Michael Somos, May 07 2017 */
    

Formula

a(n) = (1/105)*(64^n + 32^n + 16^n - 4^n - 2^n - 1).
O.g.f.: x*(4096*x^4 - 4352*x^3 + 1160*x^2 - 68*x + 1 )/( (1-x)*(1-2*x)(1-4*x)*(1-16*x)*(1-32*x)*(1-64*x) ).
The formula for a(n) may be used to define it for all n in Z, and then we have a(n) = -(64)^n * a(-n). - Michael Somos, May 07 2017

A273625 a(n) = (1/12)*(Fibonacci(2*n) + Fibonacci(4*n) + Fibonacci(6*n)).

Original entry on oeis.org

1, 14, 228, 3948, 69905, 1248072, 22352707, 400808856, 7190208684, 129009258070, 2314882621811, 41538234954384, 745368939599413, 13375072472343218, 240005728531700340, 4306726622089196592, 77281063743045412517, 1386752354089549205976, 24884260852952644076119
Offset: 1

Views

Author

Peter Bala, May 31 2016

Keywords

Comments

This is a divisibility sequence, that is, if n divides m then a(n) divides a(m). The sequence satisfies a sixth-order linear recurrence. More generally, the sequence s(n) := Fibonacci(2*n) + Fibonacci(4*n) + ... + Fibonacci(2*k*n) is a divisibility sequence for k = 1,2,3,.... See A215466 for the case k = 2. Cf. A273623, A273624.
From Peter Bala, Aug 05 2019: (Start)
Let U(n;P,Q), where P and Q are integer parameters, denote the Lucas sequence of the first kind. Then, excluding the cases P = -1 and P = 0, the sequence ( U(n;P,1) + U(2*n;P,1) + U(3*n;P,1))/(P^2 + P) is a sixth-order linear divisibility sequence with o.g.f. x*(1 - 2*(P^2 - 2)*x + (3*P^3 - 3*P^2 - 8*P + 10)*x^2 - 2*(P^2 - 2)*x^3 + x^4)/((1 - P*x + x^2)*(1 - (P^2 - 2)*x + x^2)*(1 - P*(P^2 - 3)*x + x^2)). This is the case P = 3.
More generally, the sequence U(n;P,1) + U(2*n;P,1) + ... + U(k*n;P,1) is a linear divisibility sequence of order 2*k. See, for example, A215466 with P = 3, k = 2. (End)

Crossrefs

Programs

  • Magma
    [1/12*(Fibonacci(2*n)+Fibonacci(4*n)+Fibonacci(6*n)): n in [1..25]]; // Vincenzo Librandi, Jun 02 2016
    
  • Maple
    #A273625
    with(combinat):
    seq(1/12*(fibonacci(2*n) + fibonacci(4*n) + fibonacci(6*n)), n = 1..20);
  • Mathematica
    LinearRecurrence[{28, -204, 434, -204, 28, -1},{1, 14, 228, 3948, 69905, 1248072}, 100] (* G. C. Greubel, Jun 02 2016 *)
    Table[1/12 (Fibonacci[2 n] + Fibonacci[4 n] + Fibonacci[6 n]), {n, 1, 30}] (* Vincenzo Librandi, Jun 02 2016 *)
  • PARI
    A001906(n)=fibonacci(2*n)
    a(n)=(A001906(n)+A001906(2*n)+A001906(3*n))/12 \\ Charles R Greathouse IV, Jun 08 2016

Formula

a(n) = -a(-n).
O.g.f.: x*(x^4 - 14*x^3 + 40*x^2 - 14*x + 1)/((x^2 - 3*x + 1)*(x^2 - 7*x + 1)*(x^2 - 18*x + 1)).
a(n) = 28*a(n-1) - 204*a(n-2) + 434*a(n-3) - 204*a(n-4) + 28*a(n-5) - a(n-6). - G. C. Greubel, Jun 02 2016
Showing 1-5 of 5 results.