Numbers k such that the last letter of k is the same as the first letter of k+1: Difference between revisions

m
(→‎{{header|J}}: bugfix (*last* letter of k, not first letter of k))
Line 49:
1000 10988
10000 106652
(~.,.#/.~) /:~10|1e3{.sample NB. counts by final digit (first 1e3 k)
0 12
1 111
Line 60:
8 301
9 111
(~.,.#/.~) /:~10|1e4{.sample NB. counts by final digit (first 1e4 k)
0 122
1 1301
6,962

edits