%I #18 Sep 08 2022 08:44:51
%S 1,2,12,13,23,24,133,134,144,145,254,255,265,266,1464,1465,1475,1476,
%T 1585,1586,1596,1597,2795,2796,2806,2807,2916,2917,2927,2928,16105,
%U 16106,16116,16117,16226,16227,16237,16238,17436,17437
%N Numbers whose set of base-11 digits is {1,2}.
%H Harvey P. Dale, <a href="/A032931/b032931.txt">Table of n, a(n) for n = 1..1000</a> (first 200 terms from Vincenzo Librandi)
%t fQ[n_]:=Union@Join[{1,2},IntegerDigits[n,11]]=={1,2};Select[Range[0,18000],fQ] (* _Vincenzo Librandi_, May 25 2012 *)
%t Table[FromDigits[#,11]&/@Tuples[{1,2},n],{n,5}]//Flatten (* _Harvey P. Dale_, Mar 01 2016 *)
%o (Magma) [n: n in [1..20000] | Set(IntegerToSequence(n, 11)) subset {1, 2}]; // _Vincenzo Librandi_, May 25 2012
%K nonn,base
%O 1,2
%A _Clark Kimberling_
|