OFFSET
1,1
COMMENTS
Conjecture (verified for m < 10^6 by M. F. Hasler): A024813(n) = 2*A024812(n) - n + 1, n=1,2,.... - L. Edson Jeffery, Mar 21 2013
The above conjecture follows from the Laurent series for cot(x) = 1/x - x/3 + O(x^3) and the conjecture n/a(n) ~ 4/Pi-1. - M. F. Hasler, Mar 25 2013
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Robert G. Wilson v, Graph of f(n), see Mathematica program
FORMULA
n/a(n) ~ 4/Pi - 1 (as n -> oo), or a(n) ~ 3.65979 n. (Conjectured.) - M. F. Hasler, Mar 25 2013
Alternate formula: cot(Pi/(2m)) = tan((Pi/2)*(1 - 1/m)).
Conjecture: a(n) = a(n-1) + a(n-3) - a(n-4); g.f.: x*(2*x^15-2*x^14-x^3+5*x^2+3*x+4) / ((x-1)^2*(x^2+x+1)). - Colin Barker, Jan 03 2014
MATHEMATICA
f[n_] := Floor[Tan[Pi (1 - 1/n)/2]]; Select[Range[2, 100], f[# - 1] < f[#] < f[# + 1] &] (* Robert G. Wilson v, Mar 19 2013 *)
Flatten[Position[Partition[Floor[Cot[Pi/(2Range[250])]], 3, 1], _?(Min[ Differences[ #]]>0&), {1}, Heads->False]]+1 (* Harvey P. Dale, Feb 04 2016 *)
PROG
(PARI) {my(f(m)=floor(cotan(Pi/2/m))); for(m=2, 99, f(m-1)<f(m) & f(m)<f(m+1) & print1(m", "))} \\ See comment in A024812; M. F. Hasler, Mar 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition corrected by M. F. Hasler, following posts to the SeqFan list from Harvey P. Dale and Don Reble, Mar 19 2013
STATUS
approved