OFFSET
0,3
LINKS
Jinyuan Wang, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = Sum_{i=1..n} 2^(n-i)*floor(n/i). - Ridouane Oudra, Jul 30 2019
EXAMPLE
a(3)=15 because Sum_{k>=1} floor(3/k)/2^k = 15/8.
MAPLE
seq(add(2^(n-i)*floor(n/i), i=1..n), n=0..60); # Ridouane Oudra, Jul 30 2019
MATHEMATICA
Table[Numerator[Sum[Floor[n/k]/2^k, {k, 1, Infinity}]], {n, 0, 25}]
PROG
(Magma) [0] cat [&+[2^(n-i)*Floor(n/i):i in [1..n]]:n in [1..25]]; // Marius A. Burtea, Jul 30 2019
(PARI) a(n) = numerator(sum(k=1, n, floor(n/k)/2^k)); \\ Jinyuan Wang, Jul 31 2019
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Vladimir Reshetnikov, Dec 31 2010
STATUS
approved