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.

Showing 1-10 of 11 results. Next

A272695 Nearest integer to n*sin(n).

Original entry on oeis.org

0, 1, 2, 0, -3, -5, -2, 5, 8, 4, -5, -11, -6, 5, 14, 10, -5, -16, -14, 3, 18, 18, 0, -19, -22, -3, 20, 26, 8, -19, -30, -13, 18, 33, 18, -15, -36, -24, 11, 38, 30, -7, -38, -36, 1, 38, 41, 6, -37, -47, -13, 34, 51, 21, -30, -55, -29, 25, 58, 38, -18, -59, -46, 11, 59, 54, -2, -57, -61, -8, 54, 68, 18
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Maple
    f:=n->round(evalf(n*sin(n)));  [seq(f(n),n=0..140)];
  • Mathematica
    Table[Round[n*Sin[n]], {n, 0, 140}] (* Bence Bernáth, Nov 20 2022 *)
  • PARI
    a(n) = round(n*sin(n)) \\ Felix Fröhlich, Jun 10 2016
    
  • Python
    from sympy import sin
    def A272695(n):
        return int((n*sin(n)).round()) # Chai Wah Wu, Jun 10 2016

A274086 Nearest integer to n*tan(n).

Original entry on oeis.org

0, 2, -4, 0, 5, -17, -2, 6, -54, -4, 6, -2485, -8, 6, 101, -13, 5, 59, -20, 3, 45, -32, 0, 37, -51, -3, 31, -88, -8, 26, -192, -14, 21, -2485, -21, 17, 279, -31, 12, 141, -45, 7, 96, -64, 1, 73, -96, -6, 58, -155, -14, 46, -315, -23, 36, -2485, -34, 28, 483, -49, 19, 228, -68, 11, 150, -96, 2, 111, -139
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Maple
    f:=n->round(evalf(n*tan(n)));  [seq(f(n),n=0..140)];
  • Mathematica
    Table[Round[n*Tan[n]], {n, 0, 100}] (* Jon Maiga, Aug 28 2023 *)

A274087 Nearest integer to n^2*sin(n).

Original entry on oeis.org

0, 1, 4, 1, -12, -24, -10, 32, 63, 33, -54, -121, -77, 71, 194, 146, -74, -278, -243, 54, 365, 369, -4, -448, -522, -83, 515, 697, 212, -558, -889, -388, 565, 1089, 612, -525, -1285, -881, 428, 1466, 1192, -267, -1617, -1538, 34, 1723, 1908, 273, -1770, -2290, -656, 1743, 2668, 1112, -1629, -3024, -1636
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Round[n^2 Sin[n]],{n,0,60}] (* Harvey P. Dale, Jul 14 2017 *)
  • Python
    from sympy import sin
    def A274087(n):
        return int((n**2*sin(n)).round()) # Chai Wah Wu, Jun 10 2016

A274088 a(n) = nearest integer to n^2 * sin(sqrt(n)).

Original entry on oeis.org

0, 1, 4, 9, 15, 20, 23, 23, 20, 11, -2, -21, -46, -76, -111, -150, -194, -240, -289, -339, -389, -437, -484, -527, -566, -599, -626, -645, -656, -658, -649, -630, -600, -559, -505, -440, -362, -273, -171, -58, 66, 201, 346, 501, 664, 835, 1013, 1197, 1385, 1577, 1772, 1968, 2164, 2359, 2551, 2740
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Maple
    Digits:=50: f:=n->round(evalf(n^2*sin(sqrt(n)))); [seq(f(n),n=0..120)];
  • Mathematica
    Table[Round[n^2 * Sin[Sqrt[n]]], {n,0,50}] (* G. C. Greubel, Jun 10 2016 *)
  • Python
    from sympy import sin, sqrt
    def A274088(n):
        return int((n**2*sin(sqrt(n))).round()) # Chai Wah Wu, Jun 10 2016

A274090 a(n) = nearest integer to n^2 * cos(sqrt(n)).

Original entry on oeis.org

