login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:05 EDT 2024. Contains 371962 sequences. (Running on oeis4.)