|
|
A154314
|
|
Numbers with not more than two distinct digits in ternary representation.
|
|
8
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 22, 23, 24, 25, 26, 27, 28, 30, 31, 36, 37, 39, 40, 41, 43, 44, 49, 50, 52, 53, 54, 56, 60, 62, 67, 68, 70, 71, 72, 74, 76, 77, 78, 79, 80, 81, 82, 84, 85, 90, 91, 93, 94, 108, 109, 111, 112, 117, 118, 120, 121, 122
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Select[Range[0, 200], Length[Union[IntegerDigits[#, 3]]]<3&] (* Harvey P. Dale, Nov 23 2012 *)
|
|
PROG
|
(Haskell)
import Data.List (findIndices)
a154314 n = a154314_list !! (n-1)
a154314_list = findIndices (/= 3) a212193_list
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|