login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A346033
a(n) is the smallest integer k > 0 such that 10^(-n-1) < |sin(k) - round(sin(k))| < 10^(-n).
2
1, 2, 14, 55, 33, 11, 35489, 46849, 50754, 51819, 52174, 260515, 1719612, 573204, 21104200, 37362253, 42781604, 122925461, 534483448
OFFSET
0,2
EXAMPLE
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....
PROG
(C++)
/* Only suitable for computing a(0) to a(15) due to double precision limits. */
#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char** argv) {
for (int n=0; n<=15; n++) {
for (int k=1; k<=37362253; k++){
double x = sin(k);
double val = abs(x-round(x));
if (val < pow(10, -n) && val > pow(10, -n-1)) {
cout << k <<", ";
break;
}
}
}
}
CROSSREFS
Sequence in context: A208428 A356373 A137482 * A277761 A203576 A178605
KEYWORD
nonn,more
AUTHOR
Treanungkur Mal, Jul 01 2021
EXTENSIONS
a(16)-a(18) from Jon E. Schoenfield and Sean A. Irvine, Jul 02 2021
STATUS
approved