Numbers·40
40
XL
101000

The number 40 — factors and divisors

Abundant

40 = 2³ × 5. It has 8 divisors, adding up to 90.

Its divisors, itself excluded, add up to more than the number.

Laid out as dots

It fits as 5 × 8. The more divisors, the closer to a square.

Prime factors
2³ × 5
Divisors
1, 2, 4, 5, 8, 10, 20, 40
Sum of divisors
90
Sum without itself
50
Coprime below it
16
Digit sum
4
Digital root
4
Roman numeral
XL
Binary
101000
Octal
50
Hexadecimal
28
Base 36
14
Bits
6 bits
Collatz steps
8 steps · peaks at 40
Prime before
37
Prime after
41

The grid

Ten per row, twenty rows. The filled cells are primes — you can see the multiples of 2 and 5 drop out in columns.

Numbers either side

How to read this

  • The prime factors are what the number is made of. The count and sum of divisors both follow from them.
  • Add the divisors, take the number away, and you get perfect, abundant or deficient.
  • The length of the binary form is the bit count. 255 taking eight digits is what a byte is.
  • Collatz: halve it if even, triple it and add one if odd. The count is how many moves reach 1.

Frequently asked questions

Q. Is 40 a prime number?

No. It breaks down into 2³ × 5.

Q. What are the divisors of 40?

1, 2, 4, 5, 8, 10, 20, 40 — 8 divisors in all, adding up to 90.

Q. How is 40 written in binary?

101000, which is 6 bits. In hexadecimal it is 28.

Q. How many Collatz steps does 40 take?

It reaches 1 in 8, peaking at 40 on the way.