OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A049790(n, n).
a(n) = A222548(n) - Sum_{i=1..n} floor(n/i)*floor(n/(i+1)). - Ridouane Oudra, Jun 22 2020
a(n) ~ (zeta(2) - 1) * n^2. - Vaclav Kotesovec, May 28 2021
MAPLE
seq( add(floor(n/floor(n/j)), j=1..n), n=1..60); # G. C. Greubel, Dec 10 2019
MATHEMATICA
Table[Total[Table[Quotient[n, Quotient[n, k]], {k, n}]], {n, 47}] (* Ivan Neretin, Jul 29 2015 *)
PROG
(PARI) a(n) = sum(j=1, n, n\(n\j));
vector(60, n, a(n) ) \\ G. C. Greubel, Dec 10 2019
(Magma) [(&+[Floor(n/Floor(n/j)): j in [1..n]]): n in [1..60]]; // G. C. Greubel, Dec 10 2019
(Sage) [sum(floor(n/floor(n/j)) for j in (1..n)) for n in (1..60)] # G. C. Greubel, Dec 10 2019
(GAP) List([1..60], n-> Sum([1..n], j-> Int(n/Int(n/j)) )); # G. C. Greubel, Dec 10 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved