cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A259030 a(n) is multiplicative with a(2^e) = -(1 - (-1)^e) / 2 if e > 0, a(p^e) = Kronecker(5, p)^e if p > 2.

This page as a plain text file.
%I A259030 #15 Sep 04 2023 02:03:16
%S A259030 1,-1,-1,0,0,1,-1,-1,1,0,1,0,-1,1,0,0,-1,-1,1,0,1,-1,-1,1,0,1,-1,0,1,
%T A259030 0,1,-1,-1,1,0,0,-1,-1,1,0,1,-1,-1,0,0,1,-1,0,1,0,1,0,-1,1,0,1,-1,-1,
%U A259030 1,0,1,-1,-1,0,0,1,-1,0,1,0,1,-1,-1,1,0,0,-1,-1
%N A259030 a(n) is multiplicative with a(2^e) = -(1 - (-1)^e) / 2 if e > 0, a(p^e) = Kronecker(5, p)^e if p > 2.
%F A259030 a(n) = a(-n) for all n in Z.
%F A259030 a(2*n + 1) = A105368(n). a(4*n + 1) = A080891(n-1). a(4*n + 2) = - A105368(n). a(4*n - 1) = A080891(n+1).
%F A259030 A113185(n) = Sum_{d|n} d * a(d) * -(-1)^(n/d) if n > 0.
%F A259030 G.f.: f(x) - Sum_{k>0} f(x^2^(2*k-1)) where f(x) := x * (1 - x^2) * (1 - x^6) / (1 - x^10).
%e A259030 G.f. = x - x^2 - x^3 + x^6 - x^7 - x^8 + x^9 + x^11 - x^13 + x^14 - x^17 + ...
%t A259030 f[p_, e_] := KroneckerSymbol[5, p]^e; f[2, e_] := -(1 - (-1)^e) / 2; a[n_] := Times @@ f @@@ FactorInteger[n]; a[1] = 1; Array[a, 100] (* _Amiram Eldar_, Sep 04 2023 *)
%o A259030 (PARI) {a(n) = my(A, p, e); if( !n, 0, A = factor(abs(n)); prod(k=1, matsize(A)[1], [p, e] = A[k,]; if( p==2, -(e%2), kronecker( 5, p)^e)))};
%Y A259030 Cf. A080891, A105368, A113185.
%K A259030 sign,easy,mult
%O A259030 1,1
%A A259030 _Michael Somos_, Jun 17 2015