OFFSET
1,1
COMMENTS
These are the numbers 2x and 3x as x ranges through the numbers in A036668.
Numbers whose squarefree part is divisible by exactly one of {2, 3}. - Peter Munn, Aug 24 2020
The asymptotic density of this sequence is 5/12. - Amiram Eldar, Sep 20 2020
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Symmetric difference
FORMULA
MATHEMATICA
a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1, Apply[Or,
Map[MemberQ[a, #] &, Select[Flatten[{#/3, #/2}],
IntegerQ]]] &]], {150}]; a (* A036668 *)
Complement[Range[Last[a]], a] (* A325424 *)
(* Peter J. C. Moses, Apr 23 2019 *)
PROG
(Python)
from itertools import count
def A325424(n):
def bisection(f, kmin=0, kmax=1):
while f(kmax) > kmax: kmax <<= 1
kmin = kmax >> 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
def f(x):
c = n
for i in range(x.bit_length()+1):
i2 = 1<<i
for j in count(i&1, 2):
k = i2*3**j
if k>x:
break
m = x//k
c += (m-1)//6+(m-5)//6+2
return c
return bisection(f, n, n) # Chai Wah Wu, Jan 28 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 26 2019
STATUS
approved
