A339919 a(n) = Sum_{k=1..n} (floor(3*n/k) - 3*floor(n/k)).
0, 0, 0, 1, 1, 3, 1, 5, 4, 4, 5, 9, 5, 7, 10, 10, 8, 13, 8, 16, 13, 11, 15, 19, 14, 15, 18, 21, 18, 22, 17, 23, 22, 22, 26, 30, 18, 24, 29, 31, 28, 31, 26, 32, 33, 29, 32, 42, 32, 35, 34, 36, 39, 41, 40, 42, 37, 40, 41, 53, 38, 44, 49, 47, 47, 47, 43, 53, 52
Offset: 0
Keywords
Links
- Vaclav Kotesovec, Table of n, a(n) for n = 0..10000
Programs
-
Mathematica
Table[Sum[Floor[3*n/k] - 3*Floor[n/k], {k, 1, n}], {n, 0, 100}]
-
PARI
a(n) = sum(k=1, n, floor(3*n/k) - 3*floor(n/k)); \\ Michel Marcus, Dec 23 2020
Formula
a(n) ~ (3*log(3) - 5/2) * n.
Comments