Recognised as Number
6
- Positive
- Even
- Composite
- Perfect number
- 1 digit
6 is an even 1-digit integer and a composite number. It has 4 divisors and a digital root of 6.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value6
Digit count1
Digit sum6
Digit product6
Digital root6repeated digit sum
PalindromicYesreads the same backwards
Triangular numberYes, the 3rd triangular number
Happy numberNosquared-digit sums reach 1
Harshad numberYesdivisible by its own digit sum
Armstrong numberYesdigits raised to the digit count sum to itself
Factors & divisors
Prime factorisation2 × 3
Distinct prime factors22, 3
Number of divisors4
Sum of divisors σ(n)12
Aliquot sum6sum of the proper divisors
ClassificationPerfectthe aliquot sum equals the number
Euler's totient φ(n)2integers below n that share no factor with it
Carmichael function λ(n)2the smallest exponent with aˣ ≡ 1 for every unit coprime to n
Möbius function μ(n)+12 distinct prime factors, an even number of them
SquarefreeYesno repeated prime factor
All divisors1, 2, 3, 64 in total
Arithmetic
Representations
Decimal6
Binary1103 bits
Octal6
Hexadecimal6
Base 366
Roman numeralVI
In wordssix
Ordinalsixth
Scientific notation6 × 10^0
Engineering notation6
In other bases
Ternary20base 3; the most digit-efficient integer base after e: 2 digits
Quinary11base 5; one hand: 2 digits
Septenary6base 7: 1 digit
Nonary6base 9; each digit is two ternary digits: 1 digit
Duodecimal6base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 1 digit
Vigesimal6base 20; hands and feet, and the Mayan and Yoruba systems: 1 digit
Sexagesimal6base 60; Babylonian, and still how an hour and a circle are divided: 1 digit
Balanced ternary1T0digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary11010base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000110
Bit length3 bitsto write the magnitude
Set bits2the population count, or Hamming weight
Zero bits1within that length
Bit parityeven2 set bits, so even; not the same as the number itself being even
Highest set bitbit 2worth 4
Lowest set bitbit 11 trailing zero
Power of twoNo
Bytes106
Gray code101n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
8-bit00000110
16-bit0000000000000110
32-bit00000000000000000000000000000110
64-bit0000000000000000000000000000000000000000000000000000000000000110
One's complement11111001at 8 bits, every bit flipped
Bits reversed01100000at 8 bits
Rotated left by 100001100at 8 bits, wrapping
Shifted left by 11100= 12, no wrap
Shifted right by 111= 3, discarding the low bit
These bits as a double2.96439388 × 10^-323≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
6 to the power 236
6 to the power 3216
6 to the power 41,296
6 to the power 57,776
First ten multiples6, 12, 18, 24, 30, 36, 42, 48, 54, 60
Powers of twoBetween 2^2 (4) and 2^3 (8)
Divisibility tests
Divisible by 2Yes
Divisible by 3Yes
Divisible by 4No, remainder 2
Divisible by 5No, remainder 1
Divisible by 6Yes
Divisible by 7No, remainder 6
Divisible by 8No, remainder 6
Divisible by 9No, remainder 6
Divisible by 10No, remainder 6
Divisible by 11No, remainder 6
Divisible by 12No, remainder 6
Divisible by 100No, remainder 6
Collatz (3n + 1) trajectory
Steps to reach 18the total stopping time
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage600%
6% as a decimal0.06
6% of 1006
6% of 1,00060
As a fraction of 1006/100
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Derived from 6
Other readings
Also reads as
U+0036 (unicode character)
- U+0036
- 6
- Decimal digit
U+0036 is code point 54 (6), a decimal digit in the Basic Latin (ASCII) block of the Basic Multilingual Plane. It takes 1 byte in UTF-8 and 1 unit in UTF-16.
Identity
Code pointU+0036
Decimal54
Character6
General categoryDecimal digit
BlockBasic Latin (ASCII)
PlaneBasic Multilingual Planeplane 0
Official nameNot includedthe Unicode Character Database is not bundled; a stale copy would be worse than none
Encodings
UTF-8361 byte
UTF-160036a single unit
UTF-3200000036
Binary110110
Bytes in UTF-8 vs UTF-161 vs 2UTF-16 is not always smaller, even for non-Latin text
Writing it in code
HTML numeric entity6
HTML hex entity6
CSS escape\0036
JavaScript\u0036
Python\u0036
Percent-encoded (URL)%36
Things that catch people out
JavaScript string length1
Needs a surrogate pairNo
Safe in a URL unescapedYes
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Nerdulate something else
Nothing in mind? Surprise me · today’s page