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-10 of 11 results. Next

A038761 a(n) = 6*a(n-1) - a(n-2), n >= 2, a(0)=1, a(1)=9.

Original entry on oeis.org

1, 9, 53, 309, 1801, 10497, 61181, 356589, 2078353, 12113529, 70602821, 411503397, 2398417561, 13979001969, 81475594253, 474874563549, 2767771787041, 16131756158697, 94022765165141, 548004834832149, 3194006243827753, 18616032628134369, 108502189524978461
Offset: 0

Views

Author

Barry E. Williams, May 02 2000

Keywords

Comments

Bisection of A048654. - Lambert Klasen (lambert.klasen(AT)gmx.de), Nov 24 2004
This gives part of the (increasingly sorted) positive solutions y to the Pell equation x^2 - 2*y^2 = +7. For the x solutions see A038762. For the other part of solutions see A101386 and A253811. - Wolfdieter Lang, Feb 05 2015

Examples

			A038762(3)^2 - 2*a(4)^2 = 2547^2 - 2*1801^2 = +7. - _Wolfdieter Lang_, Feb 05 2015
		

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.

Crossrefs

Programs

  • Magma
    I:=[1, 9]; [n le 2 select I[n] else 6*Self(n-1)-Self(n-2): n in [1..40]]; // Vincenzo Librandi, Nov 16 2011
    
  • Maple
    a[0]:=1: a[1]:=9: for n from 2 to 26 do a[n]:=6*a[n-1]-a[n-2] od: seq(a[n], n=0..19); # Zerinvary Lajos, Jul 26 2006
  • Mathematica
    LinearRecurrence[{6,-1},{1,9},40] (* Vincenzo Librandi, Nov 16 2011 *)
  • PARI
    a(n)=([0,1; -1,6]^n*[1;9])[1,1] \\ Charles R Greathouse IV, Apr 08 2016

Formula

a(n) = (9*((3+2*sqrt(2))^n -(3-2*sqrt(2))^n)-((3+2*sqrt(2))^(n-1) - (3-2*sqrt(2))^(n-1)))/(4*sqrt(2)).
a(n) = sqrt(2*(A038762(n))^2-14)/2.
For n>1, a(n)-4a(n-1)=A001541(n)-A001542(n-2); e.g. 309-4*53=97=99-2. - Charlie Marion, Nov 12 2003
For n>0, a(n)=A046090(n)+A001653(n)+A001652(n-1)=A055997(n+1)+A001652(n-1); e.g., 309=120+169+20. - Charlie Marion, Oct 11 2006
G.f.: (1+3*x)/(1-6*x+x^2). - Philippe Deléham, Nov 03 2008
a(n) = third binomial transform of 1,6,8,48,64,384. - Al Hakanson (hawkuu(AT)gmail.com), Aug 15 2009
a(n)^2 + 2^2 = A124124(2*n+1)^2 + (A124124(2*n+1)+1)^2. - Hermann Stamm-Wilbrandt, Aug 31 2014
a(n) = irrational part of z(n) = (3 + sqrt(2))*(3 + 2*sqrt(2))^n, n >= 0. z(n) gives only part of the general positive solutions to the Pell equation x^2 - 2*y^2 = 7. See the Nagell reference in A038762 on how to find z(n), and a comment above. - Wolfdieter Lang, Feb 05 2015
a(n) = S(n, 6) + 3*S(n-1, 6), n >= 0, with the Chebyshev S-polynomials evaluated at x=6. See S(n-1, 6) = A001109(n). - Wolfdieter Lang, Mar 30 2015
E.g.f.: exp(3*x)*(2*cosh(2*sqrt(2)*x) + 3*sqrt(2)*sinh(2*sqrt(2)*x))/2. - Stefano Spezia, Mar 16 2024

Extensions

Edited: Replaced the unspecific Pell comment. Moved a formula from the comment section to the formula section. - Wolfdieter Lang, Feb 05 2015

A038723 a(n) = 6*a(n-1) - a(n-2), n >= 2, a(0)=1, a(1)=4.

Original entry on oeis.org

1, 4, 23, 134, 781, 4552, 26531, 154634, 901273, 5253004, 30616751, 178447502, 1040068261, 6061962064, 35331704123, 205928262674, 1200237871921, 6995498968852, 40772755941191, 237641036678294, 1385073464128573, 8072799748093144, 47051725024430291, 274237550398488602
Offset: 0

Views

Author

Barry E. Williams, May 02 2000

Keywords

Comments

This sequence gives one half of all positive solutions y = y1 = a(n) of the first class of the Pell equation x^2 - 2*y^2 = -7. For the corresponding x=x1 terms see A054490(n). Therefore it also gives one fourth of all positive solutions x = x1 of the first class of the Pell equation x^2 - 2*y^2 = 14, with the y=y1 terms given by A054490. - Wolfdieter Lang, Feb 26 2015

Examples

			n = 2: A054490(2)^2 - 2*(2*a(2))^2 =
       65^2 - 2*(2*23)^2 = -7,
      (4*a(2))^2 - 2*A054490(2)^2 =
      (4*23)^2 - 2*65^2 = 14. - _Wolfdieter Lang_, Feb 26 2015
a(2) = (A253811(1) + A101386(1))/2 = (19 + 27)/2 = 23. - _Wolfdieter Lang_, Mar 19 2015
		

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.

