Jump to content

Advent Calendar: Day 10


Kathis

Recommended Posts

Hello my studious enigmas. Today we are going to have to teach you a very important lesson. One that will help you in the future... I hope. 

 

So we're going to teach you Binary & Hexadecimal, and hopefully how to convert decimal into any base.

 

Binary is either 1 or a 0. It is called Binary because Bi means 2, and it's it's Base 2. 

 

The easy part of the puzzle is simple 

 

Complete the grid so that each row and column contain five 0s and five 1s.

The same number cannot appear in more than two consecutive squares in any row or column. In the final puzzle, each row must have a different sequence of 0s and 1s to any other row, likewise for each column.

 

image.png

 

 

Now for the tricky part of your task. Each column is 2^x, where x is the column counting right to left. Each row is a single number, add them together. (technically if you know how to count large numbers in binary, you can solve this very easily.)  For those that don't. think of it this way.  I don't think I explained that well enough.  If you are confused on this part read below. If you understood what that part you can skip to the [Jump here] tag.

 

1251351 is a number in base 10. You are familiar with this.  no digit is greater than 9, because it's would mean you would have to turn it back to 0, and carry a 1 over to the next digit to the left, in simpler example
199 + 1 = 200 
how? Look at the 10^0 column:  9 + 1 = 10, 0 stays in the 10^0 and that 1 gets carried over to the 10^1 column. we look at the 10^1 column:  9+ 1  10, same thing happens 0 stays in the 10^1 and a 1 get's carried over to the 10^2 column. We look at the 10^2 column: 1+ 1 = 2.  nothing gets carried over. 

 

so Finally for binary to decimal. 

 

binary ( 2^x ) = decimal (10^x)

1 = 1

10 = 2

11 = 3

100 = 4

101 = 5

110 = 6

111 = 7

etc.

 

Your code for the reward is the entire number, but in Decimal, splitting the number into it's respected part with it's respective abbreviation.

 

[Jump here]

Further, at the end of the code, add a hyphen and the HEXIDECIMAL version of the total. For those that don't know Hexadecimal.  

The counting is like binary, but it's base 16. 

 

decimal ( 10^x )  = hexadecimal ( 16^x )

8 = 8

9 = 9

A = 10

B = 11

C = 12

D = 13

E = 14

F = 15

10 = 16

11 = 17 

...

FF = 255

100 = 256

etc.

 

So your code should look like 

[decimal with letter separation]-[hexadecimal]

 

My word that was lengthy and probably confusing since I write this with very little sleep and running on coffee and hopes and dreams. But what can you do when you are trying to teach concepts that might be super new for a lot of people.

 

So in summary

  • Fill out the Binary puzzle, follow the rules that were stated above
  • Convert the rows to decimal, Add those numbers together OR Add the binary numbers together and convert THAT to decimal, call it the Total
  • Take the Total and separate it with the respectively number letter separation. 
  • Add a hyphen
  • convert the total to hexadecimal and add it after the hyphen.

 

You got this~

 

Good luck everyone.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...