Nerdulator> put something in

Recognised as Number

31,957

  • Positive
  • Odd
  • Prime
  • 5 digits

31,957 is an odd 5-digit integer and a prime number. It has 2 divisors and a digital root of 7.

Number properties

ParityOddnot divisible by 2
SignPositive
PrimalityPrime
Absolute value31,957
Digit count5
Digit sum25
Digit product945
Multiplicative persistence3times the digit product can be taken before one digit is left
Digital root7repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum

Factors & divisors

Prime factorisation31,957
Distinct prime factors131,957
Number of divisors2
Sum of divisors σ(n)31,958
Aliquot sum1sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)31,956integers below n that share no factor with it
Carmichael function λ(n)31,956the 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, 31,9572 in total

Arithmetic

Previous number31,956
Next number31,958
Double63,914
Square root178.765209143≈irrational, shown to 9 decimal places
Cube root31.733794197≈
Negation-31,957
Reciprocal0.000031292≈

Representations

Decimal31,957
Binary11111001101010115 bits
Octal76325
Hexadecimal7CD5
Base 36ONP
Roman numeralNot defined above 3,999there is no agreed standard notation
In wordsthirty-one thousand, nine hundred and fifty-seven
Ordinalthirty-one thousand, nine hundred and fifty-seventh
Scientific notation3.1957 × 10^4
Engineering notation31.957 × 10^3

In other bases

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

Bit-level

0111110011010101
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 odd
Highest set bitbit 14worth 16,384
Lowest set bitbit 00 trailing zeros
Power of twoNo
Bytes27c d5
Gray code100001010111111n XOR (n >> 1); successive values differ in exactly one bit

At each machine width

16-bit0111110011010101
32-bit00000000000000000111110011010101
64-bit0000000000000000000000000000000000000000000000000111110011010101
One's complement1000001100101010at 16 bits, every bit flipped
Bits reversed1010101100111110at 16 bits
Rotated left by 11111100110101010at 16 bits, wrapping
Shifted left by 11111100110101010= 63,914, no wrap
Shifted right by 111111001101010= 15,978, discarding the low bit
These bits as a double1.57888558 × 10^-319≈IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)

Nearest landmarks

Next prime31,963+6
Previous prime31,907−50
Distance to nearest prime0, it is prime
Nearest square below31,684
Nearest square above32,041

Powers & multiples

31,957 to the power 21,021,249,849
31,957 to the power 332,636,081,424,493
31,957 to the power 41,042,951,254,082,522,801
31,957 to the power 533,329,593,226,715,181,151,557
First ten multiples31,957, 63,914, 95,871, 127,828, 159,785, 191,742, 223,699, 255,656, 287,613, 319,570
Powers of twoBetween 2^14 (16,384) and 2^15 (32,768)

Divisibility tests

Divisible by 2No, remainder 1
Divisible by 3No, remainder 1
Divisible by 4No, remainder 1
Divisible by 5No, remainder 2
Divisible by 6No, remainder 1
Divisible by 7No, remainder 2
Divisible by 8No, remainder 5
Divisible by 9No, remainder 7
Divisible by 10No, remainder 7
Divisible by 11No, remainder 2
Divisible by 12No, remainder 1
Divisible by 100No, remainder 57

Collatz (3n + 1) trajectory

Steps to reach 154the total stopping time
Highest value reached95,8723× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps31,957 → 95,872 → 47,936 → 23,968 → 11,984 → 5,992 → 2,996 → 1,498 → 749 → 2,248 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1

As a percentage & fraction

As a percentage3,195,700%
31,957% as a decimal319.57
31,957% of 10031,957
31,957% of 1,000319,570
As a fraction of 10031,957/100

Read another way

As bytes31.208 KiB
As a 24-bit colour#007CD5

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 “31957” by Nerdulator’s number engine. Nothing here was retrieved from a database of answers or written by a model.