OFFSET
1,1
COMMENTS
Includes all numbers whose prime factorization has one 2 and no 3's, or three 2's and one 3.
Numbers k such that v_2(k) - 2*v_3(k) = 1, where v_p(k) is the p-adic valuation of k. - Amiram Eldar, Dec 12 2021
Numbers of the form 2 * 12^k * A007310(m) for k >= 0 and m >= 1. - David A. Corneth, Dec 12 2021
The asymptotic density of this sequence is 2/11. - Amiram Eldar, Feb 02 2024
LINKS
Winston de Greef, Table of n, a(n) for n = 1..10000
EXAMPLE
30 is not in the sequence: 30*3=90 has 12 divisors, but 30*4=120 has 16 divisors.
MATHEMATICA
Select[Range[300], IntegerExponent[#, 2] - 2 * IntegerExponent[#, 3] == 1 &] (* Amiram Eldar, Dec 12 2021 *)
PROG
(PARI) isok(k) = numdiv(3*k) == numdiv(4*k); \\ Michel Marcus, Dec 12 2021
(PARI) isok(n) = valuation(n, 2) - 2 * valuation(n, 3) == 1; \\ Amiram Eldar, Feb 02 2024
(Python)
from sympy import multiplicity as v
def ok(n): return v(2, n) - 2*v(3, n) == 1
print([k for k in range(1, 315) if ok(k)]) # Michael S. Branicky, Feb 02 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
J. Lowell, Dec 11 2021
EXTENSIONS
More terms from Michel Marcus, Dec 12 2021
STATUS
approved