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.

A318583 a(1) = a(2) = 1; for n > 2, a(n+2) = Sum_{d|n} mu(n/d)*a(d).

This page as a plain text file.
%I A318583 #19 May 15 2019 08:33:49
%S A318583 1,1,1,0,0,-1,-1,-2,-2,-2,-3,-2,-4,0,-5,1,-5,3,-6,7,-7,10,-6,13,-7,17,
%T A318583 -7,21,-5,22,-6,31,-7,30,-4,35,-2,33,-3,39,1,34,0,42,-1,33,7,39,6,23,
%U A318583 7,32,12,16,11,18,15,-1,21,4,20,-27,19,-21,29,-52,34,-56,33,-85,39,-80,38,-130,37
%N A318583 a(1) = a(2) = 1; for n > 2, a(n+2) = Sum_{d|n} mu(n/d)*a(d).
%H A318583 Antti Karttunen, <a href="/A318583/b318583.txt">Table of n, a(n) for n = 1..16384</a>
%H A318583 N. J. A. Sloane, <a href="/transforms.txt">Transforms</a>
%F A318583 G.f.: Sum_{n>=1} a(n+2)*x^n/(1 - x^n).
%F A318583 L.g.f.: -log(Product_{n>=1} (1 - x^n)^(a(n+2)/n)) = Sum_{n>=1} a(n)*x^n/n.
%p A318583 with(numtheory): P:=proc(q) local k,n,x; x:=[1,1]: for n from 3 to q do
%p A318583 x:=[op(x),add(mobius((n-2)/k)*x[k],k=divisors(n-2))]; od; op(x); end:
%p A318583 P(75); # _Paolo P. Lava_, May 15 2019
%t A318583 a[1] = a[2] = 1; a[n_] := a[n] = Sum[a[d] MoebiusMu[(n - 2)/d], {d, Divisors[n - 2]}]; Table[a[n], {n, 75}]
%o A318583 (PARI) A318583(n) = if(n<=2,1,sumdiv(n-2,d,moebius((n-2)/d)*A318583(d))); \\ (A non-memoized implementation) - _Antti Karttunen_, Aug 29 2018
%o A318583 (PARI)
%o A318583 \\ A faster implementation:
%o A318583 up_to = 16384;
%o A318583 A318583list(up_to) = { my(u=vector(up_to)); u[1] = u[2] = 1; for(n=3, up_to, u[n] = sumdiv(n-2,d,moebius((n-2)/d)*u[d])); (u); };
%o A318583 v318583 = A318583list(up_to);
%o A318583 A318583(n) = v318583[n]; \\ _Antti Karttunen_, Aug 29 2018
%Y A318583 Cf. A007439, A007554, A008683.
%K A318583 sign,look
%O A318583 1,8
%A A318583 _Ilya Gutkovskiy_, Aug 29 2018