Nerdulator> put something in

Recognised as Number

3,171

  • Positive
  • Odd
  • Composite
  • 4 digits

3,171 is an odd 4-digit integer and a composite number. It has 8 divisors and a digital root of 3.

Number properties

ParityOddnot divisible by 2
SignPositive
PrimalityComposite
Absolute value3,171
Digit count4
Digit sum12
Digit product21
Multiplicative persistence2times the digit product can be taken before one digit is left
Digital root3repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum

Factors & divisors

Prime factorisation3 × 7 × 151
Distinct prime factors33, 7, 151
Number of divisors8
Sum of divisors σ(n)4,864
Aliquot sum1,693sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)1,800integers below n that share no factor with it
Carmichael function λ(n)150the smallest exponent with aˣ ≡ 1 for every unit; smaller than φ(n) = 1,800
Möbius function μ(n)−13 distinct prime factors, an odd number of them
SquarefreeYesno repeated prime factor
All divisors1, 3, 7, 21, 151, 453, 1,057, 3,1718 in total

Arithmetic

Previous number3,170
Next number3,172
Double6,342
Square root56.311632901irrational, shown to 9 decimal places
Cube root14.691475459
Negation-3,171
Reciprocal0.0003153579

Representations

Decimal3,171
Binary11000110001112 bits
Octal6143
HexadecimalC63
Base 362G3
Roman numeralMMMCLXXI
In wordsthree thousand, one hundred and seventy-one
Ordinalthree thousand, one hundred and seventy-first
Scientific notation3.171 × 10^3
Engineering notation3.171 × 10^3

In other bases

Ternary11100110base 3; the most digit-efficient integer base after e: 8 digits
Quinary100141base 5; one hand: 6 digits
Septenary12150base 7: 5 digits
Nonary4313base 9; each digit is two ternary digits: 4 digits
Duodecimal1a03base 12; divides by 2, 3, 4 and 6, which is why eggs and inches come in twelves: 4 digits
Vigesimal7ibbase 20; hands and feet, and the Mayan and Yoruba systems: 3 digits
Sexagesimal52:51base 60; Babylonian, and still how an hour and a circle are divided: 2 digits
Balanced ternary11100110digits −1, 0 and +1 written T, 0 and 1; negation is swapping T and 1, so no sign is needed
Negabinary1110110100111base −2; place values alternate 1, −2, 4, −8, so every integer has exactly one form without a sign

Bit-level

0000110001100011
Bit length12 bitsto write the magnitude
Set bits6the population count, or Hamming weight
Zero bits6within that length
Bit parityeven6 set bits, so even; not the same as the number itself being odd
Highest set bitbit 11worth 2,048
Lowest set bitbit 00 trailing zeros
Power of twoNo
Bytes20c 63
Gray code101001010010n XOR (n >> 1); successive values differ in exactly one bit

At each machine width

16-bit0000110001100011
32-bit00000000000000000000110001100011
64-bit0000000000000000000000000000000000000000000000000000110001100011
One's complement1111001110011100at 16 bits, every bit flipped
Bits reversed1100011000110000at 16 bits
Rotated left by 10001100011000110at 16 bits, wrapping
Shifted left by 11100011000110= 6,342, no wrap
Shifted right by 111000110001= 1,585, discarding the low bit
These bits as a double1.56668216 × 10^-320IEEE-754 binary64 reinterpretation of the same 64 bits (subnormal)

Nearest landmarks

Next prime3,181+10
Previous prime3,169−2
Distance to nearest prime2
Nearest square below3,136
Nearest square above3,249

Powers & multiples

3,171 to the power 210,055,241
3,171 to the power 331,885,169,211
3,171 to the power 4101,107,871,568,081
3,171 to the power 5320,613,060,742,384,851
First ten multiples3,171, 6,342, 9,513, 12,684, 15,855, 19,026, 22,197, 25,368, 28,539, 31,710
Powers of twoBetween 2^11 (2,048) and 2^12 (4,096)

Divisibility tests

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

Collatz (3n + 1) trajectory

Steps to reach 179the total stopping time
Highest value reached14,2724× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps3,171 → 9,514 → 4,757 → 14,272 → 7,136 → 3,568 → 1,784 → 892 → 446 → 223 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1

