Nerdulator> put something in

Number

502

  • Positive
  • Even
  • Composite
  • 3 digits

502 is an even 3-digit integer and a composite number. It has 4 divisors and a digital root of 7.

Number properties

ParityEvendivisible by 2
SignPositive
PrimalityComposite
Absolute value502
Digit count3
Digit sum7
Digital root7repeated digit sum
PalindromicNoreads differently backwards
Happy numberNosquared-digit sums reach 1
Harshad numberNodivisible by its own digit sum

Factors & divisors

Prime factorisation2 × 251
Distinct prime factors22, 251
Number of divisors4
Sum of divisors σ(n)756
Aliquot sum254sum of the proper divisors
ClassificationDeficientthe aliquot sum is less than the number
Euler's totient φ(n)250integers below n that share no factor with it
SquarefreeYesno repeated prime factor
All divisors1, 2, 251, 5024 in total

Arithmetic

Previous number501
Next number503
Double1,004
Half251
Square252,004
Square root22.405356502irrational, shown to 9 decimal places
Cube root7.947573855
Negation-502
Reciprocal0.0019920319
502 factorial3068668520104161644984989570114671480466… (1,140 digits)

Representations

Decimal502
Binary1111101109 bits
Octal766
Hexadecimal1F6
Base 36DY
Roman numeralDII
In wordsfive hundred and two
Ordinalfive hundred and second
Scientific notation5.02 × 10^2
Engineering notation502

Nearest landmarks

Next prime503+1
Previous prime499−3
Distance to nearest prime1
Nearest square below484
Nearest square above529

Powers & multiples

502 to the power 2252,004
502 to the power 3126,506,008
502 to the power 463,506,016,016
502 to the power 531,880,020,040,032
First ten multiples502, 1,004, 1,506, 2,008, 2,510, 3,012, 3,514, 4,016, 4,518, 5,020
Powers of twoBetween 2^8 (256) and 2^9 (512)

Divisibility tests

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

Collatz (3n + 1) trajectory

Steps to reach 166the total stopping time
Highest value reached9,23218× the starting value
Reaches 1Yesthe Collatz conjecture says every positive integer does, but it is unproven
First steps502 → 251 → 754 → 377 → 1,132 → 566 → 283 → 850 → 425 → 1,276 → …
Last steps… → 5 → 16 → 8 → 4 → 2 → 1

As a percentage & fraction

As a percentage50,200%
502% as a decimal5.02
502% of 100502
502% of 1,0005,020
As a fraction of 100502/100

Read another way

As bytes502 B
As a 24-bit colour#0001F6

Keep nerding

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

Also reads as

#550022 (colour)

  • #550022
  • Red
  • Dark
  • Nearest: Brown

#550022 is a red with RGB values 85, 0, 34 and HSL 336°, 100%, 17%. It is a dark colour, so white text on it reaches 14.9:1 contrast (AAA for normal text). The nearest named colour is Brown.

Open this reading on its own page →

Colour values

#550022#550022
HEX#550022
HEX (short)#502
RGBrgb(85, 0, 34)
RGB (0–1)0.3333, 0, 0.1333
RGB percentages33.3%, 0%, 13.3%
HSLhsl(336, 100%, 16.7%)
HSV / HSBhsv(336, 100%, 33.3%)
CMYK0%, 100%, 60%, 66.7%naive device-independent conversion; real print needs an ICC profile
24-bit integer5,570,594
CSS custom property--colour: #550022;

Brightness & contrast

Relative luminance0.02047WCAG 2.x, 0 is black and 1 is white
Perceived brightness47.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.9:1
Contrast with white14.9:1WCAG normal text: AAA
Contrast with black1.41:1WCAG normal text: Fail
Greyscale equivalent#151515
Inverted#AAFFDD

Colour vision & accessibility

Protanopia#1A1D23no red cones; affects about 1% of men; ΔE 38.8 from the original
Deuteranopia#302D20no green cones; the most common form, about 1% of men; ΔE 39.2 from the original
Tritanopia#5E0010no blue cones; rare, and affects men and women equally; ΔE 15.5 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.9:1WCAG large text: AAA
Contrast with black, large text1.41:1WCAG large text: Fail

Named colours

Nearest named CSS colourBrown (#A52A2A)ΔE 35.84, a distinctly different colour
Hue familyred
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#005533
Analogous#55004D, #550800
Triadic#225500, #002255
Split complementary#005509, #004C55
Tetradic#4C5500, #005533, #080055

Tints, shades & saturation

Lighter +40%#FF227A
Lighter +30%#EE005F
Lighter +20%#BB004B
Lighter +10%#880036
Darker −10%#22000E
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#550022
Less saturated −25%#4A0B24

Channel breakdown

R85
G0
B34
Red85 (33.3%)
Green0 (0%)
Blue34 (13.3%)
Hue336°
Saturation (HSL)100%
Lightness16.67%
Dominant channelRed
Hex per channelR 55 · G 00 · B 22

Keep nerding

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

Also reads as

HTTP 502 Bad Gateway (http status)

  • 502 Bad Gateway
  • Server error
  • RFC 9110

HTTP 502 Bad Gateway is a server error response: an upstream server returned an invalid response. It is defined in RFC 9110, and the server failed to fulfil an apparently valid request.

Open this reading on its own page →

What it means

Status code502
Reason phraseBad Gatewayadvisory only; clients must not depend on the wording
Class5xx Server error
MeaningAn upstream server returned an invalid response
Defined inRFC 9110
Cacheable by defaultNoonly cacheable if the response says so explicitly

How clients behave

Indicates an errorYes
Whose faultThe server
Body expectedUsually
Safe to retry automaticallyOften

The 5xx class

Class meaningThe server failed to fulfil an apparently valid request
Codes in this class11
Lowest in class500
Highest in class511

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