OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..2000 (first 77 terms from Amiram Eldar)
EXAMPLE
sigma(343) = 400 = 20^2 and sigma(400) = 961 = 31^2, so 343 belongs to the sequence.
MATHEMATICA
l = {}; For[i = 1, i <= 10^6, i++, a = DivisorSigma[1, i]; b = DivisorSigma[1, a]; If[IntegerQ[a^(1/2)] && IntegerQ[b^(1/2)], l = Append[l, i]]]; l
PROG
(PARI) isok(n) = issquare(sigma(n)) && issquare(sigma(sigma(n))); \\ Michel Marcus, Aug 15 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jan 14 2008
STATUS
approved