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-6 of 6 results.

A023039 a(n) = 18*a(n-1) - a(n-2).

Original entry on oeis.org

1, 9, 161, 2889, 51841, 930249, 16692641, 299537289, 5374978561, 96450076809, 1730726404001, 31056625195209, 557288527109761, 10000136862780489, 179445175002939041, 3220013013190122249, 57780789062419261441
Offset: 0

Views

Author

Keywords

Comments

The primitive Heronian triangle 3*a(n) +- 2, 4*a(n) has the latter side cut into 2*a(n) +- 3 by the corresponding altitude and has area 10*a(n)*A060645(n). - Lekraj Beedassy, Jun 25 2002
Chebyshev polynomials T(n,x) evaluated at x=9.
{a(n)} gives all (unsigned, integer) solutions of Pell equation a(n)^2 - 80*b(n)^2 = +1 with b(n) = A049660(n), n >= 0.
{a(n)} gives all possible solutions for x in Pell equation x^2 - D*y^2 = 1 for D=5, D=20 and D=80. The corresponding values for y are A060645 (D=5), A207832 (D=20) and A049660 (D=80). - Herbert Kociemba, Jun 05 2022
Also gives solutions to the equation x^2 - 1 = floor(x*r*floor(x/r)) where r=sqrt(5). - Benoit Cloitre, Feb 14 2004
Appears to give all solutions > 1 to the equation: x^2 = ceiling(x*r*floor(x/r)) where r=sqrt(5). - Benoit Cloitre, Feb 24 2004
For all terms x of the sequence, 5*x^2 - 5 is a square, A004292(n)^2.
The a(n) are the x-values in the nonnegative integer solutions of x^2 - 5y^2 = 1, see A060645(n) for the corresponding y-values. - Sture Sjöstedt, Nov 29 2011
Rightmost digits alternate repeatedly: 1 and 9 in fact, a(2) = 18*9 - 1 == 1 (mod 10); a(3) = 18*1 - 9 == 9 (mod 10) therefore a(2n) == 1 (mod 10), a(2n+1) == 9 (mod 10). - Carmine Suriano, Oct 03 2013

Examples

			G.f. = 1 + 9*x + 161*x^2 + 2889*x^3 + 51841*x4 + 930249*x^5 + 16692641*x^6 + ...
		

Crossrefs

Row 2 of array A188645.
Row 4 of A322790.

Programs

  • Magma
    I:=[1, 9]; [n le 2 select I[n] else 18*Self(n-1)-Self(n-2): n in [1..20]]; // Vincenzo Librandi, Feb 13 2012
    
  • Maple
    a := n -> hypergeom([n, -n], [1/2], -4):
    seq(simplify(a(n)), n=0..16); # Peter Luschny, Jul 26 2020
  • Mathematica
    LinearRecurrence[{18, -1}, {1, 9}, 50] (* Sture Sjöstedt, Nov 29 2011 *)
    CoefficientList[Series[(1-9*x)/(1-18*x+x^2), {x, 0, 50}], x] (* G. C. Greubel, Dec 19 2017 *)
  • PARI
    {a(n) = fibonacci(6*n) / 2 + fibonacci(6*n - 1)}; /* Michael Somos, Aug 11 2009 */
    
  • PARI
    x='x+O('x^30); Vec((1-9*x)/(1-18*x+x^2)) \\ G. C. Greubel, Dec 19 2017

Formula

