Number 2021

Odd Composite Positive

two thousand and twenty-one

« 2020 2022 »

Basic Properties

Value2021
In Wordstwo thousand and twenty-one
Absolute Value2021
SignPositive (+)
Is EvenNo
Is OddYes
Is PrimeNo
Is CompositeYes
Is Perfect SquareNo
Is Perfect CubeNo
Is Power of 2No
Roman NumeralMMXXI
Square (n²)4084441
Cube (n³)8254655261
Reciprocal (1/n)0.0004948045522

Factors & Divisors

Factors 1 43 47 2021
Number of Divisors4
Sum of Proper Divisors91
Prime Factorization 43 × 47
Is Perfect NumberNo
Is AbundantNo
Is DeficientYes

Number Theory

Digit Sum5
Digital Root5
Number of Digits4
Is PalindromeNo
Is Armstrong NumberNo
Is Harshad NumberNo
Is Fibonacci NumberNo
Collatz Steps to 163
Next Prime 2027
Previous Prime 2017

Trigonometric Functions

sin(2021)-0.8168469534
cos(2021)-0.5768544484
tan(2021)1.416036499
arctan(2021)1.570301522
sinh(2021)
cosh(2021)
tanh(2021)1

Roots & Logarithms

Square Root44.95553359
Cube Root12.64315429
Natural Logarithm (ln)7.611347717
Log Base 103.305566314
Log Base 210.98085361

Number Base Conversions

Binary (Base 2)11111100101
Octal (Base 8)3745
Hexadecimal (Base 16)7E5
Base64MjAyMQ==

Cryptographic Hashes

MD505a5cf06982ba7892ed2a6d38fe832d6
SHA-1fd93ac461456a118d38a8d6b4d18f6741682f3eb
SHA-2561bea20e1df19b12013976de2b5e0e3d1fb4ba088b59fe53642c324298b21ffd9
SHA-51236f2d92fbc0133539a36a91e3f63f02f875a1a1036006df2d26f8ae975625558d89e22a0f7a2f83ce7bbea76e2d1a236817e24b66cdf649e191319611a5adea6

Initialize 2021 in Different Programming Languages

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

Fun Facts about 2021

  • The number 2021 is two thousand and twenty-one.
  • 2021 is an odd number.
  • 2021 is a composite number with 4 divisors.
  • 2021 is a deficient number — the sum of its proper divisors (91) is less than it.
  • The digit sum of 2021 is 5, and its digital root is 5.
  • The prime factorization of 2021 is 43 × 47.
  • Starting from 2021, the Collatz sequence reaches 1 in 63 steps.
  • In Roman numerals, 2021 is written as MMXXI.
  • In binary, 2021 is 11111100101.
  • In hexadecimal, 2021 is 7E5.

About the Number 2021

Overview

The number 2021, spelled out as two thousand and twenty-one, is an odd 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 2021 — from its divisibility and prime factorization to its trigonometric values, binary representation, and cryptographic hashes.

Parity and Sign

The number 2021 is odd, which means it leaves a remainder of 1 when divided by 2. Odd numbers have distinct properties in modular arithmetic and appear frequently in number theory, combinatorics, and cryptography.As a positive number, 2021 lies to the right of zero on the number line. Its absolute value is 2021.

Primality and Factorization

2021 is a composite number, meaning it has divisors other than 1 and itself. Specifically, 2021 has 4 divisors: 1, 43, 47, 2021. The sum of its proper divisors (all divisors except 2021 itself) is 91, which makes 2021 a deficient number, since 91 < 2021. Most integers are deficient — the sum of their proper divisors falls short of the number itself.

The prime factorization of 2021 is 43 × 47. 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 2021 are 2017 and 2027.

Special Classifications

Beyond basic primality, number theorists have identified many special categories that a number can belong to. The number 2021 does not belong to any of the classical special categories (perfect square, Fibonacci, palindrome, Armstrong, or Harshad), but it still possesses a unique combination of mathematical properties that distinguishes it from every other integer.

Digit Properties

The digits of 2021 sum to 5, and its digital root (the single-digit value obtained by repeatedly summing digits) is 5. The number 2021 has 4 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, 2021 is represented as 11111100101. 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), 2021 is 3745, a system historically used in computing because each octal digit corresponds to exactly three binary digits. In hexadecimal (base-16), 2021 is 7E5 — hex is ubiquitous in programming for representing memory addresses, color codes (#FF5733), and byte values.

The Base64 encoding of the string “2021” is MjAyMQ==. 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 2021 is 4084441 (i.e. 2021²), and its square root is approximately 44.955534. The cube of 2021 is 8254655261, and its cube root is approximately 12.643154. The reciprocal (1/2021) is 0.0004948045522.

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

Trigonometry

Treating 2021 as an angle in radians, the principal trigonometric functions yield: sin(2021) = -0.8168469534, cos(2021) = -0.5768544484, and tan(2021) = 1.416036499. The hyperbolic functions give: sinh(2021) = ∞, cosh(2021) = ∞, and tanh(2021) = 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 “2021” is passed through standard cryptographic hash functions, the results are: MD5: 05a5cf06982ba7892ed2a6d38fe832d6, SHA-1: fd93ac461456a118d38a8d6b4d18f6741682f3eb, SHA-256: 1bea20e1df19b12013976de2b5e0e3d1fb4ba088b59fe53642c324298b21ffd9, and SHA-512: 36f2d92fbc0133539a36a91e3f63f02f875a1a1036006df2d26f8ae975625558d89e22a0f7a2f83ce7bbea76e2d1a236817e24b66cdf649e191319611a5adea6. 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 2021 and repeatedly applying the rule — divide by 2 if even, multiply by 3 and add 1 if odd — the sequence reaches 1 in 63 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.

Roman Numerals

In the Roman numeral system, 2021 is written as MMXXI. 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 2021 can be represented across dozens of programming languages. For example, in C# you would write int number = 2021;, in Python simply number = 2021, in JavaScript as const number = 2021;, and in Rust as let number: i32 = 2021;. 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