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

A048920 Indices of heptagonal numbers (A000566) which are also 9-gonal.

Original entry on oeis.org

1, 104, 14725, 2090804, 296879401, 42154784096, 5985682462189, 849924754846700, 120683329505769169, 17136182865064375256, 2433217283509635517141, 345499718075503179058724
Offset: 1

Views

Author

Keywords

Comments

As n increases, this sequence is approximately geometric with common ratio r = lim_{n->infinity} a(n)/a(n-1) = (6 + sqrt(35))^2 = 71 + 12*sqrt(35). - Ant King, Dec 31 2011

Crossrefs

Programs

  • Magma
    I:=[1, 104, 14725]; [n le 3 select I[n] else 143*Self(n-1)-143*Self(n-2)+Self(n-3): n in [1..30]]; // Vincenzo Librandi, Dec 21 2011
  • Mathematica
    LinearRecurrence[{143,-143,1},{1,104,14725},30] (* Vincenzo Librandi, Dec 21 2011 *)
  • Maxima
    makelist(expand((42+(-21+5*sqrt(35))*(6+sqrt(35))^(2*n-1)-(21+5*sqrt(35))*(6-sqrt(35))^(2*n-1))/140), n, 1, 12); /* Bruno Berselli, Dec 20 2011 */
    

Formula

From Bruno Berselli, Dec 20 2011: (Start)
G.f.: x*(1 - 39*x - 4*x^2)/((1-x)*(1 - 142*x + x^2)).
a(n) = (42 + (-21+5r)*(6+r)^(2n-1) - (21+5r)*(6-r)^(2n-1))/140, where r=sqrt(35). (End)
From Ant King, Dec 31 2011: (Start)
a(n) = 142*a(n-1) - a(n-2) - 42.
a(n) = ceiling(1/140*(49+9*sqrt(35))*(6+sqrt(35))^(2*n-2)).
(End)

A048919 Indices of 9-gonal numbers which are also heptagonal.

Original entry on oeis.org

1, 88, 12445, 1767052, 250908889, 35627295136, 5058825000373, 718317522757780, 101996029406604337, 14482717858215058024, 2056443939837131635021, 292000556739014477114908
Offset: 1

Views

Author

Keywords

Comments

As n increases, this sequence is approximately geometric with common ratio r = lim_{n->oo} a(n)/a(n-1) = (6 + sqrt(35))^2 = 71 + 12*sqrt(35). - Ant King, Jan 01 2012

Crossrefs

Programs

  • Magma
    I:=[1, 88, 12445]; [n le 3 select I[n] else 143*Self(n-1)-143*Self(n-2)+Self(n-3): n in [1..30]]; // Vincenzo Librandi, Dec 21 2011
    
  • Mathematica
    LinearRecurrence[{143,-143,1},{1,88,12445},30] (* Vincenzo Librandi, Dec 21 2011 *)
  • Maxima
    makelist(expand((50+(25-3*sqrt(35))*(6+sqrt(35))^(2*n-1)+(25+3*sqrt(35))*(6-sqrt(35))^(2*n-1))/140), n, 1, 12); /* Bruno Berselli, Dec 21 2011 */

Formula

G.f.: -x*(1 - 55*x + 4*x^2) / ( (x-1)*(x^2 - 142*x + 1) ). - R. J. Mathar, Dec 21 2011
a(n) = (50 + (25-3r)*(6+r)^(2n-1) + (25+3r)*(6-r)^(2n-1))/140, where r=sqrt(35). - Bruno Berselli, Dec 21 2011
From Ant King, Jan 01 2012: (Start)
a(n) = 142*a(n-1) - a(n-2) - 50.
a(n) = ceiling(1/140*(45 + 7*sqrt(35))*(6 + sqrt(35))^(2*n - 2)). (End)
Showing 1-2 of 2 results.