OFFSET
1,2
COMMENTS
The number of terms not exceeding 10^k for k = 1, 2, ... is 3, 36, 426, 4744, 50442, 533806, 5585745, 58013810, 599272790, 6162302702, ... Apparently, this sequence has asymptotic density ~0.6.
Includes all the primes p such that (p+1)/2 is an odd prime, i.e., A005383 without the first term 3.
If p is in A240971 then p^2 is a term.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
5 is a term since sigma(5)/d(5) = 6/2 = 3 is an integer, and so is sigma(3)/d(3) = 4/2 = 2.
MATHEMATICA
rat[n_] := DivisorSigma[1, n]/DivisorSigma[0, n]; Select[Range[200], IntegerQ[(r = rat[#])] && IntegerQ[rat[r]] &]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 12 2020
STATUS
approved