As a percentage & fraction

As a percentage317,100%
3,171% as a decimal31.71
3,171% of 1003,171
3,171% of 1,00031,710
As a fraction of 1003,171/100

Read another way

As bytes3.097 KiB
As a 24-bit colour#000C63

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Also reads as

3171 (year)

  • Common year
  • 365 days
  • 32nd century
  • Pig

3171 will be a common year of 365 days. It begins on a Friday and ends on a Friday. Easter Sunday falls on 18 April.

Open this reading on its own page →

Structure of the year

Leap yearNonot divisible by 4
Days in the year365
Days in February28
1 January fell on aFriday
31 December fell on aFriday
Century32nd century
Decade3170s
Chinese zodiacPig
Easter Sunday18 April

Patterns forced by the calendar

Weekday counts52 of each, plus an extra Friday365 days is 52 weeks and 1 day, and the remainder starts on the weekday 1 January falls on
Sundays52
Mondays52
Tuesdays52
Wednesdays52
Thursdays52
Fridays53one of the extras
Saturdays52
Friday the 13th1 of them13 August
ISO weeks52an ordinary 52-week year
Same calendar as3165the most recent year whose calendar is identical, so a printed one could be reused
Calendar repeats in3182, 3193, 319911 years later, then again after that; the gap is 6, 11 or 28 years, broken by centuries that skip a leap year

Months of 3171

Time references

These values depend on today’s date and change daily.

Unix timestamp at the start37,899,878,400
Unix timestamp at the end37,931,414,399
Years from now1,145 years from now
Days from today417,940 days to 1 January

The number 3171

As a number3,171
In wordsthree thousand, one hundred and seventy-one
Roman numeralsMMMCLXXI

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Also reads as

#331177 (colour)

  • #331177
  • Violet
  • Dark
  • Nearest: Midnight blue

#331177 is a violet with RGB values 51, 17, 119 and HSL 260°, 75%, 27%. It is a dark colour, so white text on it reaches 14.1:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Open this reading on its own page →

Colour values

#331177#331177
HEX#331177
HEX (short)#317
RGBrgb(51, 17, 119)
RGB (0–1)0.2, 0.0667, 0.4667
RGB percentages20%, 6.7%, 46.7%
HSLhsl(260, 75%, 26.7%)
HSV / HSBhsv(260, 85.7%, 46.7%)
CMYK57.1%, 85.7%, 0%, 53.3%naive device-independent conversion; real print needs an ICC profile
24-bit integer3,346,807
CSS custom property--colour: #331177;

Brightness & contrast

Relative luminance0.02437WCAG 2.x, 0 is black and 1 is white
Perceived brightness50.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.12:1
Contrast with white14.12:1WCAG normal text: AAA
Contrast with black1.49:1WCAG normal text: Fail
Greyscale equivalent#202020
Inverted#CCEE88

Colour vision & accessibility

Protanopia#002D7Ano red cones; affects about 1% of men; ΔE 21.6 from the original
Deuteranopia#002975no green cones; the most common form, about 1% of men; ΔE 20.7 from the original
Tritanopia#163045no blue cones; rare, and affects men and women equally; ΔE 55.8 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.12:1WCAG large text: AAA
Contrast with black, large text1.49:1WCAG large text: Fail

Named colours

Nearest named CSS colourMidnight blue (#191970)ΔE 9.64, clearly different but related
Hue familyviolet
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#557711
Analogous#112277, #661177
Triadic#773311, #117733
Split complementary#776611, #227711
Tetradic#771122, #557711, #117766

Tints, shades & saturation

Lighter +40%#956AEA
Lighter +30%#753EE3
Lighter +20%#591ED0
Lighter +10%#4617A4
Darker −10%#200B4A
Darker −20%#0D041E
Darker −30%#000000
Darker −40%#000000
More saturated +25%#2D0088
Less saturated −25%#392266

Channel breakdown

R51
G17
B119
Red51 (20%)
Green17 (6.7%)
Blue119 (46.7%)
Hue260°
Saturation (HSL)75%
Lightness26.67%
Dominant channelBlue
Hex per channelR 33 · G 11 · B 77

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