|
Search: id:A034947
|
|
|
| A034947 |
|
Jacobi (or Kronecker) symbol (-1/n). |
|
+0 2
|
|
| 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, 1, -1, -1, 1, -1, -1, 1, 1
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Also the regular paper-folding sequence.
Comment from Jeremy Gardiner (jeremy.gardiner(AT)btinternet.com), Nov 08, 2004: It appears that, replacing +1 with 0 and -1 with 1, we obtain A038189. Alternatively, replacing -1 with 0 we obtain (allowing for offset) A014577.
|
|
REFERENCES
|
J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 155.
H. Cohen, Course in Computational Number Theory, p. 28.
|
|
LINKS
|
Joerg Arndt, Fxtbook
Eric Weisstein's World of Mathematics, Kronecker Symbol
|
|
FORMULA
|
Multiplicative with a(2^e) = 1, a(p^e) = (-1)^(e(p-1)/2) if p>2.
a(2n)=a(n), a(4n+1)=1, a(4n+3)=-1, a(-n)=-a(n). a(n)=2*A014577(n-1)-1.
a(prime(n)) = A070750(n) for n > 1 - T. D. Noe (noe(AT)sspectra.com), Nov 08 2004
|
|
MAPLE
|
with(numtheory): A034947 := n->jacobi(-1, n);
|
|
MATHEMATICA
|
Needs["NumberTheory`"]; Table[KroneckerSymbol[ -1, n], {n, 0, 100}]
|
|
PROGRAM
|
(PARI) a(n)=kronecker(-1, n)
|
|
CROSSREFS
|
Sequence in context: A108784 A010555 A020985 this_sequence A097807 A014077 A098417
Adjacent sequences: A034944 A034945 A034946 this_sequence A034948 A034949 A034950
|
|
KEYWORD
|
sign,nice,easy,mult
|
|
AUTHOR
|
njas
|
|
|
Search completed in 0.002 seconds
|