Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A101455
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A101455 For n > 0: a(n) = 0 for even n, a(n) = (-1)^((n-1)/2) for odd n. Periodic sequence 1,0,-1,0... +0
15
1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0 (list; graph; listen)
OFFSET

1,1

COMMENT

Called X(n) (i.e. Chi(n)) in Hardy and Wright (p. 241), who show that X(n*m) = X(n)*X(m) for all n and m (i.e. X(n) is completely multiplicative) since (n*m - 1)/2 - (n - 1)/2 - (m - 1)/2 = (n - 1)*(m - 1)/2 = 0 (mod 2) when n and m are odd. Same as A056594 but with offset 1.

Multiplicative with a(2^e) = 0, a(p^e) = (-1)^((p^e-1)/2) otherwise. Mitch Harris (Harris.Mitchell(AT)mgh.harvard.edu) May 17, 2005.

REFERENCES

G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 5th ed., Oxford Univ. Press, 1979, p. 241.

FORMULA

Euler transform of length 4 sequence [0, -1, 0, 1]. - Michael Somos Sep 02 2005

G.f.: (x-x^3)/(1-x^4) . - Michael Somos Sep 02 2005

a(n)=sin(2*Pi*(n-1))/(4*cos(Pi/2*(n-1))) with n>=0 - Paolo P. Lava (ppl(AT)spl.at), Jun 20 2006

a(n)=-(1/4)*{(n mod 4)-[(n+1) mod 4]-[(n+2) mod 4]+[(n+3) mod 4]}, with n>=1 [From Paolo P. Lava (ppl(AT)spl.at), Aug 28 2009]

PROGRAM

(PARI) a(n)=if(n%2, (-1)^(n\2)) /* Michael Somos Sep 02 2005 */

sage: [lucas_number1(n, 0, 1) for n in xrange(1, 94)] - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Jul 06 2008

CROSSREFS

Cf. A056594.

Sequence in context: A016213 A015757 A166698 this_sequence A056594 A091337 A059841

Adjacent sequences: A101452 A101453 A101454 this_sequence A101456 A101457 A101458

KEYWORD

easy,sign,mult

AUTHOR

Gerald McGarvey (Gerald.McGarvey(AT)comcast.net), Jan 20 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research