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.
%I A076046 #53 Feb 16 2025 08:32:47 %S A076046 0,1,3,15,4095 %N A076046 Ramanujan-Nagell numbers: the triangular numbers (of the form a*(a+1)/2) which are also of the form 2^b - 1. %C A076046 Ramanujan conjectured and Nagell proved, that the given numbers are the only ones. This sequence is equivalent to A060728, the list of numbers n such that x^2 + 7 = 2^n is soluble, by changing from n to 2^(n-3)-1. %C A076046 These 5 numbers are therefore the only ones which appear in column k=2 and also in the first subdiagonal of the Stirling2 Sheffer matrix S(n,k) = A048993(n,k). These entries are 0 = S(0, 2) = S(1, 2) = S(1, 0), 1 = S(2, 2) = S(2, 1), 3 = S(3, 2) (intersection of the column k=2 with the first subdiagonal), 15 = S(5, 2) = S(6, 5) and 4095 = S(13, 2) = S(91, 90). The motivation to look into this came from a comment of R. J. Cano on A247024. - _Wolfdieter Lang_, Oct 16 2014 %C A076046 Named after the Indian mathematician Srinivasa Ramanujan (1887-1920) and the Norwegian mathematician Trygve Nagell (1895-1988). - _Amiram Eldar_, Jun 22 2021 %D A076046 J. H. Conway and N. J. A. Sloane, "Sphere Packings, Lattices and Groups", Springer-Verlag, 3rd, 1999. See Chapter 6. %D A076046 T. Nagell. The Diophantine equation x^2 + 7 = 2^n. Nordisk Mat. Tidskr., Vol. 30 (1948), pp. 62-64; Ark. Math., Vol. 4 (1960), pp. 185-187. %H A076046 Yann Bugeaud and T. N. Shorey. <a href="http://dx.doi.org/10.1515/crll.2001.079">On the number of solutions of the generalized Ramanujan-Nagell equation</a>, J. reine angew. Math., Vol. 539 (2001), pp. 55-74. %H A076046 Helmut Hasse, <a href="http://projecteuclid.org/euclid.nmj/1118801617">Uber eine diophantische Gleichung von Ramanujan-Nagell und ihre Verallgemeinerung</a>, Nagoya Math. J., Vol. 27 (1966), pp. 77-102. %H A076046 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/RamanujansSquareEquation.html">Ramanujan's Square Equation</a>. %e A076046 4095 can be written as 90*(90+1)/2, but also as 2^12 - 1. %t A076046 Reap[For[b = 0, b <= 12, b++, If[IntegerQ[(Sqrt[2^(b + 3) - 7] - 1)/2], Sow[2^b - 1]]]][[2, 1]] (* _Jean-François Alcover_, Jul 05 2017 *) %t A076046 Select[Accumulate[Range[0,200]],IntegerQ[Log[2,#+1]]&] (* _Harvey P. Dale_, Aug 27 2019 *) %Y A076046 Cf. A060728, A038198, A180445, A215797. %K A076046 fini,full,nonn %O A076046 1,3 %A A076046 Burt Totaro (b.totaro(AT)dpmms.cam.ac.uk), Oct 29 2002