login
A070748
a(n) = signum(sin(prime(n))), where signum=A057427, prime=A000040.
8
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, 1, 1
OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Sign[Sin[Prime[Range[10000]]]] (* Andrey Mitin, Apr 22 2022 *)
PROG
(PARI) a(n)=(-1)^(prime(n)/Pi%2\1) \\ Charles R Greathouse IV, Jun 13 2013
CROSSREFS
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, May 04 2002
STATUS
approved