a(n) ~ (1/2)*(sqrt(5) + 2)^(2*n). - Joe Keane (jgk(AT)jgk.org), May 15 2002
Limit_{n->infinity} a(n)/a(n-1) = phi^6 = 9 + 4*sqrt(5). - Gregory V. Richardson, Oct 13 2002
a(n) = T(n, 9) = (S(n, 18) - S(n-2, 18))/2, with S(n, x) := U(n, x/2) and T(n, x), resp. U(n, x), are Chebyshev's polynomials of the first, resp. second, kind. See A053120 and A049310. S(-2, x) := -1, S(-1, x) := 0, S(n, 18)=A049660(n+1).
a(n) = sqrt(80*A049660(n)^2 + 1) (cf. Richardson comment).
a(n) = ((9 + 4*sqrt(5))^n + (9 - 4*sqrt(5))^n)/2.
G.f.: (1 - 9*x)/(1 - 18*x + x^2).
a(n) = cosh(2*n*arcsinh(2)). - Herbert Kociemba, Apr 24 2008
a(n) = A001077(2*n). - Michael Somos, Aug 11 2009
From Johannes W. Meijer, Jul 01 2010: (Start)
a(n) = 2*A167808(6*n+1) - A167808(6*n+3).
Limit_{k->infinity} a(n+k)/a(k) = a(n) + A060645(n)*sqrt(5).
Limit_{n->infinity} a(n)/A060645(n) = sqrt(5).
(End)
a(n) = (1/2)*A087215(n) = (1/2)*(sqrt(5) + 2)^(2*n) + (1/2)*(sqrt(5) - 2)^(2*n).
Sum_{n >= 1} 1/( a(n) - 5/a(n) ) = 1/8. Compare with A005248, A002878 and A075796. - Peter Bala, Nov 29 2013
a(n) = 2*A115032(n-1) - 1 = S(n, 18) - 9*S(n-1, 18), with A115032(-1) = 1, and see the above formula with S(n, 18) using its recurrence. - Wolfdieter Lang, Aug 22 2014
a(n) = A128052(3n). - A.H.M. Smeets, Oct 02 2017
a(n) = A049660(n+1) - 9*A049660(n). - R. J. Mathar, May 24 2018
a(n) = hypergeom([n, -n], [1/2], -4). - Peter Luschny, Jul 26 2020
a(n) = L(6*n)/2 for L(n) the Lucas sequence A000032(n). - Greg Dresden, Dec 07 2021
a(n) = cosh(6*n*arccsch(2)). - Peter Luschny, May 25 2022

Extensions

Chebyshev and Pell comments from Wolfdieter Lang, Nov 08 2002
Sture Sjöstedt's comment corrected and reformulated by Wolfdieter Lang, Aug 24 2014

A322699 Square array A(n,k), n >= 0, k >= 0, read by antidiagonals, where A(n,k) is 1/2 * (-1 + Sum_{j=0..k} binomial(2*k,2*j)*(n+1)^(k-j)*n^j).

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 0, 8, 2, 0, 0, 49, 24, 3, 0, 0, 288, 242, 48, 4, 0, 0, 1681, 2400, 675, 80, 5, 0, 0, 9800, 23762, 9408, 1444, 120, 6, 0, 0, 57121, 235224, 131043, 25920, 2645, 168, 7, 0, 0, 332928, 2328482, 1825200, 465124, 58080, 4374, 224, 8, 0
Offset: 0

Views

Author

Seiichi Manyama, Dec 23 2018

Keywords

Examples

			Square array begins:
   0, 0,   0,    0,      0,       0,        0, ...
   0, 1,   8,   49,    288,    1681,     9800, ...
   0, 2,  24,  242,   2400,   23762,   235224, ...
   0, 3,  48,  675,   9408,  131043,  1825200, ...
   0, 4,  80, 1444,  25920,  465124,  8346320, ...
   0, 5, 120, 2645,  58080, 1275125, 27994680, ...
   0, 6, 168, 4374, 113568, 2948406, 76545000, ...
		

Crossrefs

Columns 0-5 give A000004, A001477, A033996, A322675, A322677, A322745.
Main diagonal gives A322746.
Cf. A173175 (A(n,2*n)), A322790.

