Integer Properties Calculator

Analyze any integer: even/odd, prime check, full prime factorization, all divisors, digit sum, digital root, binary/hex/octal representation, nearest primes, and number classification.

Even / Odd
Even
42 mod 2 = 0
Prime?
✗ Composite
42 = 2 × 3 × 7
# of Divisors
8
σ₀(42) = 8
Sum of Divisors
96
σ₁(42) = 96
Digit Sum
6
Sum of digits of |42|
Digital Root
6
Repeated digit-sum until single digit
Perfect / Abundant / Deficient
Abundant
Sum of proper divisors = 54 > 42
Nearest Primes
41 ← → 43
Previous prime: 41, Next prime: 43

Prime Factorization

2 × 3 × 7
21
31
71

Divisors of 42

12367142142

Factor Pairs

(1, 42)(2, 21)(3, 14)(6, 7)

Base Representations

BaseRepresentation
Binary (2)101010
Octal (8)52
Decimal (10)42
Hexadecimal (16)2A
Base 2101010

Binary Bit Pattern

1
0
1
0
1
0
6 bits

Primes in [2, 100] (25 found)

2357111317192329313741434753596167717379838997
Planning notes, formulas, and examples

About the Integer Properties Calculator

The **Integer Properties Calculator** is an all-in-one analysis tool for any integer. Enter a number and see whether it is even or odd, prime or composite, along with its full prime factorization, complete list of divisors, digit sum, digital root, factor pairs, and classifications (perfect, abundant, or deficient).

The calculator also converts the number into **binary, octal, hexadecimal**, and any custom base from 2 to 36, with a visual bit-pattern display that color-codes each 1 and 0. A prime scanner lists all primes in a configurable range, highlighting your input if it appears in the list.

Preset buttons load interesting numbers: perfect squares like 1024, highly composite numbers like 360, large primes like 7919, and everyday values like 42. Whether you are studying number theory, debugging a bit-manipulation algorithm, or just curious about a number's properties, the page keeps factor structure, divisor behavior, and base representations together instead of forcing you to check them separately.

When This Page Helps

Finding all divisors, checking primality, and performing base conversions are tasks that each require a separate tool or manual work. This calculator combines them into a single page with visual aids (divisor chips, binary bit grid, factor badges) so you can explore a number's character without switching between windows.

It is especially helpful for students learning number theory: the factor pairs, prime factorization badges, and perfect/abundant/deficient classification are all concepts that appear in introductory courses but are tedious to compute by hand for large numbers.

How to Use the Inputs

  1. Enter any integer in the input field (positive, negative, or zero).
  2. Click a preset for commonly studied numbers.
  3. Read the output cards for even/odd, primality, divisor count, digit sum, and more.
  4. View the Prime Factorization section for factor badges.
  5. Scroll to the Divisors grid to see all divisors with prime divisors highlighted.
  6. Check the Base Representations table for binary, octal, hex, and custom base.
  7. Set the prime scan range to list primes in any interval.
Formula used
Prime factorization: trial division up to √n. Divisor count: σ₀(n) = Π(eᵢ + 1) for prime factorization n = Πpᵢ^eᵢ. Digital root: 1 + ((n − 1) mod 9).

Example Calculation

Result: 360 = 2³ × 3² × 5, 24 divisors, digit sum 9, abundant

360 is even, composite, with prime factorization 2^3 × 3^2 × 5. It has 24 divisors (including 1 and 360). The sum of proper divisors is 810 > 360, so it is abundant.

Tips & Best Practices

  • Use the binary bit-pattern to visualize powers of 2 and bit manipulation.
  • Green-highlighted divisors are prime — a quick way to spot prime factors.
  • Highly composite numbers like 360 and 720 have unusually many divisors.
  • The nearest-primes output helps when you need a nearby prime for hashing or crypto.
  • Expand the prime scan range to generate a list of primes for reference.
  • Factor pairs are listed below the divisors, useful for factoring quadratics.

Prime Factorization and the Fundamental Theorem of Arithmetic

Every integer greater than 1 can be written as a unique product of primes (up to ordering). This calculator finds that product via trial division: repeatedly divide by the smallest prime that evenly divides the number until the quotient is 1. The factorization is displayed both as a compact expression (2³ × 3² × 5) and as individual prime-power badges.

Base Representations and Binary Patterns

Computers store integers in binary (base 2), and hexadecimal (base 16) is widely used in programming for memory addresses, color codes, and byte values. The visual bit-pattern grid in this calculator makes it easy to count leading zeros, identify powers of 2, and understand bitwise operations.

Perfect, Abundant, and Deficient Numbers

The sum of a number's proper divisors (all divisors except itself) classifies it as perfect (sum = n), abundant (sum > n), or deficient (sum < n). Perfect numbers are rare and deeply connected to Mersenne primes. Abundant numbers make up roughly 25% of positive integers, and the rest are deficient.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Repeatedly sum the digits until a single digit remains. For 942: 9+4+2 = 15 → 1+5 = 6. Shortcut: 1 + ((n−1) mod 9).