OFFSET
1,1
COMMENTS
The number of terms not exceeding 10^m, for m = 1, 2, ..., are 1, 21, 216, 2186, 21921, 219274, 2192979, 21930103, 219301557, 2193017386, ... . Apparently, the asymptotic density of this sequence exists and equals 0.21930... . - Amiram Eldar, Jun 24 2022
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
50 = 2^1 * 5^2. 2 is both a prime dividing 50 and the exponent of the highest power of 5 dividing 50. So 50 is in the sequence.
144 = 2^4 * 3^2. 2 is a prime dividing 144 and the exponent of the highest power of 3 dividing 144. So 144 is in the sequence.
MATHEMATICA
Select[Range[2, 300], Intersection @@ Transpose[FactorInteger[ # ]] != {} &] (* Ray Chandler, Nov 09 2005 *)
PROG
(Python)
from sympy import factorint
def aupto(limit):
alst = []
for k in range(4, limit+1):
f = factorint(k)
# if max(f[p] for p in f) in f: alst.append(k)
if set(f[p] for p in f) & set(f) != set(): alst.append(k)
return alst
print(aupto(270)) # Michael S. Branicky, Apr 12 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 08 2005
EXTENSIONS
Extended by Ray Chandler and Robert G. Wilson v, Nov 09 2005
Wrong Mathematica code removed by Amiram Eldar, Jun 24 2022
STATUS
approved