Programs

  • Mathematica
    Unprotect[Power]; 0^0 := 1; Protect[Power]; Table[(-1 + Sum[Binomial[2 k, 2 j] (# + 1)^(k - j)*#^j, {j, 0, k}])/2 &[n - k], {n, 0, 9}, {k, n, 0, -1}] // Flatten (* Michael De Vlieger, Jan 01 2019 *)
    nmax = 9; row[n_] := LinearRecurrence[{4n+3, -4n-3, 1}, {0, n, 4n(n+1)}, nmax+1]; T = Array[row, nmax+1, 0]; A[n_, k_] := T[[n+1, k+1]];
    Table[A[n-k, k], {n, 0, nmax}, {k, n, 0, -1}] // Flatten (* Jean-François Alcover, Jan 06 2019 *)
  • Ruby
    def ncr(n, r)
      return 1 if r == 0
      (n - r + 1..n).inject(:*) / (1..r).inject(:*)
    end
    def A(k, n)
      (0..n).map{|i| (0..k).inject(-1){|s, j| s + ncr(2 * k, 2 * j) * (i + 1) ** (k - j) * i ** j} / 2}
    end
    def A322699(n)
      a = []
      (0..n).each{|i| a << A(i, n - i)}
      ary = []
      (0..n).each{|i|
        (0..i).each{|j|
          ary << a[i - j][j]
        }
      }
      ary
    end
    p A322699(10)

Formula

sqrt(A(n,k)+1) + sqrt(A(n,k)) = (sqrt(n+1) + sqrt(n))^k.
sqrt(A(n,k)+1) - sqrt(A(n,k)) = (sqrt(n+1) - sqrt(n))^k.
A(n,0) = 0, A(n,1) = n and A(n,k) = (4*n+2) * A(n,k-1) - A(n,k-2) + 2*n for k > 1.
A(n,k) = (T_{k}(2*n+1) - 1)/2 where T_{k}(x) is a Chebyshev polynomial of the first kind.
T_1(x) = x. So A(n,1) = (2*n+1-1)/2 = n.

A173148 a(n) = cos(2*n*arccos(sqrt(n))).

Original entry on oeis.org

1, 1, 17, 485, 18817, 930249, 55989361, 3974443213, 325142092801, 30122754096401, 3117419602578001, 356452534779818421, 44627167107085622401, 6071840759403431812825, 892064955046043465408177, 140751338790698080509966749, 23737154316161495960243527681
Offset: 0

Views

Author

Artur Jasinski, Feb 11 2010

Keywords

Comments

The Chebyshev polynomial T_n is defined by cos(nx) = T_n(cos(x)). So T_2n(cos(x)) = cos(2nx) = cos^2(nx) - 1 = (T_n(x))^2 - 1 consists of only even powers of x. As a result, a(n) = T_2n(sqrt(n)) is an integer. - Michael B. Porter, Jan 01 2019

Crossrefs

Programs

  • GAP
    a:=List([0..20],n->Sum([0..n],k->Binomial(2*n,2*k)*(n-1)^(n-k)*n^k));; Print(a); # Muniru A Asiru, Jan 03 2019
    
  • Magma
    [&+[Binomial(2*n,2*k)*(n-1)^(n-k)*n^k: k in [0..n]]: n in [0..20]]; // Vincenzo Librandi, Jan 03 2019
  • Mathematica
    Table[Round[Cos[2 n ArcCos[Sqrt[n]]]], {n, 0, 30}] (* Artur Jasinski, Feb 11 2010 *)
  • PARI
    {a(n) = sum(k=0, n, binomial(2*n, 2*k)*(n-1)^(n-k)*n^k)} \\ Seiichi Manyama, Dec 27 2018
    
  • PARI
    {a(n) = round(cosh(2*n*acosh(sqrt(n))))} \\ Seiichi Manyama, Dec 27 2018
    
  • PARI
    {a(n) = polchebyshev(n, 1, 2*n-1)} \\ Seiichi Manyama, Dec 29 2018
    

Formula

a(n) ~ exp(-1/2) * 2^(2*n-1) * n^n. - Vaclav Kotesovec, Apr 05 2016
a(n) = Sum_{k=0..n} binomial(2*n,2*k)*(n-1)^(n-k)*n^k. - Seiichi Manyama, Dec 27 2018
a(n) = cosh(2*n*arccosh(sqrt(n))). - Seiichi Manyama, Dec 27 2018
a(n) = T_{2*n}(sqrt(n)) = T_{n}(2*n-1) where T_{n}(x) is a Chebyshev polynomial of the first kind. - Seiichi Manyama, Dec 29 2018
a(n) = A322790(n-1, n) for n > 0. - Seiichi Manyama, Dec 29 2018

Extensions

Minor edits by Vaclav Kotesovec, Apr 05 2016

A173174 a(n) = cosh(2*n*arcsinh(sqrt(n))).

Original entry on oeis.org

1, 3, 49, 1351, 51841, 2550251, 153090001, 10850138895, 886731088897, 82094249361619, 8491781781142001, 970614726270742103, 121485428812828080001, 16525390478051500325307, 2427469037137019032095121, 382956978214541873571486751, 64576903826545426454350012417, 11591229031806966336496244914595
Offset: 0

Views

Author

Artur Jasinski, Feb 11 2010

Keywords

Crossrefs

Programs

  • Magma
    [&+[Binomial(2*n, 2*k)*(n+1)^(n-k)*n^k: k in [0..n]]: n in [0..20]]; // Vincenzo Librandi, Dec 29 2018
  • Maple
    A173174 := proc(n) cosh(2*n*arcsinh(sqrt(n))) ; expand(%) ; simplify(%) ; end proc: # R. J. Mathar, Feb 26 2011
  • Mathematica
    Table[Round[N[Cosh[(2 n) ArcSinh[Sqrt[n]]], 100]], {n, 0, 30}] (* Artur Jasinski *)
    Join[{1}, a[n_]:=Sum[Binomial[2 n, 2 k] (n + 1)^(n - k) n^k, {k, 0, n}]; Array[a, 25]] (* Vincenzo Librandi, Dec 29 2018 *)
  • PARI
    {a(n) = sum(k=0, n, binomial(2*n, 2*k)*(n+1)^(n-k)*n^k)} \\ Seiichi Manyama, Dec 26 2018
    
  • PARI
    {a(n) = polchebyshev(n, 1, 2*n+1)} \\ Seiichi Manyama, Dec 29 2018
    

Formula

a(n) = Sum_{k=0..n} binomial(2*n,2*k)*(n+1)^(n-k)*n^k. - Seiichi Manyama, Dec 26 2018
a(n) = T_{n}(2*n+1) where T_{n}(x) is a Chebyshev polynomial of the first kind. - Seiichi Manyama, Dec 29 2018

Extensions

More terms from Seiichi Manyama, Dec 26 2018

A322747 a(n) = sqrt(1 + A322746(2*n)).

Original entry on oeis.org

1, 5, 161, 8749, 665857, 65160501, 7793761249, 1101696200669, 179689877047297, 33215554576822501, 6862186181491284001, 1566923219786361397005, 391868347839681254572801, 106523078497331434142611733, 31273034455313887578671676257
Offset: 0

Views

Author

Seiichi Manyama, Dec 25 2018

Keywords

Crossrefs

Programs

  • PARI
    {a(n) = sum(k=0, n, binomial(2*n, 2*k)*(2*n+1)^(n-k)*(2*n)^k)}
    
  • PARI
    {a(n) = polchebyshev(n, 1, 4*n+1)}

Formula

a(n) = Sum_{k=0..n} binomial(2*n, 2*k)*(2*n+1)^(n-k)*(2*n)^k.
a(n) = A322790(2*n, n).
a(n) = T_{n}(4*n+1) where T_{n}(x) is a Chebyshev polynomial of the first kind.
a(n) ~ exp(1/4) * 2^(3*n - 1) * n^n. - Vaclav Kotesovec, Dec 25 2018

A322830 a(n) = 32*n^3 + 48*n^2 + 18*n + 1.

Original entry on oeis.org

1, 99, 485, 1351, 2889, 5291, 8749, 13455, 19601, 27379, 36981, 48599, 62425, 78651, 97469, 119071, 143649, 171395, 202501, 237159, 275561, 317899, 364365, 415151, 470449, 530451, 595349, 665335, 740601, 821339, 907741, 999999, 1098305, 1202851, 1313829, 1431431, 1555849
Offset: 0

Views

Author

Seiichi Manyama, Dec 27 2018

Keywords

Examples

			(sqrt(2) + sqrt(1))^6 = 99 + 70*sqrt(2) = 99 + sqrt(99^2 - 1). So a(1) = 99.
		

Crossrefs

Column 3 of A322790.
Cf. A144129.

Programs

  • GAP
    a:=List([0..40],n->32*n^3+48*n^2+18*n+1);; Print(a); # Muniru A Asiru, Jan 02 2019
  • Maple
    [32*n^3+48*n^2+18*n+1$n=0..40]; # Muniru A Asiru, Jan 02 2019
  • Mathematica
    CoefficientList[Series[(1 + x) (1 + 94 x + x^2)/(1 - x)^4, {x, 0, 36}], x] (* or *)
    Array[ChebyshevT[3, 2 # + 1] &, 37, 0] (* Michael De Vlieger, Jan 01 2019 *)
    Table[32n^3+48n^2+18n+1,{n,0,40}] (* or *) LinearRecurrence[{4,-6,4,-1},{1,99,485,1351},40] (* Harvey P. Dale, Mar 11 2019 *)
  • PARI
    {a(n) = 32*n^3+48*n^2+18*n+1}
    
  • PARI
    {a(n) = polchebyshev(3, 1, 2*n+1)}
    
  • PARI
    Vec((1 + x)*(1 + 94*x + x^2) / (1 - x)^4 + O(x^40)) \\ Colin Barker, Dec 27 2018
    

Formula

a(n) + sqrt(a(n)^2 - 1) = (sqrt(n+1) + sqrt(n))^6.
a(n) - sqrt(a(n)^2 - 1) = (sqrt(n+1) - sqrt(n))^6.
a(n) = A144129(2*n+1) = T_3(2*n+1) where T_{n}(x) is a Chebyshev polynomial of the first kind.
From Colin Barker, Dec 27 2018: (Start)
G.f.: (1 + x)*(1 + 94*x + x^2) / (1 - x)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>3. (End)
a(n) = (2*n + 1)*(16*n^2 + 16*n + 1). - Bruno Berselli, Jan 02 2019
Showing 1-6 of 6 results.