number.wiki
Number

42

42 — The Answer to Life, the Universe, and Everything

42 is a composite number, even, a calendar year.

In Douglas Adams' The Hitchhiker's Guide to the Galaxy, 42 is the answer computed by the supercomputer Deep Thought to the Ultimate Question of Life, the Universe, and Everything.

Mathematically, 42 is a sphenic number (the product of three distinct primes: 2 × 3 × 7), a pronic number, an abundant number, and the third primary pseudoperfect number. In 2019, mathematicians at the University of Bristol and MIT found a representation of 42 as a sum of three cubes:

\(42 = (-80\,538\,738\,812\,075\,974)^3 + 80\,435\,758\,145\,817\,515^3 + 12\,602\,123\,297\,335\,631^3\)

It was the last number under 100 for which such a representation was unknown.

Sources https://en.wikipedia.org/wiki/42_(number) · https://en.wikipedia.org/wiki/Sums_of_three_cubes
Abundant Number Catalan Number Curated Harshad / Niven Pronic / Oblong Sphenic Number Squarefree literature pop-culture

Properties

Parity
Even
Digit count
2
Digit sum
6
Digital root
6
Palindrome
No
Divisor count
8
σ(n) — sum of divisors
96

Primality

Prime factorization: 2 × 3 × 7

Divisors & multiples

All divisors (8)
1 · 2 · 3 · 6 · 7 · 14 · 21 · 42
Aliquot sum (sum of proper divisors): 54
Factor pairs (a × b = 42)
1 × 42
2 × 21
3 × 14
6 × 7
First multiples
42 · 84 · 126 · 168 · 210 · 252 · 294 · 336 · 378 · 420

Representations

In words
forty-two
Ordinal
42nd
Roman numeral
XLII
Binary
101010
Octal
52
Hexadecimal
2A

Also seen as

Goldbach decomposition

Goldbach's conjecture says every even integer greater than 2 is the sum of two primes. For 42, here are decompositions:

  • 5 + 37 = 42
  • 11 + 31 = 42
  • 13 + 29 = 42
  • 19 + 23 = 42
ASCII character

As an ASCII codepoint, 42 is *. Printable ASCII character *.

Hex color
#00002A
RGB(0, 0, 42)
IPv4 address

As an unsigned 32-bit integer, this is the IPv4 address 0.0.0.42.

Possible US bank routing number

This passes the ABA routing number checksum and matches the Federal Reserve numbering scheme.

Routing number
000000042
Federal Reserve
United States Government

Banks operate many routing numbers per state and division; an unmatched checksum-valid number can still be a real RTN at a smaller institution.