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.

A198676 Decimal expansion of the least x>0 that gives the absolute minimum of cos(x)+cos(2x)+cos(3x)+cos(4x)+cos(5x)+cos(6x).

This page as a plain text file.
%I A198676 #5 Mar 30 2012 18:57:55
%S A198676 6,9,2,6,7,3,7,4,5,2,0,6,3,6,8,2,4,4,5,5,6,9,0,3,6,3,0,6,5,9,5,1,8,2,
%T A198676 0,0,1,5,8,4,6,5,0,4,4,2,8,6,6,8,7,9,1,2,3,3,4,1,6,6,0,4,0,0,2,2,2,2,
%U A198676 5,9,8,9,7,6,7,0,3,4,6,7,6,1,1,1,4,2,0,2,4,8,9,7,3,0,4,0,6,5,9
%N A198676 Decimal expansion of the least x>0 that gives the absolute minimum of cos(x)+cos(2x)+cos(3x)+cos(4x)+cos(5x)+cos(6x).
%C A198676 See A196361 for a guide to related sequences.
%e A198676 x=0.6926737452063682445569036306595182001...
%e A198676 min=-1.940589216902488020962568639391387253030...
%t A198676 n = 6; f[t_] := Cos[t]; s[t_] := Sum[f[k*t], {k, 1, n}];
%t A198676 x = N[Minimize[s[t], t], 110]; u = Part[x, 1]
%t A198676 v = 2 Pi - t /. Part[x, 2]
%t A198676 RealDigits[u]  (* A198675 *)
%t A198676 RealDigits[v]  (* A198676 *)
%t A198676 Plot[s[t], {t, -3 Pi, 3 Pi}, PlotRange -> {-2, 6}]
%Y A198676 Cf. A196361, A198675.
%K A198676 nonn,cons
%O A198676 0,1
%A A198676 _Clark Kimberling_, Oct 28 2011