(49G) Golomb Sequence - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (49G) Golomb Sequence (/thread-4589.html) |
(49G) Golomb Sequence - Gerald H - 08-28-2015 04:05 PM Golomb's sequence: 1, 2, 2, 3, 3, 4, 4 ... consists of elements indicating the number of occurences of its index in the list, index commencing at 1. The programme gives exact correct integers for indices to 10^12, thereafter approximate. Enter integer index to return the number of its appearances in the sequence. Code:
|