Let $N$ be a positive integer. $N$ is called a perfect number if the sum of its positive divisors denoted by $\sigma(N)=2N$. For example $6$ is a perfect number since:
$\sigma(N)=1+2+3+6=12=2(6)$.
An ample of references on the web gives a discussion on the history/origin of perfect numbers. Some are enumerated below.
If $\sigma(N)=2N-1$ we call $N$ an almost perfect number. I tried to search on the web about how almost perfect numbers originated but I have not seen any one.
My question is: How almost perfect numbers originated? In particular who is the first one who considered it as a topic and why they are created?
Thanks a lot for your help.
I did a search and found something surprising: The only known almost-perfect numbers are the powers of $2$. It appears to be unknown if there are others.
The Wolfram link has some references. OEIS 79 has references as well. The main reference is Singh's Fermat's Enigma: The Epic Quest to Solve the World's Greatest Mathematical Problem.