login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A154314 Numbers with not more than two distinct digits in ternary representation. 8

%I #11 Mar 17 2014 13:50:16

%S 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,

%T 31,36,37,39,40,41,43,44,49,50,52,53,54,56,60,62,67,68,70,71,72,74,76,

%U 77,78,79,80,81,82,84,85,90,91,93,94,108,109,111,112,117,118,120,121,122

%N Numbers with not more than two distinct digits in ternary representation.

%C A043530(a(n)) <= 2; complement of A031944; union of A032924, A005823 and A005836.

%C A212193(a(n)) <> 3. - _Reinhard Zumkeller_, May 04 2012

%H Reinhard Zumkeller, <a href="/A154314/b154314.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) >> n^1.58..., where the exponent is log(3)/log(2). - _Charles R Greathouse IV_, Mar 17 2014

%t Select[Range[0,200],Length[Union[IntegerDigits[#,3]]]<3&] (* _Harvey P. Dale_, Nov 23 2012 *)

%o (Haskell)

%o import Data.List (findIndices)

%o a154314 n = a154314_list !! (n-1)

%o a154314_list = findIndices (/= 3) a212193_list

%o -- _Reinhard Zumkeller_, May 04 2012

%o (PARI) is(n)=#Set(digits(n,3))<3 \\ _Charles R Greathouse IV_, Mar 17 2014

%Y Cf. A007089.

%K base,nonn

%O 1,3

%A _Reinhard Zumkeller_, Jan 07 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)