A visual example to show that 8 is almost perfect and deficient.
In math, an almost perfect number (also called slightly defective or least deficientnumber) is a type of natural numbern. The sum of n's divisors must be equal to 2n − 1. Every known almost perfect number is a power of 2 and has non-negative exponents(sequence A000079 in the OEIS).
Examples
For example, the divisors of 32 are 1, 2, 4, 8, 16 and 32. The sum of those is 63. 32 ⋅ 2 - 1 is 63. This makes 32 an almost perfect number.
Odd numbers
The only known odd almost perfect number 1. An odd almost perfect number that is not 1 is possible. It would, however, have to have six prime factors.
Guy, R. K. (1994). "Almost Perfect, Quasi-Perfect, Pseudoperfect, Harmonic, Weird, Multiperfect and Hyperperfect Numbers". Unsolved Problems in Number Theory (2nded.). New York: Springer-Verlag. pp.16, 45–53.