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 30 results. Next

A336993 List of m such that b(m) has no primitive factor, where {b(m)} is the generalized Lucas sequence defined by b(0) = 0, b(1) = 1 and b(m) = b(m-1) - 2*b(m-2) for m >= 2 (A107920).

Original entry on oeis.org

1, 2, 3, 5, 8, 12, 13, 18, 30
Offset: 1

Views

Author

Jianing Song, Aug 10 2020

Keywords

Comments

A generalized Lucas sequence {U(m)} is a sequence defined by U(0) = 0, U(1) = 1 and U(m) = P*U(m-1) - Q*U(m-2) for m >= 2, where P > 0, gcd(P, Q) = 1 and (P, Q) != (1, 0), (1, 1) or (2, 1). The discriminant is D = P^2 - 4*Q.
A primitive factor of U(m), m > 0 is any prime that divides U(m) but does not divide U(r) for any 0 < r < m. Let's call a prime factor of U(m) "strongly primitive" if it is primitive and does not divide D.
Bilu, Hanrot and Voutier shows that for (P, Q, D) != (1, 2, -7), if U(m) has no strongly primitive factor, than m = 1..8, 10 or 12 (except for a few cases, m can only be 1, 2, 3, 4 or 6. See A285314). (P, Q, D) = (1, 2, -7) is the only case where U(13), U(18) and U(30) have no primitive factor.
This is also the only case where there are nine terms without a primitive factor. The case (P, Q, D) = (1, 3, -11) has five (m = 1, 2, 5, 6, 12). (1, -1, 5) has four (m = 1, 2, 6, 12). (1, 5, -19) has four (m = 1, 2, 7, 12). For all other Lucas sequences there can be at most three terms without a primitive factor (e.g. m = 1, 2, 6 for (3, 2, 1)).
Note that b(7) = 7 has only a primitive factor (7) that is not strongly primitive.

Examples

			We have b(1) = b(2) = 1 and b(3) = b(5) = b(13) = -1, so obviously b(m) has no primitive factor if m = 1, 2, 3, 5, 13.
b(8) = -3 has only one prime factor 3, but 3 divides b(4) = -3, so 8 is a term here.
b(12) = 45 has two prime factors 3 and 5, but 3 divides b(4) = -3 and 5 divides b(6) = 5, so 12 is here.
b(18) = 85 has two prime factors 5 and 17, but 5 divides b(6) = 5 and 17 divides b(9) = -17, so 18 is here.
b(30) = -24475 has three prime factors 5, 11 and 89, but 5 divides b(6) = 5, 11 divides b(10) = -11 and 89 divides b(15) = -89, so 30 is also here.
According to Bilu, Hanrot and Voutier, b(m) has at least one primitive factor for any other m (and at least one strongly primitive factor if m != 7).
		

References

  • Paulo Ribenboim, My Numbers, My Friends: Popular Lectures on Number Theory, Springer-Verlag, NY, 2000, p. 18.

Crossrefs

A109466 Riordan array (1, x(1-x)).

Original entry on oeis.org

1, 0, 1, 0, -1, 1, 0, 0, -2, 1, 0, 0, 1, -3, 1, 0, 0, 0, 3, -4, 1, 0, 0, 0, -1, 6, -5, 1, 0, 0, 0, 0, -4, 10, -6, 1, 0, 0, 0, 0, 1, -10, 15, -7, 1, 0, 0, 0, 0, 0, 5, -20, 21, -8, 1, 0, 0, 0, 0, 0, -1, 15, -35, 28, -9, 1, 0, 0, 0, 0, 0, 0, -6, 35, -56, 36, -10, 1, 0, 0, 0, 0, 0, 0, 1, -21, 70, -84, 45, -11, 1, 0, 0, 0, 0
Offset: 0

Views

Author

Philippe Deléham, Aug 28 2005

Keywords

Comments

Inverse is Riordan array (1, xc(x)) (A106566).
Triangle T(n,k), 0 <= k <= n, read by rows, given by [0, -1, 1, 0, 0, 0, 0, 0, 0, ...] DELTA [1, 0, 0, 0, 0, 0, 0, 0, ...] where DELTA is the operator defined in A084938.
Modulo 2, this sequence gives A106344. - Philippe Deléham, Dec 18 2008
Coefficient array of the polynomials Chebyshev_U(n, sqrt(x)/2)*(sqrt(x))^n. - Paul Barry, Sep 28 2009

