1610.31 – Nasty Numbers
Let us say that a positive integer is if it has two different factorizations such that the difference between the two factors of one of the factorizations equals the sum of the two factors of the other factorization. For example, is nasty because and 24 is nasty because . And 30 is nasty because
Find all nasty numbers less than 180. There are 6 besides the examples. (This is a nifty problem to do on a computer.)
The other six are 54, 60, 84, 96, 120 and 150.