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.

A000494 Nearest integer to sin(n).

This page as a plain text file.
%I A000494 #16 Jul 11 2025 16:54:55
%S A000494 0,1,1,0,-1,-1,0,1,1,0,-1,-1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,
%T A000494 -1,-1,0,1,1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,-1,-1,0,
%U A000494 1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,1,0,-1
%N A000494 Nearest integer to sin(n).
%H A000494 T. D. Noe, <a href="/A000494/b000494.txt">Table of n, a(n) for n = 0..1000</a>
%p A000494 f := n->round(evalf(sin(n)));
%t A000494 Array[ Round[ Sin[ # ] // N ]&, 90, 0 ]
%t A000494 Round[Sin[Range[0,100]]] (* _Harvey P. Dale_, Jul 11 2025 *)
%K A000494 sign,easy,nice
%O A000494 0,1
%A A000494 _N. J. A. Sloane_