Start subtracting from n its divisors beginning from 1 until one reaches a number smaller than the last divisor subtracted or reaches the last nontrivial divisor < n. Define this to be the perfect deficiency of n. Then a(n) = perfect deficiency of n.
A109883
Start subtracting from n its divisors beginning from 1 until one reaches a number smaller than the last divisor subtracted or reaches the last nontrivial divisor < n. Define this to be the perfect deficiency of n. Then a(n) = perfect deficiency of n.
Terms
- a(0) =0a(1) =1a(2) =2a(3) =1a(4) =4a(5) =0a(6) =6a(7) =1a(8) =5a(9) =2a(10) =10a(11) =2a(12) =12a(13) =4a(14) =6a(15) =1a(16) =16a(17) =6a(18) =18a(19) =8a(20) =10a(21) =8a(22) =22a(23) =0a(24) =19a(25) =10a(26) =14a(27) =0a(28) =28a(29) =3
External references
- oeis: A109883