OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..12154 (terms below 10^19)
EXAMPLE
64 = 2^6 is a term since it is powerful and the sum of its powerful divisors, A183097(64) = 1 + 4 + 8 + 16 + 32 + 64 = 125 = 5^3 is also powerful.
MATHEMATICA
powQ[n_] := n == 1 || AllTrue[FactorInteger[n][[;; , 2]], # > 1 &]; f[p_, e_] := (p^(e + 1) - 1)/(p - 1) - p; s[1] = 1; s[n_] := Times @@ f @@@ FactorInteger[n]; q[n_] := powQ[n] && powQ[s[n]]; Select[Range[7*10^6], q]
PROG
(PARI) isok(n) = ispowerful(n) && ispowerful(sumdiv(n, d, d*ispowerful(d))); \\ Michel Marcus, Nov 08 2021
(PARI) is(k) = {my(f = factor(k)); ispowerful(f) && ispowerful(prod(i = 1, #f~, (f[i, 1]^(f[i, 2]+1) - 1)/(f[i, 1] - 1) - f[i, 1])); } \\ Amiram Eldar, Sep 14 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 08 2021
STATUS
approved
