OFFSET
1,4
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..200
FORMULA
EXAMPLE
There are no primes between HCN(1) and HCN(2), so a(1) = 0. The next term a(2) is equal to 1 as 3 is the only prime between HCN(2) and HCN(3); the prime 2 is not greater than HCN(2) and so is omitted here. The first gap to contain more than one prime occurs at a(4) = 2, which alludes to 7 and 11 being the only primes contained within HCN(4) and HCN(5).
MATHEMATICA
Join[{0}, PrimePi[#[[2]]]-PrimePi[#[[1]]]&/@Partition[DeleteDuplicates[Table[ {n, DivisorSigma[ 0, n]}, {n, 2, 22*10^5}], GreaterEqual[#1[[2]], #2[[2]]]&][[All, 1]], 2, 1]] (* Harvey P. Dale, Jan 09 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robin Powell, Apr 03 2020
EXTENSIONS
More terms from Giovanni Resta, Apr 04 2020
STATUS
approved