Talk:Numbers k such that the last letter of k is the same as the first letter of k+1

From Rosetta Code

I suspect...

.. there's a possible ludicrously fast version/solution to this... Obviously palindromic numbers are not quite the same, but every n>0 here seems to be one of [8]12 18 28 38 79 81 83 85 89 97 9[teen] with some "gap" filled with either 023456789 or any of 0..10k. --Petelomax (talk) 02:42, 1 July 2023 (UTC)

There will certainly be better ways of doing this than my Wren example where I was more interested in giving some recently added library functions an outing than sheer speed. If there's a discernible pattern here, it might be one for Horst to get his teeth into :) --PureFox (talk) 10:02, 1 July 2023 (UTC)