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.

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

This page as a plain text file.
%I A274090 #19 Jun 20 2016 19:36:20
%S A274090 0,1,1,-1,-7,-15,-28,-43,-61,-80,-100,-119,-137,-151,-162,-167,-167,
%T A274090 -161,-147,-125,-95,-57,-11,44,107,177,255,339,429,524,623,725,830,
%U A274090 935,1040,1143,1244,1342,1434,1520,1599,1669,1730,1780,1819,1845,1858,1857,1841,1810,1763,1700,1621,1525
%N A274090 a(n) = nearest integer to n^2 * cos(sqrt(n)).
%H A274090 N. J. A. Sloane and Chai Wah Wu, <a href="/A274090/b274090.txt">Table of n, a(n) for n = 0..10000</a> n = 0..1000 from N. J. A. Sloane.
%p A274090 Digits:=50: f:=n->round(evalf(n^2*cos(sqrt(n)))); [seq(f(n),n=0..120)];
%o A274090 (Python)
%o A274090 from sympy import cos, sqrt
%o A274090 def A274090(n):
%o A274090     return int((n**2*cos(sqrt(n))).round()) # _Chai Wah Wu_, Jun 11 2016
%Y A274090 Sequences of the same type: A272695, A274086, A274087, A274088, A274090, A274091, A274092, A274095, A274096, A274097, A274101, A274102.
%K A274090 sign
%O A274090 0,5
%A A274090 _N. J. A. Sloane_, Jun 10 2016