Number 400

Even Composite Positive

four hundred

« 399 401 »

Basic Properties

Value400
In Wordsfour hundred
Absolute Value400
SignPositive (+)
Is EvenYes
Is OddNo
Is PrimeNo
Is CompositeYes
Is Perfect SquareYes (20²)
Is Perfect CubeNo
Is Power of 2No
Roman NumeralCD
Square (n²)160000
Cube (n³)64000000
Reciprocal (1/n)0.0025

Factors & Divisors

Factors 1 2 4 5 8 10 16 20 25 40 50 80 100 200 400
Number of Divisors15
Sum of Proper Divisors561
Prime Factorization 2 × 2 × 2 × 2 × 5 × 5
Is Perfect NumberNo
Is AbundantYes
Is DeficientNo

Number Theory

Digit Sum4
Digital Root4
Number of Digits3
Is PalindromeNo
Is Armstrong NumberNo
Is Harshad NumberYes
Is Fibonacci NumberNo
Collatz Steps to 127
Goldbach Partition 3 + 397
Next Prime 401
Previous Prime 397

Trigonometric Functions

sin(400)-0.8509193596
cos(400)-0.5252963386
tan(400)1.619884429
arctan(400)1.568296332
sinh(400)2.610734845E+173
cosh(400)2.610734845E+173
tanh(400)1

Roots & Logarithms

Square Root20
Cube Root7.368062997
Natural Logarithm (ln)5.991464547
Log Base 102.602059991
Log Base 28.64385619

Number Base Conversions

Binary (Base 2)110010000
Octal (Base 8)620
Hexadecimal (Base 16)190
Base64NDAw

Cryptographic Hashes

MD518d8042386b79e2c279fd162df0205c8
SHA-1ab7f7b955330dc8dcd7f8ae3d9689ffa32bf10d5
SHA-25626d228663f13a88592a12d16cf9587caab0388b262d6d9f126ed62f9333aca94
SHA-512291d69ce0cabc29f2e1fd1a629932757bdb93989721dc8b307f6aa1f4bb824299376c3e6b30ab3a3280e5341040fe0cde955653dfebb25b1b76a88f2bded1028

Initialize 400 in Different Programming Languages

LanguageCode
C#int number = 400;
C/C++int number = 400;
Javaint number = 400;
JavaScriptconst number = 400;
TypeScriptconst number: number = 400;
Pythonnumber = 400
Rubynumber = 400
PHP$number = 400;
Govar number int = 400
Rustlet number: i32 = 400;
Swiftlet number = 400
Kotlinval number: Int = 400
Scalaval number: Int = 400
Dartint number = 400;
Rnumber <- 400L
MATLABnumber = 400;
Lualocal number = 400
Perlmy $number = 400;
Haskellnumber :: Int number = 400
Elixirnumber = 400
Clojure(def number 400)
F#let number = 400
Visual BasicDim number As Integer = 400
Pascal/Delphivar number: Integer = 400;
SQLDECLARE @number INT = 400;
Bashnumber=400
PowerShell$number = 400

