OFFSET
1,3
COMMENTS
Also sum of nonpowers of 2 dividing n, divided the sum of powers of 2 dividing n.
a(n) = 0 iff n is a power of 2.
a(n) = n iff n is an odd prime.
First differs from A284233 at a(15).
FORMULA
EXAMPLE
For n = 18 the divisors of 18 are [1, 2, 3, 6, 9, 18]. The sum of odd divisors of 18 that are greater than 1 is 3 + 9 = 12, so a(18) = 12. On the other hand, there are four divisors of 18 that are not powers of 2, they are [3, 6, 9, 18], and the sum of them is 3 + 6 + 9, 18 = 36. Also there are two divisors of 18 that are powers of 2, they are [1, 2], and the sum of them is 1 + 2 = 3. Then we have that 36/3 = 12, so a(18) = 12.
PROG
(Magma) sol:=[]; m:=1; for n in [1..80] do v:=[d:d in Divisors(n)|d gt 1 and IsOdd(d)]; if #v ne 0 then sol[m]:=&+v; m:=m+1; else sol[m]:=0; m:=m+1; end if; end for; sol; // Marius A. Burtea, Aug 24 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Aug 24 2019
STATUS
approved