Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Determining if a rational number terminates

by tobyink (Abbot)
on Nov 29, 2012 at 16:27 UTC ( #1006294=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_=pop;$_/=2until$_%2;print/(5|^1)$/?Y:N,$/
    
  2. or download this
    $_=pop;for$.(2,5){$_/=$.until$_%$.}print/^1$/?Y:N,$/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006294]
help
Chatterbox?
LanX reigned by the Duke of Normandy
[davies]: LanX: Politicians making jobs for each other, really. Results in unnecessary complications and tax bills with up to 5 levels of Govt busily inventing new crimes for people to commit.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-12-15 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (441 votes). Check out past polls.

    Notices?