Number -9

Odd Negative

negative nine

« -10 -8 »

Basic Properties

Value-9
In Wordsnegative nine
Absolute Value9
SignNegative (−)
Is EvenNo
Is OddYes
Is PrimeNo
Is CompositeNo
Is Perfect SquareNo
Is Perfect CubeNo
Is Power of 2No
Square (n²)81
Cube (n³)-729
Reciprocal (1/n)-0.1111111111

Factors & Divisors

Factors 1 3 9
Number of Divisors3
Sum of Proper Divisors4
Prime Factorization 3 × 3
Is Perfect NumberNo
Is AbundantNo
Is DeficientNo

Number Theory

Digit Sum9
Digital Root9
Number of Digits1
Is PalindromeYes
Is Armstrong NumberNo
Is Harshad NumberYes
Is Fibonacci NumberNo
Next Prime 2

Trigonometric Functions

sin(-9)-0.4121184852
cos(-9)-0.9111302619
tan(-9)0.4523156594
arctan(-9)-1.460139106
sinh(-9)-4051.541902
cosh(-9)4051.542025
tanh(-9)-0.9999999695

Roots & Logarithms

Square Root3
Cube Root-2.080083823

Number Base Conversions

Binary (Base 2)1111111111111111111111111111111111111111111111111111111111110111
Octal (Base 8)1777777777777777777767
Hexadecimal (Base 16)FFFFFFFFFFFFFFF7
Base64LTk=

Cryptographic Hashes

MD5252e691406782824eec43d7eadc3d256
SHA-168ce583f0ebf973d5bbf39da202cf3c7d7f92b6b
SHA-256d5c534fde62beb89c745a59952c8efed8b7523cbd047e682782e4367de9ea3bf
SHA-51294906134e150ff1b9f1342e598e9e1e65989a56d1233da9a6de75b2dfd24d13c26ae89950f0a98114d9d2fc896e65c276f11a8b8df6e381f53f8fd5ea81690f2

Initialize -9 in Different Programming Languages

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

Fun Facts about -9

  • The number -9 is negative nine.
  • -9 is an odd number.
  • -9 is a Harshad number — it is divisible by the sum of its digits (9).
  • The digit sum of -9 is 9, and its digital root is 9.
  • The prime factorization of -9 is 3 × 3.
  • In binary, -9 is 1111111111111111111111111111111111111111111111111111111111110111.
  • In hexadecimal, -9 is FFFFFFFFFFFFFFF7.

About the Number -9

Overview

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

Parity and Sign

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

Primality and Factorization

The number -9 is neither prime nor composite. By convention, 0 and 1 occupy a special place in number theory: 1 is the multiplicative identity (any number multiplied by 1 equals itself), and 0 is the additive identity (any number plus 0 equals itself). Neither is classified as prime or composite.

Special Classifications

Beyond basic primality, number theorists have identified many special categories that a number can belong to. -9 is a Harshad number (from Sanskrit “joy-giver”) — it is divisible by the sum of its digits (9). Harshad numbers connect divisibility theory with digit-based properties of integers.

Digit Properties

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

The Base64 encoding of the string “-9” is LTk=. 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 -9 is 81 (a positive number, since the product of two negatives is positive). The cube of -9 is -729 (which remains negative). The square root of its absolute value |-9| = 9 is approximately 3.000000, and the cube root of -9 is approximately -2.080084.

Trigonometry

Treating -9 as an angle in radians, the principal trigonometric functions yield: sin(-9) = -0.4121184852, cos(-9) = -0.9111302619, and tan(-9) = 0.4523156594. The hyperbolic functions give: sinh(-9) = -4051.541902, cosh(-9) = 4051.542025, and tanh(-9) = -0.9999999695. 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 “-9” is passed through standard cryptographic hash functions, the results are: MD5: 252e691406782824eec43d7eadc3d256, SHA-1: 68ce583f0ebf973d5bbf39da202cf3c7d7f92b6b, SHA-256: d5c534fde62beb89c745a59952c8efed8b7523cbd047e682782e4367de9ea3bf, and SHA-512: 94906134e150ff1b9f1342e598e9e1e65989a56d1233da9a6de75b2dfd24d13c26ae89950f0a98114d9d2fc896e65c276f11a8b8df6e381f53f8fd5ea81690f2. 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).

Programming

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