OFFSET
1,1
EXAMPLE
The terms together with their prime factors begin:
20: [2, 2, 5]
60: [2, 2, 3, 5]
180: [2, 2, 3, 3, 5]
189: [3, 3, 3, 7]
400: [2, 2, 2, 2, 5, 5]
540: [2, 2, 3, 3, 3, 5]
1200: [2, 2, 2, 2, 3, 5, 5]
1372: [2, 2, 7, 7, 7]
1620: [2, 2, 3, 3, 3, 3, 5]
2541: [3, 7, 11, 11]
2835: [3, 3, 3, 3, 5, 7]
3185: [5, 7, 7, 13]
3600: [2, 2, 2, 2, 3, 3, 5, 5]
4860: [2, 2, 3, 3, 3, 3, 3, 5]
The prime factors of 4860 are [2, 2, 3, 3, 3, 3, 3, 5], with minimum 2, maximum 5, and mean 3, and 5-2 = 3, so 4860 is in the sequence.
PROG
(Python)
from itertools import count, islice
from math import prod
from sympy import factorint
def A362268_gen(startvalue=2): # generator of terms >= startvalue
return filter(lambda n:(max(f:=factorint(n))-min(f))*sum(f.values())==sum(map(prod, f.items())), count(max(startvalue, 2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Apr 13 2023
STATUS
approved