Fun Facts about 400

  • The number 400 is four hundred.
  • 400 is an even number.
  • 400 is a composite number with 15 divisors.
  • 400 is a perfect square (20² = 400).
  • 400 is a Harshad number — it is divisible by the sum of its digits (4).
  • 400 is an abundant number — the sum of its proper divisors (561) exceeds it.
  • The digit sum of 400 is 4, and its digital root is 4.
  • The prime factorization of 400 is 2 × 2 × 2 × 2 × 5 × 5.
  • Starting from 400, the Collatz sequence reaches 1 in 27 steps.
  • 400 can be expressed as the sum of two primes: 3 + 397 (Goldbach's conjecture).
  • In Roman numerals, 400 is written as CD.
  • In binary, 400 is 110010000.
  • In hexadecimal, 400 is 190.

About the Number 400

Overview

The number 400, spelled out as four hundred, is an even positive integer. In mathematics, every integer has a unique set of properties that define its role in arithmetic, algebra, and number theory. On this page we explore everything there is to know about the number 400 — from its divisibility and prime factorization to its trigonometric values, binary representation, and cryptographic hashes.

Parity and Sign

The number 400 is even, which means it is exactly divisible by 2 with no remainder. Even numbers play a fundamental role in mathematics — they form one of the two basic parity classes and appear in many divisibility rules, algebraic identities, and combinatorial arguments.As a positive number, 400 lies to the right of zero on the number line. Its absolute value is 400.

Primality and Factorization

400 is a composite number, meaning it has divisors other than 1 and itself. Specifically, 400 has 15 divisors: 1, 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, 80, 100, 200, 400. The sum of its proper divisors (all divisors except 400 itself) is 561, which makes 400 an abundant number, since 561 > 400. Abundant numbers are integers where the sum of proper divisors exceeds the number.

The prime factorization of 400 is 2 × 2 × 2 × 2 × 5 × 5. Prime factorization is essential for computing the greatest common divisor (GCD) and least common multiple (LCM), simplifying fractions, and solving problems in modular arithmetic. The nearest primes to 400 are 397 and 401.

Special Classifications

Beyond basic primality, number theorists have identified many special categories that a number can belong to. 400 is a perfect square — it can be expressed as 20². Perfect squares have an odd number of divisors and appear naturally in geometry (areas of squares), the Pythagorean theorem, and quadratic equations. 400 is a Harshad number (from Sanskrit “joy-giver”) — it is divisible by the sum of its digits (4). Harshad numbers connect divisibility theory with digit-based properties of integers.

Digit Properties

The digits of 400 sum to 4, and its digital root (the single-digit value obtained by repeatedly summing digits) is 4. The number 400 has 3 digits in its decimal representation. Digit sums are fundamental to divisibility tests: a number is divisible by 3 if and only if its digit sum is divisible by 3, and the same holds for divisibility by 9. The digital root, also known as the repeated digital sum, has applications in casting out nines — a centuries-old technique for verifying arithmetic calculations.

Number Base Conversions

In the binary (base-2) number system, 400 is represented as 110010000. Binary is the language of digital computers — every file, image, video, and program is ultimately stored as a sequence of binary digits (bits). In octal (base-8), 400 is 620, a system historically used in computing because each octal digit corresponds to exactly three binary digits. In hexadecimal (base-16), 400 is 190 — hex is ubiquitous in programming for representing memory addresses, color codes (#FF5733), and byte values.

The Base64 encoding of the string “400” is NDAw. Base64 is widely used in web development for encoding binary data in URLs, email attachments (MIME), JSON Web Tokens (JWT), and data URIs in HTML and CSS.

Mathematical Functions

The square of 400 is 160000 (i.e. 400²), and its square root is approximately 20.000000. The cube of 400 is 64000000, and its cube root is approximately 7.368063. The reciprocal (1/400) is 0.0025.

The natural logarithm (ln) of 400 is 5.991465, the base-10 logarithm is 2.602060, and the base-2 logarithm is 8.643856. Logarithms are essential in measuring earthquake magnitudes (Richter scale), sound levels (decibels), acidity (pH), and information content (bits).

Trigonometry

Treating 400 as an angle in radians, the principal trigonometric functions yield: sin(400) = -0.8509193596, cos(400) = -0.5252963386, and tan(400) = 1.619884429. The hyperbolic functions give: sinh(400) = 2.610734845E+173, cosh(400) = 2.610734845E+173, and tanh(400) = 1. Trigonometric functions are indispensable in physics (wave motion, oscillations, alternating current), engineering (signal processing, structural analysis), computer graphics (rotations, projections), and navigation (GPS, celestial mechanics).

Cryptographic Hashes

When the string “400” is passed through standard cryptographic hash functions, the results are: MD5: 18d8042386b79e2c279fd162df0205c8, SHA-1: ab7f7b955330dc8dcd7f8ae3d9689ffa32bf10d5, SHA-256: 26d228663f13a88592a12d16cf9587caab0388b262d6d9f126ed62f9333aca94, and SHA-512: 291d69ce0cabc29f2e1fd1a629932757bdb93989721dc8b307f6aa1f4bb824299376c3e6b30ab3a3280e5341040fe0cde955653dfebb25b1b76a88f2bded1028. Cryptographic hashes are one-way functions that produce a fixed-size output from any input. They are used for data integrity verification (detecting file corruption or tampering), password storage (storing hashes instead of plaintext passwords), digital signatures, blockchain technology (Bitcoin uses SHA-256), and content addressing (Git uses SHA-1 to identify objects).

Collatz Conjecture

The Collatz conjecture (also known as the 3n + 1 problem) is one of the most famous unsolved problems in mathematics. Starting from 400 and repeatedly applying the rule — divide by 2 if even, multiply by 3 and add 1 if odd — the sequence reaches 1 in 27 steps. Despite its simplicity, no one has been able to prove that this process always terminates for every starting number, and the conjecture remains open since it was first proposed by Lothar Collatz in 1937.

Goldbach’s Conjecture

According to Goldbach’s conjecture, every even integer greater than 2 can be expressed as the sum of two prime numbers. For 400, one such partition is 3 + 397 = 400. This conjecture, proposed in 1742 by Christian Goldbach in a letter to Leonhard Euler, has been verified computationally for all even numbers up to at least 4 × 1018, but a general proof remains elusive.

Roman Numerals

In the Roman numeral system, 400 is written as CD. Roman numerals originated in ancient Rome and use combinations of letters (I, V, X, L, C, D, M) with subtractive notation for certain values. They remain in use today on clock faces, in book chapters, film sequels, and formal outlines.

Programming

In software development, the number 400 can be represented across dozens of programming languages. For example, in C# you would write int number = 400;, in Python simply number = 400, in JavaScript as const number = 400;, and in Rust as let number: i32 = 400;. Math.Number provides initialization code for 27 programming languages, making it a handy quick-reference for developers working across different technology stacks.

Related Numbers

Nearby Numbers