Number 987

Odd Composite Positive Fibonacci

nine hundred and eighty-seven

« 986 988 »

Basic Properties

Value987
In Wordsnine hundred and eighty-seven
Absolute Value987
SignPositive (+)
Is EvenNo
Is OddYes
Is PrimeNo
Is CompositeYes
Is Perfect SquareNo
Is Perfect CubeNo
Is Power of 2No
Roman NumeralCMLXXXVII
Square (n²)974169
Cube (n³)961504803
Reciprocal (1/n)0.001013171226

Factors & Divisors

Factors 1 3 7 21 47 141 329 987
Number of Divisors8
Sum of Proper Divisors549
Prime Factorization 3 × 7 × 47
Is Perfect NumberNo
Is AbundantNo
Is DeficientYes

Number Theory

Digit Sum24
Digital Root6
Number of Digits3
Is PalindromeNo
Is Armstrong NumberNo
Is Harshad NumberNo
Is Fibonacci NumberYes
Collatz Steps to 136
Next Prime 991
Previous Prime 983

Trigonometric Functions

sin(987)0.5140560276
cos(987)0.8577566091
tan(987)0.599302905
arctan(987)1.569783156
sinh(987)
cosh(987)
tanh(987)1

Roots & Logarithms

Square Root31.41655614
Cube Root9.956477521
Natural Logarithm (ln)6.894670039
Log Base 102.994317153
Log Base 29.946906274

Number Base Conversions

Binary (Base 2)1111011011
Octal (Base 8)1733
Hexadecimal (Base 16)3DB
Base64OTg3

Cryptographic Hashes

MD5df6d2338b2b8fce1ec2f6dda0a630eb0
SHA-18abcda2dba9a5c5c674e659333828582122c5f56
SHA-25655c8079ac96c6a4f6a94e3460c79e4006d62374cce6e9fc8b281938a3abc7627
SHA-512bb469369c35040765bec68d409faa6957fee1f4b9029daa5c862e467b61fa53490f611c4680d5880c0631c9737e11a01b45c2335311ad7264a14bbd767c51807

Initialize 987 in Different Programming Languages

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

Fun Facts about 987

  • The number 987 is nine hundred and eighty-seven.
  • 987 is an odd number.
  • 987 is a composite number with 8 divisors.
  • 987 is a Fibonacci number.
  • 987 is a deficient number — the sum of its proper divisors (549) is less than it.
  • The digit sum of 987 is 24, and its digital root is 6.
  • The prime factorization of 987 is 3 × 7 × 47.
  • Starting from 987, the Collatz sequence reaches 1 in 36 steps.
  • In Roman numerals, 987 is written as CMLXXXVII.
  • In binary, 987 is 1111011011.
  • In hexadecimal, 987 is 3DB.

About the Number 987

Overview

The number 987, spelled out as nine hundred and eighty-seven, 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 987 — from its divisibility and prime factorization to its trigonometric values, binary representation, and cryptographic hashes.

Parity and Sign

The number 987 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, 987 lies to the right of zero on the number line. Its absolute value is 987.

Primality and Factorization

987 is a composite number, meaning it has divisors other than 1 and itself. Specifically, 987 has 8 divisors: 1, 3, 7, 21, 47, 141, 329, 987. The sum of its proper divisors (all divisors except 987 itself) is 549, which makes 987 a deficient number, since 549 < 987. Most integers are deficient — the sum of their proper divisors falls short of the number itself.

The prime factorization of 987 is 3 × 7 × 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 987 are 983 and 991.

Special Classifications

Beyond basic primality, number theorists have identified many special categories that a number can belong to. 987 is a Fibonacci number — it belongs to the famous sequence where each term is the sum of the two preceding ones (0, 1, 1, 2, 3, 5, 8, 13, 21, ...). Fibonacci numbers appear throughout nature in sunflower spirals, pinecone patterns, and the branching of trees, and their ratio converges to the golden ratio φ ≈ 1.618.

Digit Properties

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

The Base64 encoding of the string “987” is OTg3. 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 987 is 974169 (i.e. 987²), and its square root is approximately 31.416556. The cube of 987 is 961504803, and its cube root is approximately 9.956478. The reciprocal (1/987) is 0.001013171226.

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

Trigonometry

Treating 987 as an angle in radians, the principal trigonometric functions yield: sin(987) = 0.5140560276, cos(987) = 0.8577566091, and tan(987) = 0.599302905. The hyperbolic functions give: sinh(987) = ∞, cosh(987) = ∞, and tanh(987) = 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 “987” is passed through standard cryptographic hash functions, the results are: MD5: df6d2338b2b8fce1ec2f6dda0a630eb0, SHA-1: 8abcda2dba9a5c5c674e659333828582122c5f56, SHA-256: 55c8079ac96c6a4f6a94e3460c79e4006d62374cce6e9fc8b281938a3abc7627, and SHA-512: bb469369c35040765bec68d409faa6957fee1f4b9029daa5c862e467b61fa53490f611c4680d5880c0631c9737e11a01b45c2335311ad7264a14bbd767c51807. 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 987 and repeatedly applying the rule — divide by 2 if even, multiply by 3 and add 1 if odd — the sequence reaches 1 in 36 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, 987 is written as CMLXXXVII. 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 987 can be represented across dozens of programming languages. For example, in C# you would write int number = 987;, in Python simply number = 987, in JavaScript as const number = 987;, and in Rust as let number: i32 = 987;. 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