OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
M. D. Vose, Integers with consecutive divisors in small ratio, J. Number Theory, 19 (1984), 233-238.
EXAMPLE
0, 1, 2, 2, 4, 5/2, 6, 3, 4, 7/2, 10, 10/3, 12, 9/2, 14/3, ...
MAPLE
with(numtheory): f := proc(n) local t1, t2, t3, i; t1 := divisors(n); t3 := convert(t1, list); t2 := 0; for i from 2 to nops(t3) do t2 := t2+(t3[i]/t3[i-1]-1); od; t2; end;
PROG
(PARI) a(n) = {my(d = divisors(n)); numerator(sum(i=2, #d, d[i]/d[i-1] - 1)); } \\ Michel Marcus, Feb 25 2015
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
N. J. A. Sloane, Aug 11 2003
STATUS
approved