A215795 Numbers n such that 2^n-1 is a triangular number (A000217).
0, 1, 2, 4, 12
Offset: 1
Links
- Eric Weisstein's World of Mathematics, Ramanujan's Square Equation
Crossrefs
Programs
-
Mathematica
Select[Range[0,15],OddQ[Sqrt[8(2^#-1)+1]]&] (* Harvey P. Dale, Dec 13 2024 *)
-
PARI
is(n)=issquare(8<
Charles R Greathouse IV, Sep 07 2012
Extensions
Four cross-references to the Ramanujan-Nagell problem added by Raphie Frank, Sep 10 2012
Comments