login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(1) = 0, then after the first differences of A329697.
4

%I #6 Apr 18 2020 19:44:48

%S 0,0,1,-1,1,0,1,-2,2,-1,1,-1,1,0,0,-2,1,1,1,-2,2,-1,1,-2,1,0,1,-1,1,

%T -1,1,-3,3,-2,2,-1,1,0,0,-2,1,1,1,-2,1,0,1,-3,3,-2,0,0,1,0,0,-1,2,-1,

%U 1,-2,1,0,1,-4,3,0,1,-3,3,-1,1,-2,1,0,0,0,1,-1,1,-3,3,-2,1,0,-1,2,0,-2,1,0,1,-1,1,0,0,-3,1,2,0,-2,1,-1,1,-1,2

%N a(1) = 0, then after the first differences of A329697.

%H Antti Karttunen, <a href="/A334091/b334091.txt">Table of n, a(n) for n = 1..65537</a>

%F a(1) = 0, and for n > 1, a(n) = A329697(n) - A329697(n-1).

%F a(n) = A334090(n) - A334195(n).

%o (PARI)

%o A329697(n) = if(!bitand(n,n-1),0,1+A329697(n-(n/vecmax(factor(n)[, 1]))));

%o A334091(n) = if(1==n,0,A329697(n)-A329697(n-1));

%Y Cf. A329697, A334090, A334195.

%K sign

%O 1,8

%A _Antti Karttunen_, Apr 17 2020