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.

A248515 Least number k such that 1 - k*sin(1/k) < 1/n^2.

This page as a plain text file.
%I A248515 #30 Nov 11 2024 20:31:30
%S A248515 1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,12,12,12,13,
%T A248515 13,14,14,14,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,22,
%U A248515 23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29
%N A248515 Least number k such that 1 - k*sin(1/k) < 1/n^2.
%C A248515 This sequences provides insight into the manner of convergence of n*sin(1/n). One may also consider: [1/(1 - n*sin(1/n))] = 6*n^2 = A033581(n) for n >= 1.
%C A248515 a(n+1) - a(n) is in {0,1} for n >= 1, so that the position sequences A138235 and A022840 partition the positive integers.
%C A248515 a(n) = A194986(n). - _Clark Kimberling_, Jan 15 2015
%H A248515 Clark Kimberling, <a href="/A248515/b248515.txt">Table of n, a(n) for n = 1..3000</a>
%F A248515 a(n) = ceiling (n/sqrt(6)) for n >= 1.
%e A248515 Approximations:
%e A248515 n      1-k*sin(1/k)     1/n^2
%e A248515 1      0.158529         1
%e A248515 2      0.041148         0.25
%e A248515 3      0.018415         0.11111
%e A248515 4      0.010384         0.0625
%e A248515 5      0.006653         0.04
%e A248515 a(5) = 3 because 1 - 3*sin(1/3) < 1/25 < 1 - 2*sin(1/2).
%t A248515 z = 120; p[k_] := p[k] = k*Sin[1/k]; N[Table[1 - p[n], {n, 1, z/5}]]
%t A248515 f[n_] := f[n] = Select[Range[z], 1 - p[#] < 1/n^2 &, 1];
%t A248515 u = Flatten[Table[f[n], {n, 1, z}]]        (* A248515 *)
%t A248515 v = Flatten[Position[Differences[u], 0]]   (* A138235 *)
%t A248515 w = Flatten[Position[Differences[u], 1]]   (* A022840 *)
%t A248515 Table[Ceiling[n / Sqrt[6]], {n, 70}] (* _Vincenzo Librandi_, Jun 17 2015 *)
%o A248515 (Magma) [Ceiling(n/Sqrt(6)): n in [1..70]]; // _Vincenzo Librandi_, Jun 17 2015
%Y A248515 Cf. A194986, A033581, A248470, A138235, A022840.
%K A248515 nonn,easy
%O A248515 1,3
%A A248515 _Clark Kimberling_, Oct 08 2014