OFFSET
1,3
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Ternary.
Wikipedia, Ternary numeral system
EXAMPLE
Initial terms and their ternary representations, cf. A007089:
. 0 1 2 3 4 6 9 10 11 12 13 18 19 20 27 28 29 30 ..
. 0 1 2 10 11 20 100 101 102 110 111 200 201 202 1000 1001 1002 1010 ..
MATHEMATICA
Select[Range[0, 200], Max[Total/@Partition[IntegerDigits[#, 3], 2, 1]]<3&] (* Harvey P. Dale, Jan 08 2023 *)
PROG
(Haskell)
a242407 n = a242407_list !! (n-1)
a242407_list = filter ((== 0) . a242400) [0..]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 13 2014
STATUS
approved