Examples

			Rows begin:
  1;
  0,  1;
  0, -1,  1;
  0,  0, -2,  1;
  0,  0,  1, -3,  1;
  0,  0,  0,  3, -4,   1;
  0,  0,  0, -1,  6,  -5,   1;
  0,  0,  0,  0, -4,  10,  -6,   1;
  0,  0,  0,  0,  1, -10,  15,  -7,  1;
  0,  0,  0,  0,  0,   5, -20,  21, -8,  1;
  0,  0,  0,  0,  0,  -1,  15, -35, 28, -9, 1;
From _Paul Barry_, Sep 28 2009: (Start)
Production array is
  0,    1,
  0,   -1,    1,
  0,   -1,   -1,   1,
  0,   -2,   -1,  -1,   1,
  0,   -5,   -2,  -1,  -1,  1,
  0,  -14,   -5,  -2,  -1, -1,  1,
  0,  -42,  -14,  -5,  -2, -1, -1,  1,
  0, -132,  -42, -14,  -5, -2, -1, -1,  1,
  0, -429, -132, -42, -14, -5, -2, -1, -1, 1 (End)
		

Crossrefs

Cf. A026729 (unsigned version), A000108, A030528, A124644.

Programs

  • Magma
    /* As triangle */ [[(-1)^(n-k)*Binomial(k, n-k): k in [0..n]]: n in [0.. 15]]; // Vincenzo Librandi, Jan 14 2016
  • Mathematica
    (* The function RiordanArray is defined in A256893. *)
    RiordanArray[1&, #(1-#)&, 13] // Flatten (* Jean-François Alcover, Jul 16 2019 *)

Formula

Number triangle T(n, k) = (-1)^(n-k)*binomial(k, n-k).
T(n, k)*2^(n-k) = A110509(n, k); T(n, k)*3^(n-k) = A110517(n, k).
Sum_{k=0..n} T(n,k)*A000108(k)=1. - Philippe Deléham, Jun 11 2007
From Philippe Deléham, Oct 30 2008: (Start)
Sum_{k=0..n} T(n,k)*A144706(k) = A082505(n+1).
Sum_{k=0..n} T(n,k)*A002450(k) = A100335(n).
Sum_{k=0..n} T(n,k)*A001906(k) = A100334(n).
Sum_{k=0..n} T(n,k)*A015565(k) = A099322(n).
Sum_{k=0..n} T(n,k)*A003462(k) = A106233(n). (End)
Sum_{k=0..n} T(n,k)*x^(n-k) = A053404(n), A015447(n), A015446(n), A015445(n), A015443(n), A015442(n), A015441(n), A015440(n), A006131(n), A006130(n), A001045(n+1), A000045(n+1), A000012(n), A010892(n), A107920(n+1), A106852(n), A106853(n), A106854(n), A145934(n), A145976(n), A145978(n), A146078(n), A146080(n), A146083(n), A146084(n) for x = -12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12 respectively. - Philippe Deléham, Oct 27 2008
Sum_{k=0..n} T(n,k)*x^k = A000007(n), A010892(n), A099087(n), A057083(n), A001787(n+1), A030191(n), A030192(n), A030240(n), A057084(n), A057085(n+1), A057086(n) for x = 0,1,2,3,4,5,6,7,8,9,10 respectively. - Philippe Deléham, Oct 28 2008
G.f.: 1/(1-y*x+y*x^2). - Philippe Deléham, Dec 15 2011
T(n,k) = T(n-1,k-1) - T(n-2,k-1), T(n,0) = 0^n. - Philippe Deléham, Feb 15 2012
Sum_{k=0..n} T(n,k)*x^(n-k) = F(n+1,-x) where F(n,x)is the n-th Fibonacci polynomial in x defined in A011973. - Philippe Deléham, Feb 22 2013
Sum_{k=0..n} T(n,k)^2 = A051286(n). - Philippe Deléham, Feb 26 2013
Sum_{k=0..n} T(n,k)*T(n+1,k) = -A110320(n). - Philippe Deléham, Feb 26 2013
For T(0,0) = 0, the signed triangle below has the o.g.f. G(x,t) = [t*x(1-x)]/[1-t*x(1-x)] = L[t*Cinv(x)] where L(x) = x/(1-x) and Cinv(x)=x(1-x) with the inverses Linv(x) = x/(1+x) and C(x)= [1-sqrt(1-4*x)]/2, an o.g.f. for the shifted Catalan numbers A000108, so the inverse o.g.f. is Ginv(x,t) = C[Linv(x)/t] = [1-sqrt[1-4*x/(t(1+x))]]/2 (cf. A124644 and A030528). - Tom Copeland, Jan 19 2016

A190958 a(n) = 2*a(n-1) - 10*a(n-2), with a(0) = 0, a(1) = 1.

Original entry on oeis.org

0, 1, 2, -6, -32, -4, 312, 664, -1792, -10224, -2528, 97184, 219648, -532544, -3261568, -1197696, 30220288, 72417536, -157367808, -1038910976, -504143872, 9380822016, 23803082752, -46202054656, -330434936832, -198849327104, 2906650714112, 7801794699264
Offset: 0

Views

Author

Keywords

Comments

For the difference equation a(n) = c*a(n-1) - d*a(n-2), with a(0) = 0, a(1) = 1, the solution is a(n) = d^((n-1)/2) * ChebyshevU(n-1, c/(2*sqrt(d))) and has the alternate form a(n) = ( ((c + sqrt(c^2 - 4*d))/2)^n - ((c - sqrt(c^2 - 4*d))/2)^n )/sqrt(c^2 - 4*d). In the case c^2 = 4*d then the solution is a(n) = n*d^((n-1)/2). The generating function is x/(1 - c*x + d^2) and the exponential generating function takes the form (2/sqrt(c^2 - 4*d))*exp(c*x/2)*sinh(sqrt(c^2 - 4*d)*x/2) for c^2 > 4*d, (2/sqrt(4*d - c^2))*exp(c*x/2)*sin(sqrt(4*d - c^2)*x/2) for 4*d > c^2, and x*exp(sqrt(d)*x) if c^2 = 4*d. - G. C. Greubel, Jun 10 2022

Crossrefs

Programs

  • Magma
    I:=[0,1]; [n le 2 select I[n] else 2*Self(n-1)-10*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Sep 17 2011
    
  • Mathematica
    LinearRecurrence[{2,-10}, {0,1}, 50]
  • PARI
    a(n)=([0,1; -10,2]^n*[0;1])[1,1] \\ Charles R Greathouse IV, Apr 08 2016
    
  • SageMath
    [lucas_number1(n,2,10) for n in (0..50)] # G. C. Greubel, Jun 10 2022

Formula

G.f.: x / ( 1 - 2*x + 10*x^2 ). - R. J. Mathar, Jun 01 2011
E.g.f.: (1/3)*exp(x)*sin(3*x). - Franck Maminirina Ramaharo, Nov 13 2018
a(n) = 10^((n-1)/2) * ChebyshevU(n-1, 1/sqrt(10)). - G. C. Greubel, Jun 10 2022
a(n) = (1/3)*10^(n/2)*sin(n*arctan(3)) = Sum_{k=0..floor(n/2)} (-1)^k*3^(2*k)*binomial(n,2*k+1). - Gerry Martens, Oct 15 2022

A001607 a(n) = -a(n-1) - 2*a(n-2).

Original entry on oeis.org

0, 1, -1, -1, 3, -1, -5, 7, 3, -17, 11, 23, -45, -1, 91, -89, -93, 271, -85, -457, 627, 287, -1541, 967, 2115, -4049, -181, 8279, -7917, -8641, 24475, -7193, -41757, 56143, 27371, -139657, 84915, 194399, -364229, -24569, 753027, -703889
Offset: 0

Views

Author

Keywords

Comments

The sequences A001607, A077020, A107920, A167433, A169998 are all essentially the same except for signs.
Apart from the sign, this is an example of a sequence of Lehmer numbers. In this case, the two parameters, alpha and beta, are (1 +- i*sqrt(7))/2. Bilu, Hanrot, Voutier and Mignotte show that all terms of a Lehmer sequence a(n) have a primitive factor for n > 30. Note that for this sequence, a(30) = 24475 = 5*5*11*89 has no primitive factors. - T. D. Noe, Oct 29 2003

References

  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Apart from signs, same as A077020.
Cf. A172250.

Programs

  • Magma
    [n eq 1 select 0 else n eq 2 select 1 else -Self(n-1)-2*Self(n-2): n in [1..50]]; // Vincenzo Librandi, Aug 22 2011
    
  • Mathematica
    LinearRecurrence[{-1,-2},{0,1},60] (* Harvey P. Dale, Aug 21 2011 *)
  • PARI
    a(n)=if(n<0,0,polcoeff(x/(1+x+2*x^2)+x*O(x^n),n))
    
  • PARI
    a(n)=if(n<0,0,2*imag(((-1+quadgen(-28))/2)^n))
    
  • SageMath
    A001607=BinaryRecurrenceSequence(-1,-2,0,1)
    [A001607(n) for n in range(51)] # G. C. Greubel, Mar 24 2024

Formula

G.f.: x/(1+x+2*x^2).
a(n) = Sum_{k=0..n-1} (-1)^(n-k-1)*binomial(n-k-1, k)*2^k = -2/sqrt(7)*(-sqrt(2))^n*(sin(n*arctan(sqrt(7)))). - Vladeta Jovovic, Feb 05 2003
x/(x^2+x+2) = Sum_{n>=0} a(n)*(x/2)^n. - Benoit Cloitre, Mar 12 2002
4*2^n = A002249(n)^2 + 7*A001607(n)^2. See A077020, A077021.
a(n+1) = Sum_{k=0..n} A172250(n,k)*(-1)^k. - Philippe Deléham, Feb 15 2012
G.f.: x - 2*x^2 + 2*x^2/(G(0)+1) where G(k) = 1 + x/(1 - x/(x - 1/G(k+1) )); (recursively defined continued fraction). - Sergei N. Gladkovskii, Dec 16 2012
a(n) = 2^((n-1)/2)*ChebyshevU(n-1, -1/(2*sqrt(2))). - G. C. Greubel, Mar 24 2024
a(n) = (i*(((-1 - i*sqrt(7))/2)^n - ((-1 + i*sqrt(7))/2)^n))/sqrt(7). - Alan Michael Gómez Calderón, Jul 09 2024; after T. D. Noe, Oct 29 2003

A060728 Numbers n such that Ramanujan's equation x^2 + 7 = 2^n has an integer solution.

Original entry on oeis.org

3, 4, 5, 7, 15
Offset: 1

Views

Author

Lekraj Beedassy, Apr 25 2001

Keywords

Comments

See A038198 for corresponding x. - Lekraj Beedassy, Sep 07 2004
Also numbers such that 2^(n-3)-1 is in A000217, i.e., a triangular number. - M. F. Hasler, Feb 23 2009
With respect to M. F. Hasler's comment above, all terms 2^(n-3) - 1 are known as the Ramanujan-Nagell triangular numbers (A076046). - Raphie Frank, Mar 31 2013
Interestingly enough, all the solutions correspond to noncomposite x, i.e., x = 1 for the first term, and primes 3, 5, 11, 181 for the following terms. - M. F. Hasler, Mar 11 2024

Examples

			The fifth and ultimate solution to Ramanujan's equation is obtained for the 15th power of 2, so that we have x^2 + 7 = 2^15 yielding x = 181.
		

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 181, p. 56, Ellipses, Paris 2008.
  • J. Roberts, Lure of the Integers. pp. 90-91, MAA 1992.
  • Ian Stewart & David Tall, Algebraic Number Theory and Fermat's Last Theorem, 3rd Ed. Natick, Massachusetts (2002): 96-98.

Crossrefs

Programs

  • Magma
    [n: n in [0..100] | IsSquare(2^n-7)]; // Vincenzo Librandi, Jan 07 2014
    
  • Mathematica
    ramaNagell[n_] := Reduce[x^2 + 7 == 2^n, x, Integers] =!= False; Select[ Range[100], ramaNagell] (* Jean-François Alcover, Sep 21 2011 *)
  • PARI
    is(n)=issquare(2^n-7) \\ Anders Hellström, Dec 12 2015

Formula

a(n) = log_2(8*A076046(n) + 8) = log_2(A227078(n) + 7)
Empirically, a(n) = Fibonacci(c + 1) + 2 = ceiling[e^((c - 1)/2)] + 2 where {c} is the complete set of positive solutions to {n in N | 2 cos(2*Pi/n) is in Z}; c is in {1,2,3,4,6} (see A217290).

Extensions

Added keyword "full", M. F. Hasler, Feb 23 2009

A002249 a(n) = a(n-1) - 2*a(n-2) with a(0) = 2, a(1) = 1.

Original entry on oeis.org

2, 1, -3, -5, 1, 11, 9, -13, -31, -5, 57, 67, -47, -181, -87, 275, 449, -101, -999, -797, 1201, 2795, 393, -5197, -5983, 4411, 16377, 7555, -25199, -40309, 10089, 90707, 70529, -110885, -251943, -30173, 473713, 534059, -413367, -1481485
Offset: 0

Views

Author

Keywords

Comments

4*2^n = A002249(n)^2 + 7*A001607(n)^2. See A077020, A077021.
Among presented initial elements of the sequence a(n), the maximal increasing or decreasing subsequences have length either 3 or 4. - Roman Witula, Aug 21 2012
This is the Lucas Sequence V_n(P, Q) = V_n(1, 2). U_n(1, 2) = A107920(n). - Raphie Frank, Dec 25 2013
The only numbers that occur more than once are 1=a(1)=a(4) and -5=a(3)=a(9). See Noam D. Elkies's posting in the Mathematics Stack Exchange link. - Robert Israel, Dec 21 2016

Examples

			We have a(2)-a(7) = a(5)-a(4) = a(6)+a(4) = a(11)-a(10) = a(12)+a(10)=10. Further the following relations: ((1+i*sqrt(7))/2)^4 + ((1-i*sqrt(7))/2)^4 = 1 and ((1+i*sqrt(7))/2)^8 + ((1-i*sqrt(7))/2)^8 = -31. - _Roman Witula_, Aug 21 2012
G.f. = 2 + x - 3*x^2 - 5*x^3 + x^4 + 11*x^5 + 9*x^6 - 13*x^7 - 31*x^8 + ...
From _Raphie Frank_, Dec 05 2015: (Start)
V_n(1, 2) = a(1*n) = ((a(1) + sqrt(-7))/2)^n + ((a(1) - sqrt(-7))/2)^n; a(1) = 1.
V_n(-3, 4) = a(2*n) = ((a(2) + sqrt(-7))/2)^n + ((a(2) - sqrt(-7))/2)^n; a(2) = -3.
V_n(-5, 8) = a(3*n) = ((a(3) + sqrt(-7))/2)^n + ((a(3) - sqrt(-7))/2)^n; a(3) = -5.
V_n(11, 32) = a(5*n) = ((a(5) + sqrt(-7))/2)^n + ((a(5) - sqrt(-7))/2)^n; a(5) = 11.
V_n(-181, 8192) = a(13*n) = ((a(13) + sqrt(-7))/2)^n + ((a(13) - sqrt(-7))/2)^n; a(13) = -181.
(End)
		

Crossrefs

Programs

  • Magma
    I:=[2,1]; [n le 2 select I[n] else Self(n-1)-2*Self(n-2): n in [1..50]]; // Vincenzo Librandi, Nov 29 2015
    
  • Maple
    A002249 := proc(n) option remember; >if n = 1 then 1 elif n = 2 then -3 else A002249(n-1>)-2*A002249(n-2); fi; end;
  • Mathematica
    LinearRecurrence[{1,-2}, {2,1}, 50] (* Roman Witula, Aug 21 2012 *)
    a[ n_] := 2^(n/2) ChebyshevT[ n, 8^(-1/2)] 2; (* Michael Somos, Jun 02 2014 *)
    a[ n_] := 2^Min[0, n] SeriesCoefficient[ (2 - x) / (1 - x + 2 x^2), {x, 0, Abs @ n}]; (* Michael Somos, Jun 02 2014 *)
    Table[2 Re[((1 + I Sqrt[7])/2)^n], {n, 0, 40}] (* Jean-François Alcover, Jun 02 2017 *)
  • PARI
    {a(n) = if( n<0, 2^n * a(-n), polsym(2 - x + x^2, n)[n+1])}; /* Michael Somos, Jun 02 2014 */
    
  • PARI
    {a(n) = 2 * real( ((1 + quadgen(-28)) / 2)^n )}; /* Michael Somos, Jun 02 2014 */
    
  • PARI
    x='x+O('x^100); Vec((2-x)/(1-x+2*x^2)) \\ Altug Alkan, Dec 04 2015
    
  • Python
    from sympy import sqrt, re, I
    def a(n): return 2*re(((1 + I*sqrt(7))/2)**n)
    print([a(n) for n in range(40)]) # Indranil Ghosh, Jun 02 2017
  • Sage
    [lucas_number2(n,1,2) for n in range(0, 40)] # Zerinvary Lajos, Apr 30 2009
    

Formula

G.f.: (2-x)/(1-x+2x^2). - Michael Somos, Oct 18 2002
a(n) = trace(A^n) for the square matrix A=[1, -2; 1, 0]. - Paul Barry, Sep 05 2003
a(n) = 2^((n+2)/2)*cos(-n*acot(sqrt(7)/7)). - Paul Barry, Sep 06 2003
a(n) = (-1)^n*(2*A110512(n) - A001607(n)) = ((1 + i*sqrt(7))/2)^n + ((1 - i*sqrt(7))/2)^n. - Roman Witula, Aug 21 2012
G.f.: G(0), where G(k) = 1 + 1/(1 - x*(7*k+1)/(x*(7*k+8) + 2/G(k+1))); (continued fraction). - Sergei N. Gladkovskii, Jun 03 2013
(a(A060728(n) - 2))^2 = (A107920(2*(A060728(n)) - 4))^2 = 2^(A060728(n)) - 7 = A227078(n), the Ramanujan-Nagell squares. - Raphie Frank, Dec 25 2013
a(n) = [x^n] ( (1 + x + sqrt(1 + 2*x - 7*x^2))/2 )^n for n >= 1. - Peter Bala, Jun 23 2015
a(n) = (A107920(n+1) + 2*A107920(n+2) - A107920(n+3))/2. - Raphie Frank, Nov 28 2015
V_n(P,Q) = a(k*n) = ((a(k) + sqrt(-7))/2)^n + ((a(k) - sqrt(-7))/2)^n for k is in {1, 2, 3, 5, 13} = (A060728(n) - 2), P is in {1, -3, -5, 11, -181} = a(k), and Q is in {2, 4, 8, 32, 8192} = 2^k = (2*A076046(n) + 2) = (A227078(n) - 7)/4. P^2 - 4*Q = -7. - Raphie Frank, Dec 05 2015
From Peter Bala, Nov 16 2022: (Start)
The Gauss congruences hold: a(n*p^k) == a(n*p^(k-1)) (mod p^k) for all positive integers n and k and all primes p.
A268924(n) == a(3^n) (mod 3^n). (End)

A038198 Numbers n such that n^2 + 7 is a power of 2.

Original entry on oeis.org

1, 3, 5, 11, 181
Offset: 1

Views

Author

Keywords

Comments

The exponents of the corresponding powers of 2 are 3, 4, 5, 7, 15 (see Ramanujan). - N. J. A. Sloane, Jun 01 2014
The terms lead to identities resembling Machin's Pi/4 = arctan(1/1) = 4*arctan(1/5) - arctan(1/239), for example, arctan(sqrt(7)/1) = 5*arctan(sqrt(7)/11) + 2*arctan(sqrt(7)/181), which can also be expressed as arcsin(sqrt(7/2^3)) = 5*arcsin(sqrt(7/2^7)) + 2*arcsin(sqrt(7/2^15)) (cf. A168229). - Joerg Arndt, Nov 09 2012

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 181, p. 56, Ellipses, Paris 2008.
  • L. J. Mordell, Diophantine Equations, Academic Press, NY, 1969, p. 205.
  • S. Ramanujan, Collected Papers, Ed. G. H. Hardy et al., Cambridge 1927; Chelsea, NY, 1962. See Question 464, p. 327. - N. J. A. Sloane, Jun 01 2014

Crossrefs

Programs

  • Mathematica
    ok[n_] := Reduce[k>0 && n^2 + 7 == 2^k, k, Integers] =!= False; Select[Range[1000], ok] (* Jean-François Alcover, Sep 21 2011 *)
  • PARI
    [x | n<-[0..99], issquare(2^n-7,&x)] \\ M. F. Hasler, Mar 11 2024

A077020 a(n) is the unique odd positive solution x of 2^n = 7x^2+y^2.

Original entry on oeis.org

1, 1, 1, 3, 1, 5, 7, 3, 17, 11, 23, 45, 1, 91, 89, 93, 271, 85, 457, 627, 287, 1541, 967, 2115, 4049, 181, 8279, 7917, 8641, 24475, 7193, 41757, 56143, 27371, 139657, 84915, 194399, 364229, 24569, 753027, 703889, 802165, 2209943, 605613
Offset: 3

Views

Author

Ed Pegg Jr, Oct 17 2002

Keywords

Comments

The sequences A001607, A077020, A107920, A167433, A169998 are all essentially the same except for signs.

Examples

			G.f. = x^3 + x^4 + x^5 + 3*x^6 + x^7 + 5*x^8 + 7*x^9 + 3*x^10 + 17*x^11 + ...
a(3)=1 since 2^3=8=7*1^2+1^2, a(6)=3 since 2^6=64=7*3^2+1^2.
		

References

  • A. Engel, Problem-Solving Strategies. p. 126.

Crossrefs

a(n)=abs(A001607(n-2)).
Cf. A077021.

Formula

a(n) = 2^(n-2) * a(4-n) for all n in Z. - Michael Somos, Jan 05 2017
0 = 8*a(n)^2 + 2*a(n+1)^2 - a(n+2)^2 - a(n+3)^2 for all n in Z. - Michael Somos, Jan 05 2017
2*a(n) + a(n+1) = a(n+2) or a(n+3). - Michael Somos, Jan 05 2017

A145934 Expansion of 1/(1-x*(1-6*x)).

Original entry on oeis.org

1, 1, -5, -11, 19, 85, -29, -539, -365, 2869, 5059, -12155, -42509, 30421, 285475, 102949, -1609901, -2227595, 7431811, 20797381, -23793485, -148577771, -5816861, 885649765, 920550931, -4393347659, -9916653245, 16443432709
Offset: 0

Views

Author

Philippe Deléham, Oct 25 2008

Keywords

Comments

Row sums of Riordan array (1, x(1-6x)).
For positive n, a(n) equals the determinant of the n X n tridiagonal matrix with 1's along the main diagonal, 3's along the superdiagonal, and 2's along the subdiagonal (see Mathematica code below). - John M. Campbell, Jul 08 2011

Crossrefs

Programs

  • Magma
    I:=[1,1]; [n le 2 select I[n] else Self(n-1) - 6*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 14 2018
  • Mathematica
    Table[Det[Array[KroneckerDelta[#1, #2] + KroneckerDelta[#1, #2 + 1]*2 + KroneckerDelta[#1, #2 - 1]*3 &, {n, n}]], {n, 1, 40}] (* John M. Campbell, Jul 08 2011 *)
    LinearRecurrence[{1,-6}, {1,1}, 30] (* G. C. Greubel, Jan 14 2018 *)
  • PARI
    Vec(1/(1-x*(1-6*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 23 2012
    
  • Sage
    [lucas_number1(n,1,6) for n in range(1, 29)] # Zerinvary Lajos, Apr 22 2009
    

Formula

a(n) = Sum_{k=0..n} A109466(n,k)*6^(n-k).
a(n) = a(n-1) - 6*a(n-2); a(0)=1, a(1)=1. - Philippe Deléham, Oct 25 2008

A145976 Expansion of 1/(1-x*(1-7*x)).

Original entry on oeis.org

1, 1, -6, -13, 29, 120, -83, -923, -342, 6119, 8513, -34320, -93911, 146329, 803706, -220597, -5846539, -4302360, 36623413, 66739933, -189623958, -656803489, 670564217, 5268188640, 574239121, -36303081359, -40322755206, 213798814307
Offset: 0

Views

Author

Philippe Deléham, Oct 26 2008

Keywords

Comments

Row sums of Riordan array (1,x(1-7x)).

Crossrefs

Programs

  • Magma
    I:=[1,1]; [n le 2 select I[n] else Self(n-1) - 7*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 19 2018
  • Mathematica
    Join[{a=1,b=1},Table[c=b-7*a;a=b;b=c,{n,80}]] (* Vladimir Joseph Stephan Orlovsky, Jan 22 2011 *)
    CoefficientList[Series[1/(1-x(1-7x)),{x,0,50}],x] (* or *) LinearRecurrence[{1,-7},{1,1},50] (* Harvey P. Dale, May 11 2011 *)
  • PARI
    Vec(1/(1-x*(1-7*x)) + O(x^40)) \\ Michel Marcus, Jan 29 2016
    
  • Sage
    [lucas_number1(n,1,7) for n in range(1, 29)] # Zerinvary Lajos, Apr 22 2009
    

Formula

a(n) = a(n-1) - 7*a(n-2), a(0)=1, a(1)=1.
a(n) = Sum_{k=0..n} A109466(n,k)*7^(n-k).

Extensions

Corrected by Zerinvary Lajos, Apr 22 2009
Corrected by D. S. McNeil, Aug 20 2010
Showing 1-10 of 30 results. Next