Recognised as Number
402,342
- Positive
- Even
- Composite
- 6 digits
402,342 is an even 6-digit integer and a composite number. It has 8 divisors and a digital root of 6.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value402,342
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 × 67,057
Distinct prime factors32, 3, 67,057
Number of divisors8
Sum of divisors σ(n)804,696
Aliquot sum402,354sum of the proper divisors
ClassificationAbundantthe aliquot sum exceeds the number
Euler's totient φ(n)134,112integers below n that share no factor with it
Carmichael function λ(n)67,056the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 134,112
Möbius function μ(n)−13 distinct prime factors, an odd number of them
SquarefreeYesno repeated prime factor
All divisors1, 2, 3, 6, 67,057, 134,114, 201,171, 402,3428 in total
Arithmetic
Representations
Decimal402,342
Binary110001000111010011019 bits
Octal1421646
Hexadecimal623A6
Base 368MG6
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsfour hundred and two thousand, three hundred and forty-two
Ordinalfour hundred and two thousand, three hundred and forty-second
Scientific notation4.02342 × 10^5
Engineering notation402.342 × 10^3
In other bases
Ternary202102220120base 3; the most digit-efficient integer base after e: 12 digits
Quinary100333332base 5; one hand: 9 digits
Septenary3264003base 7: 7 digits
Nonary672816base 9; each digit is two ternary digits: 6 digits
Duodecimal174a06base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal2a5h2base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal1:51:45:42base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1T1T1100T1TT0digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary110100110010011111010base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001100010001110100110
Bit length19 bitsto write the magnitude
Set bits9the population count, or Hamming weight
Zero bits10within that length
Bit parityodd9 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
Bytes306 23 a6
Gray code1010011001001110101n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001100010001110100110
64-bit0000000000000000000000000000000000000000000001100010001110100110
One's complement11111111111110011101110001011001at 32 bits, every bit flipped
Bits reversed01100101110001000110000000000000at 32 bits
Rotated left by 100000000000011000100011101001100at 32 bits, wrapping
Shifted left by 111000100011101001100= 804,684, no wrap
Shifted right by 1110001000111010011= 201,171, discarding the low bit
These bits as a double1.9878336 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
402,342 to the power 2161,879,084,964
402,342 to the power 365,130,754,802,585,688
402,342 to the power 426,204,838,148,781,930,881,296
402,342 to the power 510,543,306,990,457,219,634,642,395,232
First ten multiples402,342, 804,684, 1,207,026, 1,609,368, 2,011,710, 2,414,052, 2,816,394, 3,218,736, 3,621,078, 4,023,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 3
Divisible by 8No, remainder 6
Divisible by 9No, remainder 6
Divisible by 10No, remainder 2
Divisible by 11No, remainder 6
Divisible by 12No, remainder 6
Divisible by 100No, remainder 42
Collatz (3n + 1) trajectory
Steps to reach 1161the total stopping time
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps402,342 → 201,171 → 603,514 → 301,757 → 905,272 → 452,636 → 226,318 → 113,159 → 339,478 → 169,739 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage40,234,200%
402,342% as a decimal4,023.42
402,342% of 100402,342
402,342% of 1,0004,023,420
As a fraction of 100402,342/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 402,342
Also reads as
#402342 (colour)
- #402342
- Magenta
- Dark
- Nearest: Black
#402342 is a magenta with RGB values 64, 35, 66 and HSL 296°, 31%, 20%. It is a dark colour, so white text on it reaches 13.7:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#402342#402342
HEX#402342
RGBrgb(64, 35, 66)
RGB (0–1)0.251, 0.1373, 0.2588
RGB percentages25.1%, 13.7%, 25.9%
HSLhsl(296.1, 30.7%, 19.8%)
HSV / HSBhsv(296.1, 47%, 25.9%)
CMYK3%, 47%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,203,330
CSS custom property--colour: #402342;
Brightness & contrast
Relative luminance0.02685WCAG 2.x, 0 is black and 1 is white
Perceived brightness49.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.66:1
Contrast with white13.66:1WCAG normal text: AAA
Contrast with black1.54:1WCAG normal text: Fail
Greyscale equivalent#2B2B2B
Inverted#BFDCBD
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text13.66:1WCAG large text: AAA
Contrast with black, large text1.54:1WCAG large text: Fail
Named colours
Hue familymagenta
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#254223
Analogous#312342, #422335
Triadic#424023, #234240
Split complementary#354223, #234231
Tetradic#423123, #254223, #233542
Tints, shades & saturation
Channel breakdown
R64
G35
B66
Red64 (25.1%)
Green35 (13.7%)
Blue66 (25.9%)
Hue296.13°
Saturation (HSL)30.69%
Lightness19.8%
Dominant channelBlue
Hex per channelR 40 · G 23 · 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