Recognised as Number
402,687
- Positive
- Odd
- Composite
- 6 digits
402,687 is an odd 6-digit integer and a composite number. It has 12 divisors and a digital root of 9.
Number properties
ParityOddnot divisible by 2
SignPositive
PrimalityComposite
Absolute value402,687
Digit count6
Digit sum27
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 numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum
Factors & divisors
Prime factorisation3^2 × 101 × 443
Distinct prime factors33, 101, 443
Number of divisors12
Sum of divisors σ(n)588,744
Aliquot sum186,057sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)265,200integers below n that share no factor with it
Carmichael function λ(n)66,300the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 265,200
Möbius function μ(n)0zero, because a prime divides n twice
SquarefreeNohas a repeated prime factor
All divisors1, 3, 9, 101, 303, 443, 909, 1,329, 3,987, 44,743, 134,229, 402,68712 in total
Arithmetic
Representations
Decimal402,687
Binary110001001001111111119 bits
Octal1422377
Hexadecimal624FF
Base 368MPR
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsfour hundred and two thousand, six hundred and eighty-seven
Ordinalfour hundred and two thousand, six hundred and eighty-seventh
Scientific notation4.02687 × 10^5
Engineering notation402.687 × 10^3
In other bases
Ternary202110101100base 3; the most digit-efficient integer base after e: 12 digits
Quinary100341222base 5; one hand: 9 digits
Septenary3265005base 7: 7 digits
Nonary673340base 9; each digit is two ternary digits: 6 digits
Duodecimal175053base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal2a6e7base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal1:51:51:27base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1T1T110101100digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary110100110010100000011base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001100010010011111111
Bit length19 bitsto write the magnitude
Set bits12the population count, or Hamming weight
Zero bits7within that length
Bit parityeven12 set bits, so even; not the same as the number itself being odd
Highest set bitbit 18worth 262,144
Lowest set bitbit 00 trailing zeros
Power of twoNo
Bytes306 24 ff
Gray code1010011011010000000n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001100010010011111111
64-bit0000000000000000000000000000000000000000000001100010010011111111
One's complement11111111111110011101101100000000at 32 bits, every bit flipped
Bits reversed11111111001001000110000000000000at 32 bits
Rotated left by 100000000000011000100100111111110at 32 bits, wrapping
Shifted left by 111000100100111111110= 805,374, no wrap
Shifted right by 1110001001001111111= 201,343, discarding the low bit
These bits as a double1.98953813 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
402,687 to the power 2162,156,819,969
402,687 to the power 365,298,443,362,856,703
402,687 to the power 426,294,834,262,458,677,160,961
402,687 to the power 510,588,587,924,646,697,329,915,902,207
First ten multiples402,687, 805,374, 1,208,061, 1,610,748, 2,013,435, 2,416,122, 2,818,809, 3,221,496, 3,624,183, 4,026,870
Powers of twoBetween 2^18 (262,144) and 2^19 (524,288)
Divisibility tests
Divisible by 2No, remainder 1
Divisible by 3Yes
Divisible by 4No, remainder 3
Divisible by 5No, remainder 2
Divisible by 6No, remainder 3
Divisible by 7No, remainder 5
Divisible by 8No, remainder 7
Divisible by 9Yes
Divisible by 10No, remainder 7
Divisible by 11No, remainder 10
Divisible by 12No, remainder 3
Divisible by 100No, remainder 87
Collatz (3n + 1) trajectory
Steps to reach 1161the total stopping time
Highest value reached20,640,90451× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps402,687 → 1,208,062 → 604,031 → 1,812,094 → 906,047 → 2,718,142 → 1,359,071 → 4,077,214 → 2,038,607 → 6,115,822 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage40,268,700%
402,687% as a decimal4,026.87
402,687% of 100402,687
402,687% of 1,0004,026,870
As a fraction of 100402,687/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,687
Also reads as
#402687 (colour)
- #402687
- Violet
- Dark
- Nearest: Midnight blue
#402687 is a violet with RGB values 64, 38, 135 and HSL 256°, 56%, 34%. It is a dark colour, so white text on it reaches 11.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#402687#402687
HEX#402687
RGBrgb(64, 38, 135)
RGB (0–1)0.251, 0.149, 0.5294
RGB percentages25.1%, 14.9%, 52.9%
HSLhsl(256.1, 56.1%, 33.9%)
HSV / HSBhsv(256.1, 71.9%, 52.9%)
CMYK52.6%, 71.9%, 0%, 47.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,204,167
CSS custom property--colour: #402687;
Brightness & contrast
Relative luminance0.04225WCAG 2.x, 0 is black and 1 is white
Perceived brightness64.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 11.38:1
Contrast with white11.38:1WCAG normal text: AAA
Contrast with black1.85:1WCAG normal text: Fail
Greyscale equivalent#333333
Inverted#BFD978
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text11.38:1WCAG large text: AAA
Contrast with black, large text1.85:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#6D8726
Analogous#263C87, #712687
Triadic#874026, #268740
Split complementary#877026, #3D8726
Tetradic#87263C, #6D8726, #268771
Tints, shades & saturation
Channel breakdown
R64
G38
B135
Red64 (25.1%)
Green38 (14.9%)
Blue135 (52.9%)
Hue256.08°
Saturation (HSL)56.07%
Lightness33.92%
Dominant channelBlue
Hex per channelR 40 · G 26 · B 87
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