.
.
Math Central - mathcentral.uregina.ca
Quandaries & Queries
Q & Q
. .
topic card  

Topic:

included numbers

list of
topics
. .
start over

One item is filed under this topic.
 
Page
1/1
Options 1 2 4 8 16 32 64 128 etc. 2008-05-09
From Abraham:
I have seen programs with options and I wish to create a similar program.

I have options 1 2 4 8 16 32 64 128 etc.
If I receive option 3 means option 1 and 2 are included. Option 20 means option 16 and 4 are included. that because of the sum of those numbers is the olny way to get the given number.

I want to know if is there a way
to know which number from options are included.
How I know:
1 is Included
2 is Included
4 is Included

Answered by Stephen La Rocque.
 
Page
1/1

 

 


Math Central is supported by the University of Regina and The Pacific Institute for the Mathematical Sciences.

CMS
.

 

Home Resource Room Home Resource Room Quandaries and Queries Mathematics with a Human Face About Math Central Problem of the Month Math Beyond School Outreach Activities Teacher's Bulletin Board Canadian Mathematical Society University of Regina PIMS