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.

A198675 Decimal expansion of the absolute minimum of cos(x)+cos(2x)+cos(3x)+cos(4x)+cos(5x)+cos(6x).

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