OFFSET
1,1
COMMENTS
From Bernard Schott, Jun 19 2023: (Start)
A003946 \ {1} is a subsequence since for m = 4*3^(k-1) with k >= 1, ternary expansion of m is 110...0 with (k-1) trailing 0's.
A034472 \ {2} is a subsequence since for m = 3^k + 1 with k >= 1, ternary expansion of m is 10...01 with (k-1) 0's between first and last 1's. (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
30 is a term since 30 = 1010_3 with exactly 2 1's.
MATHEMATICA
Select[ Range[ 162 ], (Count[ IntegerDigits[ #, 3 ], 1 ]==2)& ]
PROG
(PARI) isok(k) = #select(x->(x==1), digits(k, 3)) == 2; \\ Michel Marcus, Jun 19 2023
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved