Self numbers: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|Phix}}: replicated otrginal comment) |
||
Line 890: | Line 890: | ||
Certainly puts my previous rubbish attempts ([[Self_numbers\Phix|archived here]]) to shame.<br> |
Certainly puts my previous rubbish attempts ([[Self_numbers\Phix|archived here]]) to shame.<br> |
||
The precise nature of the difference-pattern eludes me, I will admit. |
The precise nature of the difference-pattern eludes me, I will admit. |
||
<lang Phix> |
<lang Phix>-- |
||
-- Base-10 self numbers by index (single or range). |
|||
-- Follows an observed sequence pattern whereby, after the initial single-digit odd numbers, self numbers are |
|||
-- grouped in runs whose members occur at numeric intervals of 11. Runs after the first one come in blocks of |
|||
-- ten: eight runs of ten numbers followed by two shorter runs. The numeric interval between runs is usually 2, |
|||
-- but that between shorter runs, and their length, depend on the highest-order digit change occurring in them. |
|||
-- This connection with significant digit change means every ten blocks form a higher-order block, every ten |
|||
-- of these a higher-order-still block, and so on. |
|||
-- |
|||
integer startIndex, endIndex, counter |
|||
atom currentSelf |
atom currentSelf |
||
sequence output |
sequence output |