A226071 Numbers k such that triangular(k)+1 is a square and triangular(k)+2 is a prime.
0, 2, 5, 189, 3074, 218685
Offset: 1
Links
- Max Alekseyev, Table of n, a(n) for n = 1..12
Crossrefs
Programs
-
C
// see A226069.
-
Mathematica
Select[Range[0,220000],IntegerQ[Sqrt[(#(#+1))/2+1]]&&PrimeQ[(#(#+1))/2+2]&] (* Harvey P. Dale, Mar 01 2023 *)
Extensions
Terms a(7)-a(12) from Max Alekseyev, Jan 30 2014
Comments