Recognised as Number
520,787
- Positive
- Odd
- Prime
- 6 digits
520,787 is an odd 6-digit integer and a prime number. It has 2 divisors and a digital root of 2.
Number properties
ParityOddnot divisible by 2
SignPositive
PrimalityPrime
Absolute value520,787
Digit count6
Digit sum29
Digit product0zero, because one of the digits is zero
Multiplicative persistence1times the digit product can be taken before one digit is left
Digital root2repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum
Factors & divisors
Prime factorisation520,787
Distinct prime factors1520,787
Number of divisors2
Sum of divisors σ(n)520,788
Aliquot sum1sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)520,786integers below n that share no factor with it
Carmichael function λ(n)520,786the smallest exponent with aˣ ≡ 1 for every unit coprime to n
Möbius function μ(n)−11 distinct prime factor, an odd number of them
SquarefreeYesno repeated prime factor
All divisors1, 520,7872 in total
Arithmetic
Representations
Decimal520,787
Binary111111100100101001119 bits
Octal1771123
Hexadecimal7F253
Base 36B5UB
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsfive hundred and twenty thousand, seven hundred and eighty-seven
Ordinalfive hundred and twenty thousand, seven hundred and eighty-seventh
Scientific notation5.20787 × 10^5
Engineering notation520.787 × 10^3
In other bases
Ternary222110101102base 3; the most digit-efficient integer base after e: 12 digits
Quinary113131122base 5; one hand: 9 digits
Septenary4266221base 7: 7 digits
Nonary873342base 9; each digit is two ternary digits: 6 digits
Duodecimal21146bbase 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 6 digits
Vigesimal351j7base 20; hands and feet, and the Mayan and Yoruba systems: 5 digits
Sexagesimal2:24:39:47base 60; Babylonian, and still how an hour and a circle are divided: 4 digits
Balanced ternary100T11010111Tdigits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary110000011011001010111base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
00000000000001111111001001010011
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
Bytes307 f2 53
Gray code1000000101101111010n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
32-bit00000000000001111111001001010011
64-bit0000000000000000000000000000000000000000000001111111001001010011
One's complement11111111111110000000110110101100at 32 bits, every bit flipped
Bits reversed11001010010011111110000000000000at 32 bits
Rotated left by 100000000000011111110010010100110at 32 bits, wrapping
Shifted left by 111111110010010100110= 1,041,574, no wrap
Shifted right by 1111111100100101001= 260,393, discarding the low bit
These bits as a double2.57302966 × 10^-318≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
520,787 to the power 2271,219,099,369
520,787 to the power 3141,247,381,103,083,403
520,787 to the power 473,559,799,862,531,496,198,161
520,787 to the power 538,308,987,491,008,190,310,551,672,707
First ten multiples520,787, 1,041,574, 1,562,361, 2,083,148, 2,603,935, 3,124,722, 3,645,509, 4,166,296, 4,687,083, 5,207,870
Powers of twoBetween 2^18 (262,144) and 2^19 (524,288)
Divisibility tests
Divisible by 2No, remainder 1
Divisible by 3No, remainder 2
Divisible by 4No, remainder 3
Divisible by 5No, remainder 2
Divisible by 6No, remainder 5
Divisible by 7No, remainder 1
Divisible by 8No, remainder 3
Divisible by 9No, remainder 2
Divisible by 10No, remainder 7
Divisible by 11No, remainder 3
Divisible by 12No, remainder 11
Divisible by 100No, remainder 87
Collatz (3n + 1) trajectory
Steps to reach 171the total stopping time
Highest value reached2,966,0565× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps520,787 → 1,562,362 → 781,181 → 2,343,544 → 1,171,772 → 585,886 → 292,943 → 878,830 → 439,415 → 1,318,246 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage52,078,700%
520,787% as a decimal5,207.87
520,787% of 100520,787
520,787% of 1,0005,207,870
As a fraction of 100520,787/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 520,787
Also reads as
#520787 (colour)
- #520787
- Violet
- Dark
- Nearest: Indigo
#520787 is a violet with RGB values 82, 7, 135 and HSL 275°, 90%, 28%. It is a dark colour, so white text on it reaches 12.1:1 contrast (AAA for normal text). The nearest named colour is Indigo.
Colour values
#520787#520787
HEX#520787
RGBrgb(82, 7, 135)
RGB (0–1)0.3216, 0.0275, 0.5294
RGB percentages32.2%, 2.7%, 52.9%
HSLhsl(275.2, 90.1%, 27.8%)
HSV / HSBhsv(275.2, 94.8%, 52.9%)
CMYK39.3%, 94.8%, 0%, 47.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer5,375,879
CSS custom property--colour: #520787;
Brightness & contrast
Relative luminance0.03695WCAG 2.x, 0 is black and 1 is white
Perceived brightness64.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.08:1
Contrast with white12.08:1WCAG normal text: AAA
Contrast with black1.74:1WCAG normal text: Fail
Greyscale equivalent#202020
Inverted#ADF878
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12.08:1WCAG large text: AAA
Contrast with black, large text1.74:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#3C8707
Analogous#120787, #87077C
Triadic#875207, #078752
Split complementary#7C8707, #078712
Tetradic#871207, #3C8707, #077C87
Tints, shades & saturation
Channel breakdown
R82
G7
B135
Red82 (32.2%)
Green7 (2.7%)
Blue135 (52.9%)
Hue275.16°
Saturation (HSL)90.14%
Lightness27.84%
Dominant channelBlue
Hex per channelR 52 · G 07 · B 87
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