Nerdulator> put something in

Recognised as Number

31,958

  • Positive
  • Even
  • Composite
  • 5 digits

31,958 is an even 5-digit integer and a composite number. It has 12 divisors and a digital root of 8.

Number properties

ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value31,958
Digit count5
Digit sum26
Digit product1,080
Multiplicative persistence2times 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 × 19 × 29^2
Distinct prime factors32, 19, 29
Number of divisors12
Sum of divisors σ(n)52,260
Aliquot sum20,302sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)14,616integers below n that share no factor with it
Carmichael function λ(n)7,308the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 14,616
Möbius function μ(n)0zero, because a prime divides n twice
SquarefreeNohas a repeated prime factor
All divisors1, 2, 19, 29, 38, 58, 551, 841, 1,102, 1,682, 15,979, 31,95812 in total

Arithmetic

Previous number31,957
Next number31,959
Double63,916
Half15,979
Square root178.768006086≈irrational, shown to 9 decimal places
Cube root31.734125199≈
Negation-31,958
Reciprocal0.0000312911≈

Representations

Decimal31,958
Binary11111001101011015 bits
Octal76326
Hexadecimal7CD6
Base 36ONQ
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthirty-one thousand, nine hundred and fifty-eight
Ordinalthirty-one thousand, nine hundred and fifty-eighth
Scientific notation3.1958 × 10^4
Engineering notation31.958 × 10^3

In other bases

Ternary1121211122base 3; the most digit-efficient integer base after e: 10 digits
Quinary2010313base 5; one hand: 7 digits
Septenary162113base 7: 6 digits
Nonary47748base 9; each digit is two ternary digits: 5 digits
Duodecimal165b2base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 5 digits
Vigesimal3jhibase 20; hands and feet, and the Mayan and Yoruba systems: 4 digits
Sexagesimal8:52:38base 60; Babylonian, and still how an hour and a circle are divided: 3 digits
Balanced ternary1TT0T0TTT0Tdigits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary11000110100101010base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign

Bit-level

0111110011010110
Bit length15 bitsto write the magnitude
Set bits10the population count, or Hamming weight
Zero bits5within that length
Bit parityeven10 set bits, so even; not the same as the number itself being even
Highest set bitbit 14worth 16,384
Lowest set bitbit 11 trailing zero
Power of twoNo
Bytes27c d6
Gray code100001010111101n XOR (n >> 1); successive values differ in exactly one bit

At each machine width

16-bit0111110011010110
32-bit00000000000000000111110011010110
64-bit0000000000000000000000000000000000000000000000000111110011010110
One's complement1000001100101001at 16 bits, every bit flipped
Bits reversed0110101100111110at 16 bits
Rotated left by 11111100110101100at 16 bits, wrapping
Shifted left by 11111100110101100= 63,916, no wrap
Shifted right by 111111001101011= 15,979, discarding the low bit
These bits as a double1.57893499 × 10^-319≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)

Nearest landmarks

Next prime31,963+5
Previous prime31,957−1
Distance to nearest prime1
Nearest square below31,684
Nearest square above32,041

Powers & multiples

31,958 to the power 21,021,313,764
31,958 to the power 332,639,145,269,912
31,958 to the power 41,043,081,804,535,847,696
31,958 to the power 533,334,808,309,356,620,668,768
First ten multiples31,958, 63,916, 95,874, 127,832, 159,790, 191,748, 223,706, 255,664, 287,622, 319,580
Powers of twoBetween 2^14 (16,384) and 2^15 (32,768)

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 3
Divisible by 8No, remainder 6
Divisible by 9No, remainder 8
Divisible by 10No, remainder 8
Divisible by 11No, remainder 3
Divisible by 12No, remainder 2
Divisible by 100No, remainder 58

Collatz (3n + 1) trajectory

Steps to reach 154the total stopping time
Highest value reached71,9082× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps31,958 → 15,979 → 47,938 → 23,969 → 71,908 → 35,954 → 17,977 → 53,932 → 26,966 → 13,483 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1

As a percentage & fraction

As a percentage3,195,800%
31,958% as a decimal319.58
31,958% of 10031,958
31,958% of 1,000319,580
As a fraction of 10031,958/100

Read another way

As bytes31.209 KiB
As a 24-bit colour#007CD6

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

Every value on this page was computed from “31958” by Nerdulator’s number engine. Nothing here was retrieved from a database of answers or written by a model.