Recognised as Number
340,242
- Positive
- Even
- Composite
- 6 digits
340,242 is an even 6-digit integer and a composite number. It has 16 divisors and a digital root of 6.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value340,242
Digit count6
Digit sum15
Digit product0zero, because one of the digits is zero
Multiplicative persistence1times the digit product can be taken before one digit is left
Digital root6repeated digit sum
PalindromicNoreads differently backwards
Happy numberYessquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum
Factors & divisors
Prime factorisation2 × 3 × 7 × 8,101
Distinct prime factors42, 3, 7, 8,101
Number of divisors16
Sum of divisors σ(n)777,792
Aliquot sum437,550sum of the proper divisors
ClassificationAbundantthe aliquot sum exceeds the number
Euler's totient φ(n)97,200integers below n that share no factor with it
Carmichael function λ(n)8,100the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 97,200
Möbius function μ(n)+14 distinct prime factors, an even number of them
SquarefreeYesno repeated prime factor
All divisors1, 2, 3, 6, 7, 14, 21, 42, 8,101, 16,202, 24,303, 48,606, 56,707, 113,414, 170,121, 340,24216 in total
Arithmetic
Representations
Decimal340,242
Binary101001100010001001019 bits
Octal1230422
Hexadecimal53112
Base 367AJ6
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthree hundred and forty thousand, two hundred and forty-two
Ordinalthree hundred and forty thousand, two hundred and forty-second
Scientific notation3.40242 × 10^5
Engineering notation340.242 × 10^3
In other bases
Ternary122021201120base 3; the most digit-efficient integer base after e: 12 digits
Quinary41341432base 5; one hand: 8 digits
Septenary2614650base 7: 7 digits
Nonary567646base 9; each digit is two ternary digits: 6 digits
Duodecimal144a96base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal22ac2base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal1:34:30:42base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1T0T10TT1TTT0digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary1010111000100010110base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001010011000100010010
Bit length19 bitsto write the magnitude
Set bits7the population count, or Hamming weight
Zero bits12within that length
Bit parityodd7 set bits, so odd; 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 31 12
Gray code1111010100110011011n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001010011000100010010
64-bit0000000000000000000000000000000000000000000001010011000100010010
One's complement11111111111110101100111011101101at 32 bits, every bit flipped
Bits reversed01001000100011001010000000000000at 32 bits
Rotated left by 100000000000010100110001000100100at 32 bits, wrapping
Shifted left by 110100110001000100100= 680,484, no wrap
Shifted right by 1101001100010001001= 170,121, discarding the low bit
These bits as a double1.68101883 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
340,242 to the power 2115,764,618,564
340,242 to the power 339,387,985,349,452,488
340,242 to the power 413,401,446,911,268,413,422,096
340,242 to the power 54,559,735,099,983,787,519,560,787,232
First ten multiples340,242, 680,484, 1,020,726, 1,360,968, 1,701,210, 2,041,452, 2,381,694, 2,721,936, 3,062,178, 3,402,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 7Yes
Divisible by 8No, remainder 2
Divisible by 9No, remainder 6
Divisible by 10No, remainder 2
Divisible by 11No, remainder 1
Divisible by 12No, remainder 6
Divisible by 100No, remainder 42
Collatz (3n + 1) trajectory
Steps to reach 1104the total stopping time
Highest value reached2,180,0326× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps340,242 → 170,121 → 510,364 → 255,182 → 127,591 → 382,774 → 191,387 → 574,162 → 287,081 → 861,244 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage34,024,200%
340,242% as a decimal3,402.42
340,242% of 100340,242
340,242% of 1,0003,402,420
As a fraction of 100340,242/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,242
Also reads as
#340242 (colour)
- #340242
- Violet
- Dark
- Nearest: Midnight blue
#340242 is a violet with RGB values 52, 2, 66 and HSL 287°, 94%, 13%. It is a dark colour, so white text on it reaches 17:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#340242#340242
HEX#340242
RGBrgb(52, 2, 66)
RGB (0–1)0.2039, 0.0078, 0.2588
RGB percentages20.4%, 0.8%, 25.9%
HSLhsl(286.9, 94.1%, 13.3%)
HSV / HSBhsv(286.9, 97%, 25.9%)
CMYK21.2%, 97%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,408,450
CSS custom property--colour: #340242;
Brightness & contrast
Relative luminance0.01167WCAG 2.x, 0 is black and 1 is white
Perceived brightness36.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.03:1
Contrast with white17.03:1WCAG normal text: AAA
Contrast with black1.23:1WCAG normal text: Fail
Greyscale equivalent#111111
Inverted#CBFDBD
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text17.03:1WCAG large text: AAA
Contrast with black, large text1.23:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#104202
Analogous#140242, #420230
Triadic#423402, #024234
Split complementary#304202, #024214
Tetradic#421402, #104202, #023042
Tints, shades & saturation
Channel breakdown
R52
G2
B66
Red52 (20.4%)
Green2 (0.8%)
Blue66 (25.9%)
Hue286.88°
Saturation (HSL)94.12%
Lightness13.33%
Dominant channelBlue
Hex per channelR 34 · G 02 · 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