Recognised as Number
840,338
- Positive
- Even
- Composite
- 6 digits
840,338 is an even 6-digit integer and a composite number. It has 8 divisors and a digital root of 8.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value840,338
Digit count6
Digit sum26
Digit product0zero, because one of the digits is zero
Multiplicative persistence1times the digit product can be taken before one digit is left
Digital root8repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum
Factors & divisors
Prime factorisation2 × 89 × 4,721
Distinct prime factors32, 89, 4,721
Number of divisors8
Sum of divisors σ(n)1,274,940
Aliquot sum434,602sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)415,360integers below n that share no factor with it
Carmichael function λ(n)51,920the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 415,360
Möbius function μ(n)−13 distinct prime factors, an odd number of them
SquarefreeYesno repeated prime factor
All divisors1, 2, 89, 178, 4,721, 9,442, 420,169, 840,3388 in total
Arithmetic
Representations
Decimal840,338
Binary1100110100101001001020 bits
Octal3151222
HexadecimalCD292
Base 36I0EQ
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordseight hundred and forty thousand, three hundred and thirty-eight
Ordinaleight hundred and forty thousand, three hundred and thirty-eighth
Scientific notation8.40338 × 10^5
Engineering notation840.338 × 10^3
In other bases
Ternary1120200201122base 3; the most digit-efficient integer base after e: 13 digits
Quinary203342323base 5; one hand: 9 digits
Septenary10066652base 7: 8 digits
Nonary1520648base 9; each digit is two ternary digits: 7 digits
Duodecimal346382base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal550gibase 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal3:53:25:38base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary1TTT1T01T1TT0Tdigits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary111011101011110010110base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000011001101001010010010
Bit length20 bitsto write the magnitude
Set bits9the population count, or Hamming weight
Zero bits11within that length
Bit parityodd9 set bits, so odd; not the same as the number itself being even
Highest set bitbit 19worth 524,288
Lowest set bitbit 11 trailing zero
Power of twoNo
Bytes30c d2 92
Gray code10101011101111011011n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000011001101001010010010
64-bit0000000000000000000000000000000000000000000011001101001010010010
One's complement11111111111100110010110101101101at 32 bits, every bit flipped
Bits reversed01001001010010110011000000000000at 32 bits
Rotated left by 100000000000110011010010100100100at 32 bits, wrapping
Shifted left by 1110011010010100100100= 1,680,676, no wrap
Shifted right by 11100110100101001001= 420,169, discarding the low bit
These bits as a double4.15182137 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
840,338 to the power 2706,167,954,244
840,338 to the power 3593,419,766,333,494,472
840,338 to the power 4498,673,179,601,156,077,611,536
840,338 to the power 5419,054,022,399,676,295,947,922,939,168
First ten multiples840,338, 1,680,676, 2,521,014, 3,361,352, 4,201,690, 5,042,028, 5,882,366, 6,722,704, 7,563,042, 8,403,380
Powers of twoBetween 2^19 (524,288) and 2^20 (1,048,576)
Divisibility tests
Divisible by 2Yes
Divisible by 3No, remainder 2
Divisible by 4No, remainder 2
Divisible by 5No, remainder 3
Divisible by 6No, remainder 2
Divisible by 7No, remainder 2
Divisible by 8No, remainder 2
Divisible by 9No, remainder 8
Divisible by 10No, remainder 8
Divisible by 11No, remainder 4
Divisible by 12No, remainder 2
Divisible by 100No, remainder 38
Collatz (3n + 1) trajectory
Steps to reach 1113the total stopping time
Highest value reached2,127,1122× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps840,338 → 420,169 → 1,260,508 → 630,254 → 315,127 → 945,382 → 472,691 → 1,418,074 → 709,037 → 2,127,112 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage84,033,800%
840,338% as a decimal8,403.38
840,338% of 100840,338
840,338% of 1,0008,403,380
As a fraction of 100840,338/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 840,338
Also reads as
#840338 (colour)
- #840338
- Red
- Dark
- Nearest: Brown
#840338 is a red with RGB values 132, 3, 56 and HSL 335°, 96%, 26%. It is a dark colour, so white text on it reaches 10.2:1 contrast (AAA for normal text). The nearest named colour is Brown.
Colour values
#840338#840338
HEX#840338
RGBrgb(132, 3, 56)
RGB (0–1)0.5176, 0.0118, 0.2196
RGB percentages51.8%, 1.2%, 22%
HSLhsl(335.3, 95.6%, 26.5%)
HSV / HSBhsv(335.3, 97.7%, 51.8%)
CMYK0%, 97.7%, 57.6%, 48.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer8,651,576
CSS custom property--colour: #840338;
Brightness & contrast
Relative luminance0.05256WCAG 2.x, 0 is black and 1 is white
Perceived brightness74.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 10.24:1
Contrast with white10.24:1WCAG normal text: AAA
Contrast with black2.05:1WCAG normal text: Fail
Greyscale equivalent#222222
Inverted#7BFCC7
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text10.24:1WCAG large text: AAA
Contrast with black, large text2.05:1WCAG large text: Fail
Named colours
Hue familyred
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#03844F
Analogous#840379, #840F03
Triadic#388403, #033884
Split complementary#03840F, #037884
Tetradic#788403, #03844F, #0F0384
Tints, shades & saturation
Channel breakdown
R132
G3
B56
Red132 (51.8%)
Green3 (1.2%)
Blue56 (22%)
Hue335.35°
Saturation (HSL)95.56%
Lightness26.47%
Dominant channelRed
Hex per channelR 84 · G 03 · B 38
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