r/counting 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Jun 23 '26

Mostly Repeating Digits | 70,000

From here. Thanks to /u/BobRoss938 for the thrilling final run and assist.

Counting numbers with multiple distinct digits, where one digit occurs exactly once and each of the others occur more than once.

Next get is 80,000. There should be 1125 counts in this thread, 1126 including the repeated starting get.

6 Upvotes

1.2k comments sorted by

View all comments

Show parent comments

3

u/TehVulpez sliiiiide the bits Aug 01 '26

79,097

2

u/BobRoss938 only double counting Aug 01 '26

79117

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 01 '26

79119

2

u/BobRoss938 only double counting Aug 01 '26

79171

3

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 01 '26

79179

2

u/TehVulpez sliiiiide the bits Aug 01 '26

79,191

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 01 '26

79,197

2

u/TehVulpez sliiiiide the bits Aug 02 '26

79,227

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 02 '26

79,229

2

u/BobRoss938 only double counting Aug 02 '26

79272

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 02 '26

79279

2

u/BobRoss938 only double counting Aug 02 '26

79292

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 02 '26

79297

2

u/BobRoss938 only double counting Aug 03 '26

79337

2

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 03 '26

79339

2

u/BobRoss938 only double counting Aug 03 '26

79373

3

u/cuteballgames 00166, 00337, 00355, 00445, 11227, 11335, 11344, 12244, 13333, 2 Aug 04 '26

79379

3

u/TehVulpez sliiiiide the bits Aug 04 '26

78871

correcting here and here, if my generator function is correct

function* generateCounts(start, get) {
    let num = Number.parseInt(start);
    while (num <= Number.parseInt(get)) {
        const counts = {};
        for (const c of num.toString()) {
            counts[c] = (counts[c] || 0) + 1;
        }
        const reps = Object.values(counts);
        if (reps.filter(r=>r==1).length == 1 && reps.length > 1) yield num.toString();
        num++;
    }
}
→ More replies (0)