0, 1, 1, -1, -7, -15, -28, -43, -61, -80, -100, -119, -137, -151, -162, -167, -167, -161, -147, -125, -95, -57, -11, 44, 107, 177, 255, 339, 429, 524, 623, 725, 830, 935, 1040, 1143, 1244, 1342, 1434, 1520, 1599, 1669, 1730, 1780, 1819, 1845, 1858, 1857, 1841, 1810, 1763, 1700, 1621, 1525
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 2016

Keywords

Crossrefs

Programs

  • Maple
    Digits:=50: f:=n->round(evalf(n^2*cos(sqrt(n)))); [seq(f(n),n=0..120)];
  • Python
    from sympy import cos, sqrt
    def A274090(n):
        return int((n**2*cos(sqrt(n))).round()) # Chai Wah Wu, Jun 11 2016

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

Original entry on oeis.org

0, 0, 0, 1, 1, -1, 4, 1, -4, 9, -1, -9, 15, -7, -15, 20, -15, -20, 23, -28, -23, 23, -43, -23, 20, -61, -20, 11, -80, -11, -2, -100, 2, -21, -119, 21, -46, -137, 46, -76, -151, 76, -111, -162, 111, -150, -167, 150, -194, -167, 194, -240, -161, 240, -289, -147, 289, -339, -125, 339, -389, -95, 389
Offset: 0

Views

Author

N. J. A. Sloane, Jun 10 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^2*sin(sqrt(k)+j*Pi/2)));
    end;
    [seq(ft(n,3),n=0..120)];
  • Python
    from sympy import sin, sqrt, pi
    def A274092(n):
        k, j = divmod(n,3)
        return int((k**2*sin(sqrt(k)+j*pi/2)).round()) # Chai Wah Wu, Jun 10 2016

A274095 Nearest integer to n*sin(sqrt(n)).

Original entry on oeis.org

0, 1, 2, 3, 4, 4, 4, 3, 2, 1, 0, -2, -4, -6, -8, -10, -12, -14, -16, -18, -19, -21, -22, -23, -24, -24, -24, -24, -23, -23, -22, -20, -19, -17, -15, -13, -10, -7, -5, -1, 2, 5, 8, 12, 15, 19, 22, 25, 29, 32, 35, 39, 42, 45, 47, 50, 52, 54, 56, 58, 60, 61, 62, 63, 63, 64, 64, 63, 63, 62, 61, 60, 58, 56
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,1),n=0..120)];
  • Python
    from sympy import sin, sqrt, pi
    def A274095(n, t = 1):
        k, j = divmod(n,t)
        return int((k*sin(sqrt(k)+j*pi/2)).round())
    A274095_list = [A274095(n,1) for n in range(10001)] # Chai Wah Wu, Jun 11 2016

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

Original entry on oeis.org

0, 0, 1, 1, 2, 0, 3, 0, 4, -2, 4, -3, 4, -5, 3, -6, 2, -8, 1, -9, 0, -10, -2, -11, -4, -11, -6, -12, -8, -12, -10, -11, -12, -10, -14, -9, -16, -8, -18, -7, -19, -5, -21, -3, -22, 0, -23, 2, -24, 4, -24, 7, -24, 10, -24, 13, -23, 15, -23, 18, -22, 21, -20, 23, -19, 26, -17, 28, -15, 31, -13, 33
Offset: 0

Views

Author

N. J. A. Sloane, Jun 11 2016

Keywords

Crossrefs

Programs

  • Python
    from sympy import sin, sqrt, pi
    def f(n, t = 1):
        k, j = divmod(n,t)
        return int((k*sin(sqrt(k)+j*pi/2)).round())
    A274096_list = [f(n,2) for n in range(10001)] # Chai Wah Wu, Jun 11 2016

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

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Jun 11 2016

Keywords

Crossrefs

Programs

  • Python
    from sympy import sin, sqrt, pi
    def f(n, t = 1):
        k, j = divmod(n,t)
        return int((k*sin(sqrt(k)+j*pi/2)).round())
    A274097_list = [f(n,3) for n in range(10001)] # Chai Wah Wu, Jun 11 2016

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
Showing 1-10 of 11 results. Next