A109303 Numbers k with at least one duplicate base-10 digit (A107846(k) > 0).
11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 101, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131, 133, 141, 144, 151, 155, 161, 166, 171, 177, 181, 188, 191, 199, 200, 202, 211, 212, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 232, 233, 242
Offset: 1
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
- Index entries for linear recurrences with constant coefficients, signature (2,-1).
Crossrefs
Programs
-
Haskell
a109303 n = a109303_list !! (n-1) a109303_list = filter ((> 0) . a107846) [0..] -- Reinhard Zumkeller, Jul 09 2013
-
Mathematica
Select[Range[300], Max[DigitCount[#]] > 1 &] (* Harvey P. Dale, Jan 14 2011 *)
-
Python
def ok(n): s = str(n); return len(set(s)) < len(s) print([k for k in range(243) if ok(k)]) # Michael S. Branicky, Nov 22 2021
Comments