Recognised as Number
340,542
- Positive
- Even
- Composite
- 6 digits
340,542 is an even 6-digit integer and a composite number. It has 12 divisors and a digital root of 9.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value340,542
Digit count6
Digit sum18
Digit product0zero, because one of the digits is zero
Multiplicative persistence1times the digit product can be taken before one digit is left
Digital root9repeated digit sum
PalindromicNoreads differently backwards
Happy numberYessquared-digit sums reach 1
Harshad numberYesdivisible by its own digit sum
Factors & divisors
Prime factorisation2 × 3^2 × 18,919
Distinct prime factors32, 3, 18,919
Number of divisors12
Sum of divisors σ(n)737,880
Aliquot sum397,338sum of the proper divisors
ClassificationAbundantthe aliquot sum exceeds the number
Euler's totient φ(n)113,508integers below n that share no factor with it
Carmichael function λ(n)18,918the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 113,508
Möbius function μ(n)0zero, because a prime divides n twice
SquarefreeNohas a repeated prime factor
All divisors1, 2, 3, 6, 9, 18, 18,919, 37,838, 56,757, 113,514, 170,271, 340,54212 in total
Arithmetic
Representations
Decimal340,542
Binary101001100100011111019 bits
Octal1231076
Hexadecimal5323E
Base 367ARI
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthree hundred and forty thousand, five hundred and forty-two
Ordinalthree hundred and forty thousand, five hundred and forty-second
Scientific notation3.40542 × 10^5
Engineering notation340.542 × 10^3
In other bases
Ternary122022010200base 3; the most digit-efficient integer base after e: 12 digits
Quinary41344132base 5; one hand: 8 digits
Septenary2615556base 7: 7 digits
Nonary568120base 9; each digit is two ternary digits: 6 digits
Duodecimal1450a6base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal22b72base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal1:34:35:42base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1T0T10T011T00digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary1010111011001000010base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001010011001000111110
Bit length19 bitsto write the magnitude
Set bits10the population count, or Hamming weight
Zero bits9within that length
Bit parityeven10 set bits, so even; not the same as the number itself being even
Highest set bitbit 18worth 262,144
Lowest set bitbit 11 trailing zero
Power of twoNo
Bytes305 32 3e
Gray code1111010101100100001n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001010011001000111110
64-bit0000000000000000000000000000000000000000000001010011001000111110
One's complement11111111111110101100110111000001at 32 bits, every bit flipped
Bits reversed01111100010011001010000000000000at 32 bits
Rotated left by 100000000000010100110010001111100at 32 bits, wrapping
Shifted left by 110100110010001111100= 681,084, no wrap
Shifted right by 1101001100100011111= 170,271, discarding the low bit
These bits as a double1.68250103 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
340,542 to the power 2115,968,853,764
340,542 to the power 339,492,265,398,500,088
340,542 to the power 413,448,775,043,336,016,967,696
340,542 to the power 54,579,872,750,807,733,890,213,131,232
First ten multiples340,542, 681,084, 1,021,626, 1,362,168, 1,702,710, 2,043,252, 2,383,794, 2,724,336, 3,064,878, 3,405,420
Powers of twoBetween 2^18 (262,144) and 2^19 (524,288)
Divisibility tests
Divisible by 2Yes
Divisible by 3Yes
Divisible by 4No, remainder 2
Divisible by 5No, remainder 2
Divisible by 6Yes
Divisible by 7No, remainder 6
Divisible by 8No, remainder 6
Divisible by 9Yes
Divisible by 10No, remainder 2
Divisible by 11No, remainder 4
Divisible by 12No, remainder 6
Divisible by 100No, remainder 42
Collatz (3n + 1) trajectory
Steps to reach 1153the total stopping time
Highest value reached2,586,0047× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps340,542 → 170,271 → 510,814 → 255,407 → 766,222 → 383,111 → 1,149,334 → 574,667 → 1,724,002 → 862,001 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage34,054,200%
340,542% as a decimal3,405.42
340,542% of 100340,542
340,542% of 1,0003,405,420
As a fraction of 100340,542/100
Read another way
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Derived from 340,542
Also reads as
#340542 (colour)
- #340542
- Violet
- Dark
- Nearest: Midnight blue
#340542 is a violet with RGB values 52, 5, 66 and HSL 286°, 86%, 14%. It is a dark colour, so white text on it reaches 16.8:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#340542#340542
HEX#340542
RGBrgb(52, 5, 66)
RGB (0–1)0.2039, 0.0196, 0.2588
RGB percentages20.4%, 2%, 25.9%
HSLhsl(286.2, 85.9%, 13.9%)
HSV / HSBhsv(286.2, 92.4%, 25.9%)
CMYK21.2%, 92.4%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,409,218
CSS custom property--colour: #340542;
Brightness & contrast
Relative luminance0.01232WCAG 2.x, 0 is black and 1 is white
Perceived brightness36.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.85:1
Contrast with white16.85:1WCAG normal text: AAA
Contrast with black1.25:1WCAG normal text: Fail
Greyscale equivalent#131313
Inverted#CBFABD
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text16.85:1WCAG large text: AAA
Contrast with black, large text1.25:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#134205
Analogous#160542, #420531
Triadic#423405, #054234
Split complementary#314205, #054216
Tetradic#421605, #134205, #053142
Tints, shades & saturation
Channel breakdown
R52
G5
B66
Red52 (20.4%)
Green5 (2%)
Blue66 (25.9%)
Hue286.23°
Saturation (HSL)85.92%
Lightness13.92%
Dominant channelBlue
Hex per channelR 34 · G 05 · B 42
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page