%I #10 Aug 23 2021 21:44:25
%S 10,100,201,210,301,310,401,410,501,510,601,610,701,710,801,810,901,
%T 910,1000,1201,1210,1301,1310,1401,1410,1501,1510,1601,1610,1701,1710,
%U 1801,1810,1901,1910,2001,2010,2100,2201,2210,2301
%N Numbers k such that 0 and 1 occur juxtaposed in the base-10 representation of k but not of k-1.
%o (Python)
%o def ok(n):
%o sn, snm1 = str(n), str(n-1)
%o return ("01" in sn or "10" in sn) and not ("01" in snm1 or "10" in snm1)
%o print(list(filter(ok, range(1, 2302)))) # _Michael S. Branicky_, Aug 23 2021
%K nonn,base
%O 1,1
%A _Clark Kimberling_
|