login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Numbers whose set of base-5 digits is {1,2}.
1

%I #12 Sep 08 2022 08:44:51

%S 1,2,6,7,11,12,31,32,36,37,56,57,61,62,156,157,161,162,181,182,186,

%T 187,281,282,286,287,306,307,311,312,781,782,786,787,806,807,811,812,

%U 906,907,911,912,931,932,936,937,1406,1407,1411,1412

%N Numbers whose set of base-5 digits is {1,2}.

%H Vincenzo Librandi, <a href="/A032926/b032926.txt">Table of n, a(n) for n = 1..1000</a>

%t Flatten[Table[FromDigits[#,5]&/@Tuples[{1,2},n],{n,5}]] (* _Vincenzo Librandi_, Jun 03 2012 *)

%o (Magma) [n: n in [1..1500] | Set(IntegerToSequence(n, 5)) subset {1, 2}]; // _Vincenzo Librandi_, Jun 03 2012

%K nonn,base

%O 1,2

%A _Clark Kimberling_