Recognised as Number
31,504
- Positive
- Even
- Composite
- 5 digits
31,504 is an even 5-digit integer and a composite number. It has 20 divisors and a digital root of 4.
The canonical address for this page is /31504.
Number properties
ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value31,504
Digit count5
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^4 × 11 × 179
Distinct prime factors32, 11, 179
Number of divisors20
Sum of divisors σ(n)66,960
Aliquot sum35,456sum of the proper divisors
ClassificationAbundantthe aliquot sum exceeds the number
Euler's totient φ(n)14,240integers below n that share no factor with it
Carmichael function λ(n)1,780the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 14,240
Möbius function μ(n)0zero, because a prime divides n twice
SquarefreeNohas a repeated prime factor
All divisors1, 2, 4, 8, 11, 16, 22, 44, 88, 176, 179, 358, 716, 1,432, 1,969, 2,864, 3,938, 7,876, 15,752, 31,50420 in total
Arithmetic
Representations
Decimal31,504
Binary11110110001000015 bits
Octal75420
Hexadecimal7B10
Base 36OB4
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthirty-one thousand, five hundred and four
Ordinalthirty-one thousand, five hundred and fourth
Scientific notation3.1504 × 10^4
Engineering notation31.504 × 10^3
In other bases
Ternary1121012211base 3; the most digit-efficient integer base after e: 10 digits
Quinary2002004base 5; one hand: 7 digits
Septenary160564base 7: 6 digits
Nonary47184base 9; each digit is two ternary digits: 5 digits
Duodecimal16294base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 5 digits
Vigesimal3if4base 20; hands and feet, and the Mayan and Yoruba systems: 4 digits
Sexagesimal8:45:4base 60; Babylonian, and still how an hour and a circle are divided: 3 digits
Balanced ternary1TTT11T0T11digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary11000111100010000base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign
Bit-level
0111101100010000
Bit length15 bitsto write the magnitude
Set bits7the population count, or Hamming weight
Zero bits8within that length
Bit parityodd7 set bits, so odd; not the same as the number itself being even
Highest set bitbit 14worth 16,384
Lowest set bitbit 44 trailing zeros
Power of twoNo
Bytes27b 10
Gray code100011010011000n XOR (n >> 1); successive values differ in exactly one bit
At each machine width
16-bit0111101100010000
32-bit00000000000000000111101100010000
64-bit0000000000000000000000000000000000000000000000000111101100010000
One's complement1000010011101111at 16 bits, every bit flipped
Bits reversed0000100011011110at 16 bits
Rotated left by 11111011000100000at 16 bits, wrapping
Shifted left by 11111011000100000= 63,008, no wrap
Shifted right by 111110110001000= 15,752, discarding the low bit
These bits as a double1.55650441 × 10^-319≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)
Nearest landmarks
Powers & multiples
31,504 to the power 2992,502,016
31,504 to the power 331,267,783,512,064
31,504 to the power 4985,060,251,764,064,256
31,504 to the power 531,033,338,171,575,080,321,024
First ten multiples31,504, 63,008, 94,512, 126,016, 157,520, 189,024, 220,528, 252,032, 283,536, 315,040
Powers of twoBetween 2^14 (16,384) and 2^15 (32,768)
Divisibility tests
Divisible by 2Yes
Divisible by 3No, remainder 1
Divisible by 4Yes
Divisible by 5No, remainder 4
Divisible by 6No, remainder 4
Divisible by 7No, remainder 4
Divisible by 8Yes
Divisible by 9No, remainder 4
Divisible by 10No, remainder 4
Divisible by 11Yes
Divisible by 12No, remainder 4
Divisible by 100No, remainder 4
Collatz (3n + 1) trajectory
Steps to reach 128the total stopping time
Highest value reached31,504
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps31,504 → 15,752 → 7,876 → 3,938 → 1,969 → 5,908 → 2,954 → 1,477 → 4,432 → 2,216 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1
As a percentage & fraction
As a percentage3,150,400%
31,504% as a decimal315.04
31,504% of 10031,504
31,504% of 1,000315,040
As a fraction of 10031,504/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 31,504
Also reads as
#031504 (colour)
- #031504
- Green
- Dark
- Nearest: Black
#031504 is a green with RGB values 3, 21, 4 and HSL 123°, 75%, 5%. It is a dark colour, so white text on it reaches 18.9:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#031504#031504
HEX#031504
RGBrgb(3, 21, 4)
RGB (0–1)0.0118, 0.0824, 0.0157
RGB percentages1.2%, 8.2%, 1.6%
HSLhsl(123.3, 75%, 4.7%)
HSV / HSBhsv(123.3, 85.7%, 8.2%)
CMYK85.7%, 0%, 81%, 91.8%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer201,988
CSS custom property--colour: #031504;
Brightness & contrast
Relative luminance0.00564WCAG 2.x, 0 is black and 1 is white
Perceived brightness16.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.87:1
Contrast with white18.87:1WCAG normal text: AAA
Contrast with black1.11:1WCAG normal text: Fail
Greyscale equivalent#101010
Inverted#FCEAFB
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.87:1WCAG large text: AAA
Contrast with black, large text1.11:1WCAG large text: Fail
Named colours
Hue familygreen
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#150314
Analogous#0B1503, #03150D
Triadic#040315, #150403
Split complementary#0D0315, #15030B
Tetradic#030B15, #150314, #150D03
Tints, shades & saturation
Channel breakdown
R3
G21
B4
Red3 (1.2%)
Green21 (8.2%)
Blue4 (1.6%)
Hue123.33°
Saturation (HSL)75%
Lightness4.71%
Dominant channelGreen
Hex per channelR 03 · G 15 · B 04
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