Crossrefs

A038725(n) = a(-n).

Programs

  • Maple
    a[0]:=1: a[1]:=4: for n from 2 to 26 do a[n]:=6*a[n-1]-a[n-2] od: seq(a[n], n=0..20); # Zerinvary Lajos, Jul 26 2006
  • Mathematica
    LinearRecurrence[{6,-1},{1,4},30] (* Harvey P. Dale, Aug 06 2020 *)
  • PARI
    {a(n) = real((3 + 2*quadgen(8))^n * (1 + quadgen(8) / 4))} /* Michael Somos, Sep 28 2008 */
    
  • PARI
    {a(n) = polchebyshev(n, 1, 3) + polchebyshev(n-1, 2, 3)} /* Michael Somos, Sep 28 2008 */

Formula

a(n) = ((4+sqrt(2))/8)*(3+2*sqrt(2))^(n-1) + ((4-sqrt(2))/8)*(3-2*sqrt(2))^(n-1). - Antonio Alberto Olivares, Mar 29 2008
a(n) = A001653(n+1) - A001109(n). - Antonio Alberto Olivares, Mar 29 2008
Sequence satisfies -7 = f(a(n), a(n+1)) where f(u, v) = u^2 + v^2 - 6*u*v. - Michael Somos, Sep 28 2008
G.f.: (1 - 2*x) / (1 - 6*x + x^2). a(n) = (7 + a(n-1)^2) / a(n-2). - Michael Somos, Sep 28 2008
a(n) = Sum_{k = 0..n} A238731(n,k)*3^k. - Philippe Deléham, Mar 05 2014
a(n) = S(n,6) - 2*S(n-1, 6), n >= 0, with the Chebyshev polynomials S(n, x) (A049310) with S(-1, x) = 0 evaluated at x = 6. S(n, 6) = A001109(n-1). See the g.f. and the Pell comment above. - Wolfdieter Lang, Feb 26 2015
a(0) = -(A038761(0) - A038762(0))/2, a(n) = (A253811(n-1) + A101386(n-1))/2, n >= 1. See the Mar 19 2015 comment on A054490. - Wolfdieter Lang, Mar 19 2015
E.g.f.: exp(3*x)*(4*cosh(2*sqrt(2)*x) + sqrt(2)*sinh(2*sqrt(2)*x))/4. - Stefano Spezia, Apr 30 2020

Extensions

More terms from James Sellers, May 03 2000

A054490 Expansion of (1+5*x)/(1-6*x+x^2).

Original entry on oeis.org

1, 11, 65, 379, 2209, 12875, 75041, 437371, 2549185, 14857739, 86597249, 504725755, 2941757281, 17145817931, 99933150305, 582453083899, 3394785353089, 19786259034635, 115322768854721, 672150354093691, 3917579355707425, 22833325780150859
Offset: 0

Views

Author

Barry E. Williams, May 04 2000

Keywords

Comments

A Pellian-related second-order recursive sequence.
Third binomial transform of 1,8,8,64,64,512. - Al Hakanson (hawkuu(AT)gmail.com), Aug 17 2009
Binomial transform of A164607. - R. J. Mathar, Oct 26 2011
Pisano period lengths: 1, 1, 4, 2, 6, 4, 3, 2, 12, 6, 12, 4, 14, 3, 12, 2, 8, 12, 20, 6, ... - R. J. Mathar, Aug 10 2012
From Wolfdieter Lang, Feb 26 2015: (Start)
This sequence gives all positive solutions x = x1 = a(n) of the first class of the (generalized) Pell equation x^2 - 2*y^2 = -7. For the corresponding y1 terms see 2*A038723(n). All positive solutions of the second class are given by (x2(n), y2(n)) = (A255236(n), A038725(n+1)), n >= 0. See (A254938(1), 2*A255232(1)) for the fundamental solution (1, 2) of the first class. See the Nagell reference, Theorem 111, p. 210, Theorem 110, p. 208, Theorem 108a, pp. 206-207.
This sequence also gives all positive solutions y = y1 of the first class of the Pell equation x^2 - 2*y^2 = 14. The corresponding solutions x1 are given in 4*A038723. This follows from the preceding comment. (End)
From Wolfdieter Lang, Mar 19 2015: (Start)
a(0) = -(2*A038761(0) - A038762(0)), a(n) = 2*A253811(n-1) + A101386(n-1), for n >= 1.
This follows from the general trivial fact that if X^2 - D*Y^2 = N (X, Y positive integers, D > 1, not a square, and N a non-vanishing integer) then x:= D*Y +/- X and y:= Y +/- X (correlated signs) satisfy x^2 - D*y^2 = -(D-1)*N. with integers x and y. Here D = 2 and N = 7. (End)

Examples

			n = 2: sqrt(8*23^2-7) = 65.
2*19 + 27  = 65. - _Wolfdieter Lang_, Mar 19 2015
		

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N. Y., 1964, pp. 122-125, 194-196.
  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.

Crossrefs

