OFFSET
1,1
COMMENTS
Is this a finite sequence?
Ramanujan's largely composite numbers (A067128) are numbers m, such that there is no number from 1 to m - 1 with more divisors than m.
Also numbers k such that (k - 1)*(k + 1) is a Ramanujan's largely composite number.
There is no number k such that 208 < k < 10000 such that A067128(k) + 1 is a square number.
EXAMPLE
13 is in this sequence because 13^2 - 1 = 168 which is a Ramanujan's largely composite number, which is because 168 has 16 divisors, and there is no number between 1 and 167 which has more than 16 divisors.
23 is not in this sequence because 23^2 - 1 = 528 which is not a Ramanujan's largely composite number, which is because 528 has 20 divisors, and between 1 and 527, the numbers 360, 420, 480 and 504 all have more than 20 divisors, and all of them have 24 divisors.
MATHEMATICA
r = 0; Reap[Do[d = DivisorSigma[0, n]; If[d >= r, If[IntegerQ[#], Sow[#]] &[Sqrt[n + 1]]; If[d > r, r = d]], {n, 2^22}] ][[-1, 1]] (* Michael De Vlieger, Jan 31 2026 *)
PROG
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Zhicheng Wei, Jan 26 2026
STATUS
approved
