Thursday, February 9, 2017

All about Storage

We all use computer and came across terms like bits,bytes,KB,MB,GB ,TB in terms of storage…..what are these and where do they come from??

Starting from the Number Forms :

Binary Form (only 2 digits) — 0,1

Octal Form (only 8 digits) — 0 to 7

Decimal Form (only 10 digits) — 0 to 9

HexaDecimal Form ( 10 digits and 6 characters) — 0 to 9,A=10,B=11,C=12,D=13,E=14,F=15

So if you see a number like 5de73 then its of hexadecimal form and each form can be converted to other forms.

each of these digits when converted to its consequent binary form, each binary digit occupy 1-bit in computer and with the increase of each bit or character you increase a bit, so here is the overview of storage

Bit = 1 Binary Digit

Nibble = 4 Bit

Byte = 8 Bit

Kilobyte = 1024 Byte

Megabyte = 1024 Kilobyte

Gigabyte = 1024 Megabyte

Terabyte = 1024 Gigabyte

Petabyte = 1024 Terabyte

Exabyte = 1024 Petabyte

Zettabyte = 1024 Exabyte

Yottabyte = 1024 Zettabyte

Brontobyte = 1024 Yottabyte

Geopbyte = 1024 Brontobyte

Saganbyte = 1024 Geopbyte

Pijabyte = 1024 Saganbyte

Alphabyte = 1024 Pijabyte

Kryatbyte = 1024 Alphabyte

Amosbyte = 1024 Kryatbyte

Pectrolbyte = 1024 Amosbyte

Bolgerbyte = 1024 Pectrolbyte

Sambobyte = 1024 Bolgerbyte

Quesabyte = 1024 Sambobyte

Kinsabyte = 1024 Quesabyte

Rutherbyte = 1024 Kinsabyte

Dubnibyte = 1024 Rutherbyte

Seaborgbyte = 1024 Dubnibyte

Bohrbyte = 1024 Seaborgbyte

Hassiubyte = 1024 Bohrbyte

Meitnerbyte = 1024 Hassiubyte

Darmstadbyte = 1024 Meitnerbyte

Roentbyte = 1024 Darmstadbyte

Coperbyte = 1024 Roentbyte

Sunday, March 25, 2012

Happy / Sad Number

A happy number is defined by the following process. 
    1. Starting with any positive integer, 
    2. Replacing the number by the sum of the squares of its digits, 
    3. Repeating the process until the number reach 1. 
    4. If the number reaches 1 at the end of the process, the number is said to be Happy, else, unhappy or sad.


The happy numbers below 500 are:
1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100, 103, 109, 129, 130, 133, 139, 167, 176, 188, 190, 192, 193, 203, 208, 219, 226, 230, 236, 239, 262, 263, 280, 291, 293, 301, 302, 310, 313, 319, 320, 326, 329, 331, 338, 356, 362, 365, 367, 368, 376, 379, 383, 386, 391, 392, 397, 404, 409, 440, 446, 464, 469, 478, 487, 490, 496

    The happiness of a number is preserved by rearranging the digits, and by inserting or removing any number of zeros anywhere in the number.
    The unique combinations of the happy numbers below 1,000 follow (the rest are just rearrangements and/or insertions of zero digits):
    1, 7, 13, 19, 23, 28, 44, 49, 68, 79, 129, 133, 139, 167, 188, 226, 236, 239, 338, 356, 367, 368, 379, 446, 469, 478, 556, 566, 888, 899

986,543,210 : Greatest happy number with no redundant digits.
1,234,456,789 : Smallest zeroless pandigital happy number.

Golden Ration


In mathematics and the arts, two quantities are in the golden ratio if the ratio of the sum of the quantities to the larger quantity is equal to the ratio of the larger quantity to the smaller one. The figure on the right illustrates the geometric relationship. Expressed algebraically:
 \frac{a+b}{a} = \frac{a}{b} \equiv \varphi,
where the Greek letter phi (\varphi) represents the golden ratio. Its value is:
\varphi = \frac{1+\sqrt{5}}{2} = 1.61803\,39887\ldots.