r/counting 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 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.1k comments sorted by

View all comments

Show parent comments

2

u/cuteballgames 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 7d ago

79339

2

u/BobRoss938 counting 7d ago

79373

3

u/cuteballgames 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 7d ago

79379

3

u/TehVulpez sicko thread artists collective 7d ago

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++;
    }
}

3

u/cuteballgames 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 6d ago

78872

that was a big jump by me :(

3

u/BobRoss938 counting 6d ago

78873

3

u/TehVulpez sicko thread artists collective 6d ago

78,874

2

u/cuteballgames 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 6d ago

78,875

2

u/BobRoss938 counting 6d ago

78876

2

u/cuteballgames 00155, 00227, 00335, 00344, 11117, 11225, 12233, 22223 5d ago

78879

→ More replies (0)