Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Golf: Magic Formula for Roman Numerals

by bart (Canon)
on Feb 18, 2007 at 18:51 UTC ( [id://600735]=note: print w/replies, xml ) Need Help??


in reply to Golf: Magic Formula for Roman Numerals

A useless thought: in FORTH, they'd be using the /mod operator. That's a division operator that returns both the (integer) quotient, and the remainder. Just look at the pattern:
RomanFactorExponent
I10
V50
X11
L51
C12
D52
M13
The factor clearly has a repetitive pattern, with a period of 2, the exponent increments once for every period.
  • Comment on Re: Golf: Magic Formula for Roman Numerals

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://600735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2025-07-08 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.