Numbers k such that the last letter of k is the same as the first letter of k+1: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added results to 1e8th) |
|||
Line 831: | Line 831: | ||
8: ************************************************************ (299990) |
8: ************************************************************ (299990) |
||
9: ********************** (111301) |
9: ********************** (111301) |
||
</pre> |
|||
You can trivially extend the limit to 1e8, on 64-bit or change next_to_show (etc) to atom, and in about 75s, a tad slow, also get: |
|||
<pre> |
|||
The 10,000,000th number is: 106,650,962 |
|||
Breakdown by final digit of the numbers: |
|||
0: *** (121134) |
|||
1: ********************************* (1301301) |
|||
2: ********************* (828817) |
|||
3: ********************************* (1301301) |
|||
4: *** (121121) |
|||
5: ********************************* (1301301) |
|||
6: *** (121121) |
|||
7: ****************************** (1211211) |
|||
8: ************************************************************ (2391392) |
|||
9: ********************************* (1301301) |
|||
The 100,000,000th number is: 1,095,538,742 |
|||
Breakdown by final digit of the numbers: |
|||
0: *** (1121234) |
|||
1: ******************************** (11301301) |
|||
2: ***************************************************** (18828717) |
|||
3: ******************************** (11301301) |
|||
4: *** (1121121) |
|||
5: ******************************** (11301301) |
|||
6: *** (1121121) |
|||
7: ******************************* (11211211) |
|||
8: ************************************************************ (21391392) |
|||
9: ******************************** (11301301) |
|||
</pre> |
</pre> |
||