OFFSET
1,2
COMMENTS
Positive integers k for which the number of trailing 0 digits, which written in ternary, is a multiple of 3.
"Selective sifting" of the positive integers w.r.t. S={3,9}, where s(S) = {positive integers n: n cannot be written n = a*b with a in S, b in s(S), b < n}.
In other words, s(S) is determined by the fact that {s(S), S*s(S)} is a partition of the positive integers.
The asymptotic density of this sequence is 9/13. - Amiram Eldar, Jul 23 2025
LINKS
Jan Snellman, Table of n, a(n) for n = 1..6923
Jan Snellman, Greedy Regular Convolutions, arXiv:2504.02795 [math.NT], 2025.
EXAMPLE
7 is a term since its 3-adic valuation is A007949(7) = 0 which is == 0 (mod 3).
MATHEMATICA
Select[Range[100], Divisible[IntegerExponent[#, 3], 3] &] (* Amiram Eldar, May 13 2025 *)
PROG
(PARI) isok(k) = (valuation(k, 3) % 3) == 0; \\ Michel Marcus, Jun 03 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jan Snellman, May 12 2025
STATUS
approved
