cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A049799 a(n) = Sum_{k = 3..n} T(n,k), where the array T is A049801.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Row sums of triangle A049801.

Programs

  • GAP
    List([3..60], n-> Sum([3..n], k-> n mod Int(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
    
  • 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 *)
  • PARI
    vector(60, n, sum(k=3,n+2, (n+2)%(k\3)) ) \\ 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