Programs

  • GAP
    a:=[1,11];; for n in [3..30] do a[n]:=6*a[n-1]-a[n-2]; od; a; # G. C. Greubel, Jan 20 2020
  • Magma
    I:=[1,11]; [n le 2 select I[n] else 6*Self(n-1)-Self(n-2): n in [1..30]]; // Vincenzo Librandi, Mar 20 2015
    
  • Maple
    a[0]:=1: a[1]:=11: for n from 2 to 26 do a[n]:=6*a[n-1]-a[n-2] od: seq(a[n], n=0..30); # Zerinvary Lajos, Jul 26 2006
  • Mathematica
    CoefficientList[Series[(1+5x)/(1-6x+x^2), {x, 0, 30}], x] (* Vincenzo Librandi, Mar 20 2015 *)
    LinearRecurrence[{6, -1}, {1, 11}, 30] (* G. C. Greubel, Jul 26 2018 *)
  • PARI
    my(x='x+O('x^30)); Vec((1+5*x)/(1-6*x+x^2)) \\ G. C. Greubel, Jul 26 2018
    
  • Sage
    [lucas_number1(2*n+1,2,-1) + 3*lucas_number1(2*n,2,-1) for n in (0..30)] # G. C. Greubel, Jan 20 2020
    

Formula

a(n) = 6*a(n-1) - a(n-2) for n>1, a(0)=1, a(1)=11.
a(n) = sqrt(8*A038723(n)^2 - 7).
a(n) = (11*((3+2*sqrt(2))^n - (3-2*sqrt(2))^n) - ((3+2*sqrt(2))^(n-1) - (3-2*sqrt(2))^(n-1)))/(4*sqrt(2)).
a(n) = 11*S(n, 6) + 5*S(n-1, 6), n >= 0, with Chebyshev's polynomials S(n, x) (A049310) evaluated at x=6: S(n, 6) = A001109(n-1). See the g.f. and the Pell equation comments above. - Wolfdieter Lang, Feb 26 2015
a(n) = 2*A253811(n-1) + A101386(n-1), for n >= 1. See the Mar 19 2015 comment above. - Wolfdieter Lang, Mar 19 2015
From G. C. Greubel, Jan 20 2020: (Start)
a(n) = Pell(2*n+1) + 3*Pell(2*n).
a(n) = ChebyshevU(n,3) + 5*ChebyshevU(n-1,3).
E.g.f.: exp(3*x)*( cosh(2*sqrt(2)*x) + 2*sqrt(2)*sinh(2*sqrt(2)*x) ). (End)

Extensions

More terms from James Sellers, May 05 2000
More terms from Vincenzo Librandi, Mar 20 2015

A038725 a(n) = 6*a(n-1) - a(n-2), n >= 2, a(0)=1, a(1)=2.

Original entry on oeis.org

1, 2, 11, 64, 373, 2174, 12671, 73852, 430441, 2508794, 14622323, 85225144, 496728541, 2895146102, 16874148071, 98349742324, 573224305873, 3340996092914, 19472752251611, 113495517416752, 661500352248901, 3855506596076654, 22471539224211023, 130973728749189484
Offset: 0

Views

Author

Barry E. Williams, May 02 2000

Keywords

Comments

From Wolfdieter Lang, Feb 26 2015: (Start)
The sequence {2*a(n+1)}_{n >= 0}, gives all positive solutions y = y2(n) = 2*a(n+1) of the second class of the Pell equation x^2 - 2*y^2 = -7. For the corresponding terms x = x2(n) see A255236(n).
See A255236 for comments on the first class solutions and the relation to the Pell equation x^2 - 2*y^2 = 14. (End)

Examples

			n = 2: a(3) = sqrt((181^2 + 7)/2)/2 = 64.
a(3) = (53 + 75)/2 = 64. - _Wolfdieter Lang_, Mar 19 2015
		

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.

Crossrefs

Cf. A001653 and A001541. Cf. A001109.
A038723(n) = a(-n).

