OFFSET
1,1
COMMENTS
Numbers that have one even prime factor (2) and an odd number of odd prime factors with multiplicity.
Numbers that have an even number of prime factors with multiplicity and whose arithmetic derivative (A003415) is odd.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 2*A067019(n).
MATHEMATICA
Select[Range[2, 400, 4], EvenQ[PrimeOmega[#]] &] (* Paolo Xausa, Jan 21 2026 *)
PROG
(PARI) \\ See A369965
(Python)
from math import isqrt, prod
from sympy import primerange, integer_nthroot, primepi
from oeis_sequences.OEISsequences import bisection
def A369966(n):
def g(x, a, b, c, m): yield from (((d, ) for d in enumerate(primerange(b, isqrt(x//c)+1), a)) if m==2 else (((a2, b2), )+d for a2, b2 in enumerate(primerange(b, integer_nthroot(x//c, m)[0]+1), a) for d in g(x, a2, b2, c*b2, m-1)))
def f(x): return int(n+2+x-(y:=x>>1)+sum(sum(primepi(y//prod(c[1] for c in a))-a[-1][0] for a in g(y, 0, 1, 1, m)) for m in range(2, x.bit_length(), 2))+sum(sum(primepi((y>>1)//prod(c[1] for c in a))-a[-1][0] for a in g(y>>1, 0, 1, 1, m)) for m in range(2, x.bit_length()-1, 2)))
return bisection(f, n, n) # Chai Wah Wu, Dec 19 2025
CROSSREFS
Cf. A369661 (numbers whose arithmetic derivative is in this sequence).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 08 2024
STATUS
approved
