Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: help with algorithm

by larsen (Parson)
on Nov 17, 2002 at 02:03 UTC ( [id://213493]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: help with algorithm
in thread help with algorithm

The first example is 1010, that is (I'm considering the binary digits from right to left):

0 * 20 + 1 * 21 + 0 * 22 + 1 * 23

Your second example is 100. As usual, from right to left...

0 * 20 + 0 * 21 + 1 * 22

Got the pattern? Now I'm going to check what powers of 2 are on (i.e. multiplied by 1). In the first example they are 21 (Monday) and 23 (Wednesday). In the second example only 22, Tuesday.

I hope this will clarify my node.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-19 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found