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.

A259157 Positive triangular numbers (A000217) that are hexagonal numbers (A000384) divided by 2.

Original entry on oeis.org

3, 3570, 4119885, 4754343828, 5486508657735, 6331426236682470, 7306460390622912753, 8431648959352604634600, 9730115592632515125415755, 11228544962248963102125146778, 12957731156319710787337293966165, 14953210525847983999624135111807740
Offset: 1

Views

Author

Colin Barker, Jun 19 2015

Keywords

Comments

Intersection of A000217 and A033991 (even hexagonal numbers divided by 2). - Michel Marcus, Jun 20 2015

Examples

			3 is in the sequence because 3 is the 2nd triangular number, and 2*3 is the 2nd hexagonal number.
		

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{1155, -1155, 1}, {3, 3570, 4119885}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
  • PARI
    Vec(-3*x*(35*x+1)/((x-1)*(x^2-1154*x+1)) + O(x^20))

Formula

G.f.: -3*x*(35*x+1) / ((x-1)*(x^2-1154*x+1)).
a(n) = 1155*a(n-1) - 1155*a(n-2) + a(n-3). - Wesley Ivan Hurt, Aug 04 2025