HP Forums
(30b) Repunit Programme - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (30b) Repunit Programme (/thread-4447.html)



(30b) Repunit Programme - Gerald H - 07-29-2015 07:02 AM

For integer input N returns the Nth repunit.

Code:

0    P2
1    =
2    1
3    0
4    Swap
5    Y^X
6    1
7    -
8    9
9    /
10    Rtn