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.

A274101 a(n) = nearest integer to k*sin(sqrt(k)+j*Pi/2) where n = 4*k+j, 0<=j<4.

Original entry on oeis.org

0, 0, 0, 0, 1, 1, -1, -1, 2, 0, -2, 0, 3, 0, -3, 0, 4, -2, -4, 2, 4, -3, -4, 3, 4, -5, -4, 5, 3, -6, -3, 6, 2, -8, -2, 8, 1, -9, -1, 9, 0, -10, 0, 10, -2, -11, 2, 11, -4, -11, 4, 11, -6, -12, 6, 12, -8, -12, 8, 12, -10, -11, 10, 11, -12, -10, 12, 10, -14, -9, 14, 9, -16, -8, 16, 8, -18, -7, 18, 7, -19, -5
Offset: 0

Views

Author

N. J. A. Sloane, Jun 11 2016

Keywords

Crossrefs

Programs

  • Maple
    Digits:=50:
    ft:=proc(n,t) local k,j;
    j:=(n mod t); k:=(n-j)/t;
    round(evalf(k*sin(sqrt(k)+j*Pi/2)));
    end;
    [seq(ft(n,4),n=0..120)];

Extensions

Definition corrected by N. J. A. Sloane, Jun 20 2016