Programs

  • Maple
    a[0]:=1: a[1]:=2: for n from 2 to 26 do a[n]:=6*a[n-1]-a[n-2] od: seq(a[n], n=0..20); # Zerinvary Lajos, Jul 26 2006
  • Mathematica
    Union[Flatten[NestList[{#[[2]],#[[3]],6#[[3]]-#[[2]]}&,{1,2,11},25]]]  (* Harvey P. Dale, Mar 04 2011 *)
    LinearRecurrence[{6,-1},{1,2},30] (* Harvey P. Dale, Jun 12 2017 *)
  • PARI
    {a(n) = real((3 + 2*quadgen(8))^n * (1 - quadgen(8) / 4))} /* Michael Somos, Sep 28 2008 */
    
  • PARI
    {a(n) = polchebyshev(n, 1, 3) - polchebyshev(n-1, 2, 3)} /* Michael Somos, Sep 28 2008 */

Formula

a(n) = 7*a(n-1) - 7*a(n-2) + a(n-3); a(n) = ((4-sqrt(2))/8)*(3+2*sqrt(2))^(n-1)+((4+sqrt(2))/8)*(3-2*sqrt(2))^(n-1). - Antonio Alberto Olivares, Mar 29 2008
From Michael Somos, Sep 28 2008: (Start)
Sequence satisfies -7 = f(a(n), a(n+1)) where f(u, v) = u^2 + v^2 - 6*u*v.
G.f.: (1 - 4*x) / (1 - 6*x + x^2). a(n) = (7 + a(n-1)^2) / a(n-2). (End)
From Wolfdieter Lang, Feb 26 2015: (Start)
a(n) = S(n, 6) - 4*S(n-1, 6), n>=0, with the Chebyshev polynomials S(n, x) (A049310), with S(-1, x) = 0, evaluated at x = 6. S(n, 6) = A001109(n-1). See the g.f. and the Pell equation comment above.
a(n) = 6*a(n-1) - a(n-2), n >= 1, a(-1) = 4, a(0) = 1. (See the name.) (End)
From Wolfdieter Lang, Mar 19 2015: (Start)
a(n+1) = sqrt((A255236(n)^2 + 7)/2)/2, n >= 0.
a(n+1) = (A038761(n) + A038762(n))/2, n >= 0. See the Mar 19 2015 comment on A054490. (End)
E.g.f.: exp(3*x)*(4*cosh(2*sqrt(2)*x) - sqrt(2)*sinh(2*sqrt(2)*x))/4. - Stefano Spezia, May 01 2020

A101386 Expansion of g.f.: (5 - 3*x)/(1 - 6*x + x^2).

Original entry on oeis.org

5, 27, 157, 915, 5333, 31083, 181165, 1055907, 6154277, 35869755, 209064253, 1218515763, 7102030325, 41393666187, 241259966797, 1406166134595, 8195736840773, 47768254910043, 278413792619485, 1622714500806867, 9457873212221717, 55124524772523435, 321289275422918893
Offset: 0

Views

Author

Creighton Dement, Jan 23 2005

Keywords

Comments

A floretion-generated sequence relating to NSW numbers and numbers n such that (n^2 - 8)/2 is a square. It is also possible to label this sequence as the "tesfor-transform of the zero-sequence" under the floretion given in the program code, below. This is because the sequence "vesseq" would normally have been A046184 (indices of octagonal numbers which are also a square) using the floretion given. This floretion, however, was purposely "altered" in such a way that the sequence "vesseq" would turn into A000004. As (a(n)) would not have occurred under "natural" circumstances, one could speak of it as the transform of A000004.
Floretion Algebra Multiplication Program FAMP code: - tesforseq[ + 3'i - 2'j + 'k + 3i' - 2j' + k' - 4'ii' - 3'jj' + 4'kk' - 'ij' - 'ji' + 3'jk' + 3'kj' + 4e], Note: vesforseq = A000004, lesforseq = A002315, jesforseq = A077445
From Wolfdieter Lang, Feb 05 2015: (Start)
All positive solutions x = a(n) of the (generalized) Pell equation x^2 - 2*y^2 = +7 based on the fundamental solution (x2,y2) = (5,3) of the second class of (proper) solutions. The corresponding y solutions are given by y(n) = A253811(n).
All other positive solutions come from the first class of (proper) solutions based on the fundamental solution (x1,y1) = (3,1). These are given in A038762 and A038761.
All solutions of this Pell equation are found in A077443(n+1) and A077442(n), for n >= 0. See, e.g., the Nagell reference on how to find all solutions.
(End)

References

  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, 1964, Theorem 109, pp. 207-208 with Theorem 104, pp. 197-198.

Crossrefs

Programs

  • Magma
    R:=PowerSeriesRing(Integers(), 30); Coefficients(R!((5 - 3*x)/(1-6*x+x^2))); // G. C. Greubel, Jul 26 2018
    
  • Maple
    A101386:= (n) -> simplify(5*ChebyshevU(n, 3) - 3*ChebyshevU(n-1, 3)); seq( A101386(n), n = 0..30); # G. C. Greubel, Mar 17 2020
  • Mathematica
    CoefficientList[ Series[(5-3x)/(1-6x+x^2), {x,0,30}], x] (* Robert G. Wilson v, Jan 29 2005 *)
    LinearRecurrence[{6,-1},{5,27},30] (* Harvey P. Dale, Apr 23 2016 *)
  • PARI
    Vec((5-3*x)/(1-6*x+x^2) + O(x^30)) \\ Colin Barker, Feb 05 2015
    
  • SageMath
    [5*chebyshev_U(n,3) -3*chebyshev_U(n-1,3) for n in (0..30)] # G. C. Greubel, Mar 17 2020

Formula

a(n) = A002315(n) + A077445(n+1). Note: the offset of A077445 is 1.
a(n+1) - a(n) = 2*A054490(n+1).
a(n) = 6*a(n-1) - a(n-2), a(0)=5, a(1)=27. - Philippe Deléham, Nov 17 2008
From Al Hakanson (hawkuu(AT)gmail.com), Aug 17 2009: (Start)
a(n) = ((5+sqrt(18))*(3 + sqrt(8))^n + (5-sqrt(18))*(3 - sqrt(8))^n)/2.
Third binomial transform of A164737. (End)
a(n) = rational part of z(n), with z(n) = (5+3*sqrt(2))*(3+2*sqrt(2))^n, n >= 0, the general positive solutions of the second class of proper solutions. See the preceding formula. - Wolfdieter Lang, Feb 05 2015
a(n) = 5*A001109(n+1) - 3*A001109(n). - G. C. Greubel, Mar 17 2020
a(n) = Pell(2*n+2) + 3*Pell(2*n+1), where Pell(n) = A000129(n). - G. C. Greubel, Apr 17 2020
E.g.f.: exp(3*x)*(5*cosh(2*sqrt(2)*x) + 3*sqrt(2)*sinh(2*sqrt(2)*x)). - Stefano Spezia, Mar 16 2024

Extensions

More terms from Robert G. Wilson v, Jan 29 2005

A077442 2*a(n)^2 + 7 is a square.

Original entry on oeis.org

1, 3, 9, 19, 53, 111, 309, 647, 1801, 3771, 10497, 21979, 61181, 128103, 356589, 746639, 2078353, 4351731, 12113529, 25363747, 70602821, 147830751, 411503397, 861620759, 2398417561, 5021893803, 13979001969, 29269742059, 81475594253
Offset: 0

Views

Author

Gregory V. Richardson, Nov 06 2002

Keywords

Comments

Lim. n -> Inf. a(n)/a(n-2) = 3 + 2*Sqrt(2) = R1*R2. Lim. k -> Inf. a(2*k-1)/a(2*k) = (9 + 4*Sqrt(2))/7 = R1 (ratio #1). Lim. k -> Inf. a(2*k)/a(2*k-1) = (11 + 6*Sqrt(2))/7 = R2 (ratio #2).
a(n) gives for n >= 0 all positive y-values solving the (generalized) Pell equation x^2 - 2*y^2 = 7. A077443(n+1) gives the corresponding x-values. See, e.g., the Nagell reference on how to find all solutions. - Wolfdieter Lang, Feb 05 2015

Examples

			a(4)^2 - 2*a(3)^2 = 27^2 - 2*19^2  = +7. - _Wolfdieter Lang_, Feb 05 2015
		

References

  • L. E. Dickson, History of the Theory of Numbers, Vol. II, Diophantine Analysis. AMS Chelsea Publishing, Providence, Rhode Island, 1999, pp. 341-400.
  • A. H. Beiler, "The Pellian." Ch. 22 in Recreations in the Theory of Numbers: The Queen of Mathematics Entertains. Dover, New York, New York, pp. 248-268, 1966.
  • Peter G. L. Dirichlet, Lectures on Number Theory (History of Mathematics Source Series, V. 16); American Mathematical Society, Providence, Rhode Island, 1999, pp. 139-147.
  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, 1964, Theorem 109, pp. 207-208 with Theorem 104, pp. 197-198.

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1+3 x+3 x^2+x^3)/ (1-6 x^2+x^4),{x,0,50}],x]  (* Harvey P. Dale, Mar 12 2011 *)
    LinearRecurrence[{0, 6, 0, -1},{1,3,9,19},50] (* Sture Sjöstedt, Oct 08 2012 *)
  • PARI
    a(n)=([0,1,0,0; 0,0,1,0; 0,0,0,1; -1,0,6,0]^n*[1;3;9;19])[1,1] \\ Charles R Greathouse IV, Jun 20 2015
    
  • PARI
    Vec((x+1)^3/(x^2+2*x-1)/(x^2-2*x-1) + O(x^50)) \\ Colin Barker, Mar 27 2016

Formula

For n>0, a(2n) = A046090(n) + A001653(n) + A001652(n-1); a(2n+1) = A001652(n+1) - A001652(n-1) - A001653(n-1); e.g. 53=21+29+3; 111=119-3-5. - Charlie Marion, Aug 14 2003
The same recurrences hold for the odd and even indices respectively : a(n+2) = 6*a(n+1) - a(n), a(n+1) = 3*a(n) + 2*(2*a(n)^2+7)^0.5. - Richard Choulet, Oct 11 2007
G.f.: (x+1)^3/(x^2+2*x-1)/(x^2-2*x-1). a(n)= [ -A077985(n)-3*A077985(n-1)+3*A000129(n+1)+A000129(n)]/2. - R. J. Mathar, Nov 16 2007
a(n) = 6*a(n-2) - a(n-4) with a(1)=1, a(2)=3, a(3)=9, a(4)=19. - Sture Sjöstedt, Oct 08 2012
a(n) = ((-(-1 - sqrt(2))^n*(-2+sqrt(2)) - (-1+sqrt(2))^n*(2+sqrt(2)) + (1-sqrt(2))^n*(-4+3*sqrt(2)) + (1+sqrt(2))^n*(4+3*sqrt(2))))/(4*sqrt(2)). - Colin Barker, Mar 27 2016

Extensions

Edited: n in Name replaced by a(n). Pell comments moved to comment section. - Wolfdieter Lang, Feb 05 2015

A077443 Numbers k such that (k^2 - 7)/2 is a square.

Original entry on oeis.org

3, 5, 13, 27, 75, 157, 437, 915, 2547, 5333, 14845, 31083, 86523, 181165, 504293, 1055907, 2939235, 6154277, 17131117, 35869755, 99847467, 209064253, 581953685, 1218515763, 3391874643, 7102030325, 19769294173, 41393666187, 115223890395, 241259966797, 671574048197
Offset: 1

Views

Author

Gregory V. Richardson, Nov 06 2002

Keywords

Comments

Lim_{n -> inf} a(n)/a(n-2) = 3 + 2*sqrt(2) = R1*R2. Lim_{k -> inf} a(2*k-1)/a(2*k) = (9 + 4*sqrt(2))/7 = R1 = A156649 (ratio #1). Lim_{k -> inf} a(2*k)/a(2*k-1) = (11 + 6*sqrt(2))/7 = R2 (ratio #2).
Also gives solutions > 3 to the equation x^2-4 = floor(x*r*floor(x/r)) where r=sqrt(2). - Benoit Cloitre, Feb 14 2004
From Paul Curtz, Dec 15 2012: (Start)
a(n-1) and A006452(n) are companions. Like A000129 and A001333.
Reduced mod 10 this is a sequence of period 12: 3, 5, 3, 7, 5, 7, 7, 5, 7, 3, 5, 3.
(End)
The Pisano periods (periods of the sequence reducing a(n) modulo m) for m>=1 are 1, 1, 8, 4, 12, 8, 6, 4, 24, 12, 24, 8, 28, ... R. J. Mathar, Dec 15 2012
Positive values of x (or y) satisfying x^2 - 6xy + y^2 + 56 = 0. - Colin Barker, Feb 08 2014
From Wolfdieter Lang, Feb 05 2015: (Start)
a(n+1) gives for n >= 0 all positive x solutions of the (generalized) Pell equation x^2 - 2*y^2 = +7.
The corresponding y solutions are given in A077442(n), n >= 0. The, e.g., the Nagell reference for finding all solutions.
Because the primitive Pythagorean triangle (3,4,5) is the only one with the sum of legs equal to 7 all positive solutions (x(n),y(n)) = (a(n+1),A077442(n)) of the Pell equation x^2 - 2*y^2 = +7 satisfy x(n) - y(n) < y(n) if n >= 1; only the first solution (x(0),y(0)) = (3,2) satisfies 3-1 > 1. Proof: Primitive Pythagorean triangles are characterized by the positive integer pairs [u,v] with u+v odd, gcd(u,v) = 1 and u > v. See the Niven et al. reference, Theorem 5.5, p. 232. The leg sum is L = (u+v)^2 - 2*v^2. With L = 7, x = u+v and y = v, every solution (x(n),y(n)) with x(n)-y(n) = u(n) > v(n) = y(n) will correspond to a primitive Pythagorean triangle. Note that because of gcd(x,y) = 1 also gcd(u,v) = 1. But there is only one such triangle with L=7, namely the one with [u(0),v(0)] = [2,1]. All other solutions with n >= 1 must therefore satisfy x(n)-y(n) < y(n). (End)
For n > 0, a(n+1) is the n-th almost Lucas-cobalancing number of first type (see Tekcan and Erdem). - Stefano Spezia, Nov 25 2022

Examples

			a(3)^2 - 2*A077442(2)^2 = 13^2 - 2*9^2 = +7. - _Wolfdieter Lang_, Feb 05 2015
		

References

  • A. H. Beiler, "The Pellian." Ch. 22 in Recreations in the Theory of Numbers: The Queen of Mathematics Entertains. Dover, New York, New York, pp. 248-268, 1966.
  • L. E. Dickson, History of the Theory of Numbers, Vol. II, Diophantine Analysis. AMS Chelsea Publishing, Providence, Rhode Island, 1999, pp. 341-400.
  • Peter G. L. Dirichlet, Lectures on Number Theory (History of Mathematics Source Series, V. 16); American Mathematical Society, Providence, Rhode Island, 1999, pp. 139-147.
  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, 1964, Theorem 109, pp. 207-208 with Theorem 104, pp. 197-198.
  • Ivan Niven, Herbert S. Zuckerman and Hugh L. Montgomery, An Introduction to the Theory Of Numbers, Fifth Edition, John Wiley and Sons, Inc., NY 1991.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{0,6,0,-1},{3,5,13,27},50] (* Sture Sjöstedt, Oct 09 2012 *)

Formula

a(2n+1) = A038762(n). a(2n) = A101386(n-1).
The same recurrences hold for the odd and the even indices: a(n+2) = 6*a(n) - a(n-2), a(n+1) = 3*a(n) + 2*(2*a(n)^2-14)^0.5 - Richard Choulet, Oct 11 2007
O.g.f.: -x*(x-1)*(3*x^2+8*x+3) / ( (x^2+2*x-1)*(x^2-2*x-1) ). - R. J. Mathar, Nov 23 2007
If n is even a(n) = (1/2)*(3+sqrt(2))*(3+2*sqrt(2))^(-n/2) + (1/2)*(3-sqrt(2))*(3-2*sqrt(2))^(-n/2); if n is odd a(n) = (1/2)*(3+sqrt(2))*(3+2*sqrt(2))^((n-1)/2) + (1/2)*(3-sqrt(2))*(3-2*sqrt(2))^((n-1)/2). - Antonio Alberto Olivares, Apr 20 2008
a(n) = A000129(n+1) + (-1)^n*A176981(n-1), n>1. - R. J. Mathar, Jul 03 2011
a(n) = A000129(n+1) -(-1)^n*A000129(n-2), rephrasing the formula above. - Paul Curtz, Dec 07 2012
a(n) = sqrt(8*A216134(n)^2 + 8*A216134(n) + 9) = 2*A124124(n) + 1. - Raphie Frank, May 24 2013
E.g.f.: cosh(sqrt(2)*x)*(3*cosh(x) - sinh(x)) + sqrt(2)*(2*cosh(x) - sinh(x))*sinh(sqrt(2)*x) - 3. - Stefano Spezia, Nov 25 2022

Extensions

More terms from Richard Choulet, Oct 11 2007
Edited: replaced n by a(n) in the name. Moved Pell remarks to the comment section. Added cross references. - Wolfdieter Lang, Feb 05 2015

A253811 Part of the y solutions of the Pell equation x^2 - 2*y^2 = +7.

Original entry on oeis.org

3, 19, 111, 647, 3771, 21979, 128103, 746639, 4351731, 25363747, 147830751, 861620759, 5021893803, 29269742059, 170596558551, 994309609247, 5795261096931, 33777256972339, 196868280737103, 1147432427450279, 6687726283964571, 38978925276337147, 227185825374058311
Offset: 0

Views

Author

Wolfdieter Lang, Feb 05 2015

Keywords

Comments

All positive solutions y = a(n) of the (generalized) Pell equation x^2 - 2*y^2 = +7 based on the fundamental solution (x2,y2) = (5,3) of the second class of (proper) solutions. The corresponding x solutions are given by x(n) = A101386(n).
All other positive solutions come from the first class of (proper) solutions based on the fundamental solution (x1,y1) = (3,1). These are given in A038762 and A038761.
All solutions of this Pell equation are found in A077443(n+1) and A077442(n), for n >= 0. See the Nagell reference on how to find all solutions.

Examples

			A101386(2)^2 - 2*a(2) = 157^2 - 2*111^2 = +7.
		

References

  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, 1964, Theorem 109, pp. 207-208 with Theorem 104, pp. 197-198.

Crossrefs

Programs

  • Magma
    m:=25; R:=PowerSeriesRing(Integers(), m); Coefficients(R!((x+3)/(x^2-6*x+1))); // G. C. Greubel, Jul 26 2018
  • Mathematica
    LinearRecurrence[{6,-1}, {3,19}, 30] (* or *) CoefficientList[Series[ (x+3)/(x^2-6*x+1), {z, 0, 50}], x]  (* G. C. Greubel, Jul 26 2018 *)
  • PARI
    Vec((x+3)/(x^2-6*x+1) + O(x^100)) \\ Colin Barker, Feb 05 2015
    

Formula

a(n) = irrational part of z(n), where z(n) = (5+3*sqrt(2))*(3+2*sqrt(2))^n, n >= 0, the general positive solutions of the second class of proper solutions.
From Colin Barker, Feb 05 2015: (Start)
a(n) = 6*a(n-1) - a(n-2).
G.f.: (x+3) / (x^2-6*x+1). (End)
a(n) = 3*A001109(n+1) + A001109(n). - R. J. Mathar, Feb 05 2015
E.g.f.: exp(3*x)*(6*cosh(2*sqrt(2)*x) + 5*sqrt(2)*sinh(2*sqrt(2)*x))/2. - Stefano Spezia, Mar 16 2024

A255236 All positive solutions x of the second class of the Pell equation x^2 - 2*y^2 = -7.

Original entry on oeis.org

5, 31, 181, 1055, 6149, 35839, 208885, 1217471, 7095941, 41358175, 241053109, 1404960479, 8188709765, 47727298111, 278175078901, 1621323175295, 9449763972869, 55077260661919, 321013799998645, 1871005539329951, 10905019435981061, 63559111076556415
Offset: 0

Views

Author

Wolfdieter Lang, Feb 26 2015

Keywords

Comments

For the corresponding y = y2 terms see 2*A038725(n+1).
The Pell equation x^2 - 2*y^2 = 7 has two classes of solutions. See, e.g., the Nagell reference and comments under A254938 and A255233. Here the positive solutions based on the fundamental solution (5, 4) (the second largest positive solution) are considered.
The positive solutions of the first class are given in (A054490(n), 2*A038723(n)), n >= 0.
The combined solutions of both classes are given in (A077446, 4*A077447).
The solutions (x(n), y(n)) of x^2 - 2*y^2 = -7 translate to the solutions (X(n), Y(n)) = (2*y(n) , x(n)) of the Pell equation X^2 - 2*Y^2 = 14.

Examples

			n = 2: 181^2 - 2*(2*64)^2  = -7; (4*64)^2 - 2*181^2 = 14.
n = 2: 2*53 + 75 = 181. - _Wolfdieter Lang_, Mar 19 2015
		

Crossrefs

Programs

  • Magma
    I:=[5,31]; [n le 2 select I[n] else 6*Self(n-1)-Self(n-2): n in [1..30]]; // Vincenzo Librandi, Mar 20 2015
  • Mathematica
    CoefficientList[Series[(5 + x) / (1 - 6 x + x^2), {x, 0, 30}], x] (* Vincenzo Librandi, Mar 20 2015 *)
  • PARI
    Vec((5 + x)/(1 - 6*x + x^2) + O(x^30)) \\ Michel Marcus, Mar 20 2015
    

Formula

a(n) = 5*S(n, 6) + S(n-1, 6), n >= 0, with the Chebyshev polynomials S(n, x) (A049310), with S(-1, x) = 0, evaluated at x = 6. S(n, 6) = A001109(n-1).
G.f.: (5 + x)/(1 - 6*x + x^2).
a(n) = 6*a(n-1) - a(n-2), n >= 2, with a(-1) = -1 and a(0) = 5.
a(n) = 2*A038761(n) + A038762(n), n >= 0. See the Mar 19 comment on A054490. - Wolfdieter Lang, Mar 19 2015
a(n) = ((3-2*sqrt(2))^n*(-8+5*sqrt(2)) + (3+2*sqrt(2))^n*(8+5*sqrt(2))) / (2*sqrt(2)). - Colin Barker, Oct 13 2015

A266504 a(n) = 2*a(n - 2) + a(n - 4) with a(0) = a(1) = 2, a(2) = 1, a(3) = 3.

Original entry on oeis.org

2, 2, 1, 3, 4, 8, 9, 19, 22, 46, 53, 111, 128, 268, 309, 647, 746, 1562, 1801, 3771, 4348, 9104, 10497, 21979, 25342, 53062, 61181, 128103, 147704, 309268, 356589, 746639, 860882, 1802546, 2078353, 4351731, 5017588, 10506008, 12113529, 25363747, 29244646, 61233502
Offset: 0

Views

Author

Raphie Frank, Dec 30 2015

Keywords

Comments

This sequence gives all x in N | 2*x^2 - 7(-1)^x = y^2. The companion sequence to this sequence, giving y values, is A266505.
A266505(n)/a(n) converges to sqrt(2).
Alternatively, 1/4*(3*A002203(floor[n/2]) - A002203(n-(-1)^n)), where A002203 gives the Companion Pell numbers, or, in Lucas sequence notation, V_n(2, -1).
Alternatively, bisection of A266506.
Alternatively, A048654(n -1) and A078343(n + 1) interlaced.
Alternatively, A100525(n-1), A266507(n), A038761(n) and A253811(n) interlaced.
Let b(n) = (a(n) - a(n)(mod 2))/2, that is b(n) = {1, 1, 0, 1, 2, 4, 4, 9, 11, 23, 26, 55, 64, ...}. Then:
A006452(n) = {b(4n+0) U b(4n+1)} gives n in N such that n^2 - 1 is triangular;
A216134(n) = {b(4n+2) U b(4n+3)} gives n in N such that n^2 + n + 1 is triangular (indices of Sophie Germain triangular numbers);
A216162(n) = {b(4n+0) U b(4n+2) U b(4n+1) U b(4n+3)}, sequences A006452 and A216134 interlaced.

Crossrefs

Programs

  • Magma
    I:=[2,2,1,3]; [n le 4 select I[n] else 2*Self(n-2)+Self(n-4): n in [1..70]]; // Vincenzo Librandi, Dec 31 2015
    
  • Mathematica
    LinearRecurrence[{0, 2, 0, 1}, {2, 2, 1, 3}, 70] (* Vincenzo Librandi, Dec 31 2015 *)
    Table[SeriesCoefficient[(1 - x) (2 + 4 x + x^2)/(1 - 2 x^2 - x^4), {x, 0, n}], {n, 0, 41}] (* Michael De Vlieger, Dec 31 2015 *)
  • PARI
    Vec((1-x)*(2+4*x+x^2)/(1-2*x^2-x^4) + O(x^50)) \\ Colin Barker, Dec 31 2015

Formula

a(n) = 1/sqrt(8)*(+sqrt(2)*(1+sqrt(2))^(floor(n/2)-(-1)^n)*(-1)^n - 3*(1-sqrt(2))^(floor(n/2)-(-1)^n) + sqrt(2)*(1-sqrt(2))^(floor(n/2)-(-1)^n)*(-1)^n + 3*(1+sqrt(2))^(floor(n/2)-(-1)^n)).
a(n) = 1/4*((3*((1+sqrt(2))^floor(n/2)+(1-sqrt(2))^floor(n/2))) - (-1)^n*((1+sqrt(2))^(floor(n/2)-(-1)^n)+(1-sqrt(2))^(floor(n/2)-(-1)^n))).
a(2n) = (+sqrt(2)*(1+sqrt(2))^(n-1) - 3 *(1-sqrt(2))^(n-1) + sqrt(2)*(1-sqrt(2))^(n-1) + 3*(1 + sqrt(2))^(n-1))/sqrt(8) = A048654(n -1).
a(2n) = 1/4*((3*((1+sqrt(2))^n+(1-sqrt(2))^n)) - ((1+sqrt(2))^(n-1)+(1-sqrt(2))^(n-1))) = A048654(n -1).
a(2n + 1) = (-sqrt(2)*(1+sqrt(2))^(n+1) - 3 *(1-sqrt(2))^(n+1) - sqrt(2)*(1-sqrt(2))^(n+1) + 3*(1+sqrt(2))^(n+1))/sqrt(8) = A078343(n + 1).
a(2n + 1) =1/4*((3*((1+sqrt(2))^n+(1-sqrt(2))^n)) + ((1+sqrt(2))^(n+1)+(1-sqrt(2))^(n+1))) = A078343(n + 1).
a(4n + 0) = 6*a(4n - 4) - a(4n - 8) = A100525(n-1).
a(4n + 1) = 6*a(4n - 3) - a(4n - 7) = A266507(n).
a(4n + 2) = 6*a(4n - 2) - a(4n - 6) = A038761(n).
a(4n + 3) = 6*a(4n - 1) - a(4n - 5) = A253811(n).
sqrt(2*a(n)^2 - 7(-1)^a(n))*sgn(2*n - 1) = A266505(n).
(a(2n + 1) + a(2n))/2 = A002203(n), where A002203 gives the companion Pell numbers.
(a(2n + 1) - a(2n))/2 = A000129(n), where A000129 gives the Pell numbers.
(a(2n+2) + a(2n+1))*2 = A002203(n+2)
(a(2n+2) - a(2n+1))*2 = A002203(n-1).
G.f.: (1-x)*(2+4*x+x^2) / (1-2*x^2-x^4). - Colin Barker, Dec 31 2015
Showing 1-10 of 11 results. Next