A332095 Numbers m such that 0 <= m*tan(m) < 1, ordered by |m|.
0, -3, 22, 44, 355, 710, 1065, 1420, 1775, 2130, 2485, 2840, 3195, 312689, 1146408, 5419351, 10838702, -6167950454, -21053343141, -42106686282, -63160029423, -84213372564, -105266715705, -8958937768937, -17917875537874, -428224593349304, -856449186698608, -6134899525417045
Offset: 1
Keywords
Crossrefs
Programs
-
PARI
is_A332095(n)={tan(n)*n < 1 && n*tan(n) >= 0} for(n=0,oo, n*abs(tan(n))<1 && print1(sign(tan(n))*n", ")) /* Much faster: apply to numerators of convergents of Pi the function check(n) which prints all nonzero k*n in the sequence and returns the largest such k, largest in magnitude, possibly negative. N.B.: stops when (k+1)n is not in the sequence, so e.g., n = 11 (in convergents of Pi/2) does not give 22 and 44! */ print1(0); apply( {check(n)=for(i=1,oo,abs(i*n*tan(i*n))<1||return(sign(tan(n))*(i-1)); print1(", "sign(tan(n*i))*i*n))}, contfracpnqn(c=contfrac(Pi),#c)[1,]) \\ M. F. Hasler, Oct 09 2020
Comments