An octet? Number of possibilities?

Solved
Zboyle Posted messages 88 Status Member -  
Zboyle Posted messages 88 Status Member -
Hello, I have a question. I already have a small idea without calculating or anything, but I think I'm right despite a little doubt :p

So here it is, I would like to know how many ways there are to code a byte?

Thank you

Configuration: HP Pavilion dv7,
Windows Vista SP2,
3GB RAM

3 answers

  1. aiglenoirdu29 Posted messages 11426 Status Contributor 2 363
     
    Hello,

    what do you mean?

    A byte is 8 bits, for example 00000011, 00001011, 11100011,...

    Are you trying to find out the number of possible combinations?
    --
    Windows n'a pas détecté de clavier. Appuyez sur Entrée pour continuer.
    Huh?
    7
  2. Zboyle Posted messages 88 Status Member 13
     
    Hello,

    Yes, I know that 1 byte is 8 bits, thank you

    "are you trying to find out the number of possible combinations?"

    Exactly :D
    1
    1. KX Posted messages 19031 Status Moderator 3 020
       
      there are 2 possibilities for the first bit, and 2 possibilities for the second bit, so there are 4 possibilities for the first two bits, and you continue like that by multiplying by 2 each time
      For 'n' bits, you will have 2^n possibilities, so for a byte, that's 2^8=256...
      0
    2. aiglenoirdu29 Posted messages 11426 Status Contributor 2 363
       
      For a 3-digit lock (so 10 choices: 0 to 9), there are 10^3 combinations (or 1000).

      Here, it's a lock with 8 fields of 2 digits, so 2^8: 256 choices.
      0
  3. Zboyle Posted messages 88 Status Member 13
     
    Thank you both, and so I was thinking of 256, (I was right, yay :D)
    I didn’t do any calculations, it’s still an essential number in the world of computing so I deduced it, but it's nice for the calculations, thank you.
    0