OFFSET
1,1
COMMENTS
EXAMPLE
Prime 5 is in this sequence because A051027(5) = 8 = 2^3.
MATHEMATICA
Select[Prime@ Range[10^5], IntegerQ@ Log2@ Nest[DivisorSigma[1, #] &, # - 1, 2] &] (* Michael De Vlieger, Sep 08 2016 *)
PROG
(Magma) [2] cat [n: n in[3..10^8] | IsPrime(n) and IsPower(SumOfDivisors(SumOfDivisors(n-1))) and &+[d: d in PrimeDivisors(SumOfDivisors(SumOfDivisors(n-1)))] eq 2]
(PARI) lista(nn) = forprime(p=2, nn, if (ispower(sigma(sigma(p-1)), , &k) && (k==2), print1(p, ", "))); \\ Michel Marcus, Sep 08 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jaroslav Krizek, Sep 07 2016
EXTENSIONS
a(8) from Lars Blomberg, Jan 04 2017
STATUS
approved