Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: In base 1, the number after 0 is: 1

by tye (Sage)
on May 02, 2014 at 04:01 UTC ( [id://1084723]=note: print w/replies, xml ) Need Help??


in reply to Re: In base 1, the number after 0 is:
in thread In base 1, the number after 0 is:

Exactly.

As to what was revealed to be the real question:

Hence, the poll question is really, what is the first representational digit in base 1

I think "1" is quite intuitive. prime factorization using base 1 reveals some of the benefits to working in base 1:

They don't have the arbitrary range limitations of Perl's regular number representations while converting between the two is nearly trivial. Plus finding prime base-1 numbers is particularly compact code in Perl. And when the primality test fails you are also handed some factors! So base-1 numbers are perfect for finding prime factorizations! They aren't very space efficient, unfortunately (hey, no one's perfect).

As well as providing handy Perl code for working with them.

- tye        

  • Comment on Re^2: In base 1, the number after 0 is: 1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-20 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found