HP Forums

Full Version: (30b) Repunit Programme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's