A Piece of the Pi: mathematics explained

A Piece of the Pi: mathematics explained

Repunits and prime numbers

Richard Green's avatar
Richard Green
Nov 18, 2024
∙ Paid

A repunit (“repeated unit”) is a number that only contains the digit 1 in some number base. For example, 31 is a repunit in base 5 and base 2, because 31 is written as 111 (25+5+1) in base 5, and as 11111 (16+8+4+2+1) in base 2. Another number that is a repunit in two different bases is 8191, which is 111 in base 90 and 1111111111111 in base 2. 

User's avatar

Continue reading this post for free, courtesy of Richard Green.

Or purchase a paid subscription.
© 2026 A Piece of the Pi · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture