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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070750 sin(prime(n)*pi/2), where prime=A000040, pi=3.1415... 17
0, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, -1, -1, 1, -1, 1, -1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Also imaginary part of primes mapped as defined in A076340, A076341: a(n)=A076341(A000040(n)), real part = A076342.

Legendre symbol (-1/prime(n)) for n > 1. - T. D. Noe (noe(AT)sspectra.com), Nov 05 2003

LINKS

Eric Weisstein's World of Mathematics, Legendre Symbol

FORMULA

a(n) = 2 - prime(n) mod 4.

a(n) = (-1)^((prime(n)-1)/2) for n > 1 - T. D. Noe (noe(AT)sspectra.com), Nov 05 2003

EXAMPLE

p=4*k+1 (see A002144): a(p) = sin((4*k+1)*pi/2) = sin(2*k*pi+pi/2) = sin(pi/2) = 1; p=4*k+3 (see A002145): a(p) = sin((4*k+3)*pi/2) = sin(2*k*pi+3*pi/2) = sin(3*pi/2) = -1.

PROG

(PARI) apply(n->2-n%4), primes(100)) \\ Charles R Greathouse IV, Aug 21 2011

CROSSREFS

Cf. A070748, A070749, A002144, A002145.

Sequence in context: A011596 A011597 A070747 * A011598 A011599 A011600

Adjacent sequences:  A070747 A070748 A070749 * A070751 A070752 A070753

KEYWORD

sign,nice

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 04 2002

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

Content is available under The OEIS End-User License Agreement .

Last modified February 14 13:08 EST 2012. Contains 205623 sequences.