OFFSET
1,2
COMMENTS
A term m > 1 is in the sequence if and only if the exponent of every prime factor in its prime factorization is exactly equal to omega(m). Thus, m must be of the form (p_1 * p_2 * ... * p_k)^k for distinct primes p_i.
Terms are mostly primes: for any p, omega(p) = 1 and rad(p) = p, so rad(p)^omega(p) = p ^ 1.
Except for 1 and the prime numbers (A000040), all terms are perfect powers.
Composite terms are the k-th powers of squarefree numbers having exactly k prime factors. For k = 2, these are the squares of squarefree semiprimes.
LINKS
James C. McMahon, Table of n, a(n) for n = 1..10000
EXAMPLE
m = 36 is a term since rad(36)^omega(36) = 6 ^ 2 = 36.
m = 8 is not a term since rad(8)^omega(8) = 2 ^ 1 = 2 != 8.
MATHEMATICA
q[m_]:=(Times@@First/@FactorInteger[m])^PrimeNu[m]==m; Select[Range[239], q]
PROG
(Python)
from math import prod
from sympy import primefactors
def ok(m): return prod(f := primefactors(m)) ** len(f) == m
print([m for m in range(1, 250) if ok(m)])
(PARI) isok(m) = {my(p = factor(m)[, 1]); m == vecprod(p)^#p; } \\ Amiram Eldar, Jul 02 2026
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Vincenzo Manto and James C. McMahon, Jul 01 2026
STATUS
approved
