A346033
a(n) is the smallest integer k > 0 such that 10^(-n-1) < |sin(k) - round(sin(k))| < 10^(-n).
Original entry on oeis.org
1, 2, 14, 55, 33, 11, 35489, 46849, 50754, 51819, 52174, 260515, 1719612, 573204, 21104200, 37362253, 42781604, 122925461, 534483448
Offset: 0
For n = 3, a(n) = 55 because 55 is the smallest positive integer k such that 10^(-4) < |sin(k) - round(sin(k))| < 10^(-3): |sin(55) - round(sin(55))| = 0.000244....
A345670
a(n) is the smallest integer k > 0 such that 10^(-n-1) < |cos(k) - round(cos(k))| < 10^(-n).
Original entry on oeis.org
1, 3, 11, 44, 22, 16685, 5325, 1775, 710, 355, 104348, 312689, 1146408, 20530996, 10838702, 5419351, 165707065, 411557987
Offset: 0
For n = 4, a(n) = 22 because 22 is the smallest positive integer k such that 10^(-5) < |cos(k) - round(cos(k))| < 10^(-4): |cos(22) - round(cos(22))| = 0.0000391...
-
a(n) = my(k=1, ok=0, x); while (!ok, x=abs(cos(k) - round(cos(k))); ok = (x>1/10^(n+1)) && (x < 1/10^n); if (ok, break); k++); k; \\ Michel Marcus, Jul 02 2021
Showing 1-2 of 2 results.