Recognised as Number
340,402
- Positive
- Even
- Composite
- 6 digits
340,402 is an even 6-digit integer and a composite number. It has 8 divisors and a digital root of 4.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value340,402
Digit count6
Digit sum13
Digit product0zero, because one of the digits is zero
Multiplicative persistence1times the digit product can be taken before one digit is left
Digital root4repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum
Factors & divisors
Prime factorisation2 × 29 × 5,869
Distinct prime factors32, 29, 5,869
Number of divisors8
Sum of divisors σ(n)528,300
Aliquot sum187,898sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)164,304integers below n that share no factor with it
Carmichael function λ(n)41,076the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 164,304
Möbius function μ(n)−13 distinct prime factors, an odd number of them
SquarefreeYesno repeated prime factor
All divisors1, 2, 29, 58, 5,869, 11,738, 170,201, 340,4028 in total
Arithmetic
Representations
Decimal340,402
Binary101001100011011001019 bits
Octal1230662
Hexadecimal531B2
Base 367ANM
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthree hundred and forty thousand, four hundred and two
Ordinalthree hundred and forty thousand, four hundred and second
Scientific notation3.40402 × 10^5
Engineering notation340.402 × 10^3
In other bases
Ternary122021221111base 3; the most digit-efficient integer base after e: 12 digits
Quinary41343102base 5; one hand: 8 digits
Septenary2615266base 7: 7 digits
Nonary567844base 9; each digit is two ternary digits: 6 digits
Duodecimal144baabase 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal22b02base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal1:34:33:22base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1T0T10T0T1111digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary1010111011011110110base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001010011000110110010
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
Bytes305 31 b2
Gray code1111010100101101011n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001010011000110110010
64-bit0000000000000000000000000000000000000000000001010011000110110010
One's complement11111111111110101100111001001101at 32 bits, every bit flipped
Bits reversed01001101100011001010000000000000at 32 bits
Rotated left by 100000000000010100110001101100100at 32 bits, wrapping
Shifted left by 110100110001101100100= 680,804, no wrap
Shifted right by 1101001100011011001= 170,201, discarding the low bit
These bits as a double1.68180934 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
340,402 to the power 2115,873,521,604
340,402 to the power 339,443,578,501,044,808
340,402 to the power 413,426,673,008,912,654,732,816
340,402 to the power 54,570,466,345,579,885,496,360,032,032
First ten multiples340,402, 680,804, 1,021,206, 1,361,608, 1,702,010, 2,042,412, 2,382,814, 2,723,216, 3,063,618, 3,404,020
Powers of twoBetween 2^18 (262,144) and 2^19 (524,288)
Divisibility tests
Divisible by 2Yes
Divisible by 3No, remainder 1
Divisible by 4No, remainder 2
Divisible by 5No, remainder 2
Divisible by 6No, remainder 4
Divisible by 7No, remainder 6
Divisible by 8No, remainder 2
Divisible by 9No, remainder 4
Divisible by 10No, remainder 2
Divisible by 11No, remainder 7
Divisible by 12No, remainder 10
Divisible by 100No, remainder 2
Collatz (3n + 1) trajectory
Steps to reach 1153the total stopping time
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps340,402 → 170,201 → 510,604 → 255,302 → 127,651 → 382,954 → 191,477 → 574,432 → 287,216 → 143,608 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage34,040,200%
340,402% as a decimal3,404.02
340,402% of 100340,402
340,402% of 1,0003,404,020
As a fraction of 100340,402/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,402
Also reads as
#340402 (colour)
- #340402
- Red
- Dark
- Nearest: Black
#340402 is a red with RGB values 52, 4, 2 and HSL 2°, 93%, 11%. It is a dark colour, so white text on it reaches 18:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#340402#340402
HEX#340402
RGBrgb(52, 4, 2)
RGB (0–1)0.2039, 0.0157, 0.0078
RGB percentages20.4%, 1.6%, 0.8%
HSLhsl(2.4, 92.6%, 10.6%)
HSV / HSBhsv(2.4, 96.2%, 20.4%)
CMYK0%, 92.3%, 96.2%, 79.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,408,898
CSS custom property--colour: #340402;
Brightness & contrast
Relative luminance0.00821WCAG 2.x, 0 is black and 1 is white
Perceived brightness28.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.04:1
Contrast with white18.04:1WCAG normal text: AAA
Contrast with black1.16:1WCAG normal text: Fail
Greyscale equivalent#0E0E0E
Inverted#CBFBFD
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.04:1WCAG large text: AAA
Contrast with black, large text1.16:1WCAG large text: Fail
Named colours
Hue familyred
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#023234
Analogous#340219, #341D02
Triadic#023404, #040234
Split complementary#02341D, #021934
Tetradic#193402, #023234, #1D0234
Tints, shades & saturation
Channel breakdown
R52
G4
B2
Red52 (20.4%)
Green4 (1.6%)
Blue2 (0.8%)
Hue2.4°
Saturation (HSL)92.59%
Lightness10.59%
Dominant channelRed
Hex per channelR 34 · G 04 · B 02
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