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.

A165519 Integers k for which k(k+1)(k+2) is a triangular number.

This page as a plain text file.
%I A165519 #30 Jul 03 2025 10:05:18
%S A165519 -2,-1,0,1,4,5,9,56,636
%N A165519 Integers k for which k(k+1)(k+2) is a triangular number.
%C A165519 This sequence is complete; there are no other integers k for which k(k+1)(k+2) is a triangular number.
%C A165519 Integers k such that 8*k*(k+1)*(k+2)+1 is a square. - _Robert Israel_, Nov 07 2014
%D A165519 R. K. Guy, "Figurate Numbers", D3 in Unsolved Problems in Number Theory, 2nd ed., New York, Springer-Verlag, 1994, p. 148.
%D A165519 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 19.
%H A165519 S. P. Mohanty, <a href="https://doi.org/10.1007/BF01903544">Which triangular numbers are products of three consecutive integers?</a>, Acta Math Hung 58, 31-36 (1991).
%e A165519 The third triangular number which is a product of three consecutive integers is 4*5*6=120=T(15), but 4 is the fifth integer k for which k(k+1)(k+2) is a triangular number, so a(5)=4.
%p A165519 select(x -> issqr(8*x^3 + 24*x^2 + 16*x+1), [$-2..1000]); # _Robert Israel_, Nov 07 2014
%t A165519 TriangularNumberQ[k_]:=If[IntegerQ[1/2 (Sqrt[1+8k]-1)],True,False]; Select[Range[750],TriangularNumberQ[ # (#+1)(#+2)] &]
%t A165519 With[{nos=Partition[Range[0,1000],3,1]},Transpose[Select[nos, IntegerQ[ (Sqrt[1+8Times@@#]-1)/2]&]][[1]]] (* _Harvey P. Dale_, Dec 25 2011 *)
%o A165519 (PARI) isok(k) = ispolygonal(k*(k+1)*(k+2), 3); \\ _Michel Marcus_, Oct 31 2014
%o A165519 (Magma) [-2,-1] cat [n: n in [0..1000] | IsSquare(8*n^3+24*n^2 +16*n+1)]; // _Vincenzo Librandi_, Nov 10 2014
%Y A165519 Cf. A000217, A001219.
%K A165519 sign,fini,full
%O A165519 1,1
%A A165519 _Ant King_, Sep 28 2009
%E A165519 Initial 0 added by _Alexander R. Povolotsky_, Sep 29 2009
%E A165519 Initial -2 and -1 added by _Alex Ratushnyak_, Nov 07 2014