login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165233 Signed denominators of terms in series expansion of cos(x)+sin(x). 0
1, 1, -2, -6, 24, 120, -720, -5040, 40320, 362880, -3628800, -39916800, 479001600, 6227020800, -87178291200, -1307674368000, 20922789888000, 355687428096000, -6402373705728000, -121645100408832000, 2432902008176640000 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Sum(n>=0,1/a(n))=cos(1)+sin(1).

Sum(n>=0,(Pi/4)^n/a(n))=sqrt(2).

Numerators are in A000012. - Alois P. Heinz, Jan 20 2016

LINKS

Table of n, a(n) for n=0..20.

FORMULA

a(n)=(-1)^floor(n/2)*n! = A057077(n)*A000142(n).

a(n)=(sin(n*Pi/2)+cos(n*Pi/2))*n!.

a(n)=sqrt(2)*sin((2n+1)*Pi/4)*n!.

a(n)=sqrt(2)*cos((2n-1)*Pi/4)*n!.

G.f. Q(0) where Q(k)= 1 + x*(4*k+1)/(1 + 2*x*(2*k+1)/(1 - 2*x*(2*k+1) - x*(4*k+3)/(1 + x*(4*k+3) - 4*x*(k+1)/(4*x*(k+1) - 1/Q(k+1))))); (continued fraction, 3rd kind, 5-step). - Sergei N. Gladkovskii, Aug 15 2012

E.g.f.: (1 + x)/(1 + x^2). - Ilya Gutkovskiy, Oct 08 2016

MATHEMATICA

Sign@ # Denominator@ # & /@ CoefficientList[Series[Cos@ x + Sin@ x, {x, 0, 20}], x] (* Michael De Vlieger, Oct 08 2016 *)

PROG

(PARI) a(n)=(-1)^(n\2)*n!

CROSSREFS

Cf. A000012, A000142, A133942, A057077, A143623, A002193.

Sequence in context: A124355 A133942 A159333 * A000142 A104150 A074166

Adjacent sequences:  A165230 A165231 A165232 * A165234 A165235 A165236

KEYWORD

frac,sign,easy

AUTHOR

Jaume Oliver Lafont, Sep 09 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 20 23:39 EDT 2018. Contains 316405 sequences. (Running on oeis4.)