(49G) Golomb Sequence
|
08-28-2015, 04:05 PM
(This post was last modified: 06-15-2017 01:47 PM by Gene.)
Post: #1
|
|||
|
|||
(49G) Golomb Sequence
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:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)