login
A049799
a(n) = Sum_{k = 3..n} T(n,k), where the array T is A049801.
4
0, 0, 0, 0, 2, 0, 3, 2, 9, 0, 8, 12, 12, 5, 18, 15, 29, 12, 18, 29, 48, 21, 26, 42, 54, 38, 63, 39, 65, 51, 69, 92, 87, 45, 77, 105, 129, 77, 114, 96, 134, 123, 111, 146, 189, 126, 149, 144, 180, 170, 219, 207, 209, 156, 198, 245
OFFSET
3,5
LINKS
MAPLE
seq(add(n mod floor(k/3), k = 3 .. n), n = 3..60); # Petros Hadjicostas, Nov 20 2019
MATHEMATICA
Table[Sum[Mod[n, Floor[k/3]], {k, 3, n}], {n, 3, 60}] (* G. C. Greubel, Dec 09 2019 *)
PROG
(PARI) vector(60, n, sum(k=3, n+2, (n+2)%(k\3)) ) \\ G. C. Greubel, Dec 09 2019
(Magma) [ (&+[n mod Floor(k/2): k in [3..n]]): n in [3..60]]; // G. C. Greubel, Dec 09 2019
(Sage) [sum( n%floor(k/3) for k in (3..n)) for n in (3..60)] # G. C. Greubel, Dec 09 2019
(GAP) List([3..60], n-> Sum([3..n], k-> n mod Int(k/3)) ); # G. C. Greubel, Dec 09 2019
CROSSREFS
Row sums of triangle A049801.
Sequence in context: A135351 A079451 A219187 * A087985 A200927 A372820
KEYWORD
nonn
STATUS
approved