Sylvester's sequence: Difference between revisions

Content added Content deleted
No edit summary
Line 13: Line 13:
* Write a routine (function, procedure, generator, whatever) to calculate '''Sylvester's sequence'''.
* Write a routine (function, procedure, generator, whatever) to calculate '''Sylvester's sequence'''.
* Use that routine to show the values of the first '''10''' elements in the sequence.
* Use that routine to show the values of the first '''10''' elements in the sequence.
* Show the sum of the reciprocals of the first '''10''' elements on the sequence;
* Show the sum of the reciprocals of the first '''10''' elements on the sequence, ideally as an exact fraction.