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.

A087003 a(2n) = 0 and a(2n+1) = mu(2n+1); also the sum of Mobius function values computed for terms of 3x+1 trajectory started at n, provided that Collatz conjecture is true.

This page as a plain text file.
%I A087003 #65 Jan 24 2025 13:31:08
%S A087003 1,0,-1,0,-1,0,-1,0,0,0,-1,0,-1,0,1,0,-1,0,-1,0,1,0,-1,0,0,0,0,0,-1,0,
%T A087003 -1,0,1,0,1,0,-1,0,1,0,-1,0,-1,0,0,0,-1,0,0,0,1,0,-1,0,1,0,1,0,-1,0,
%U A087003 -1,0,0,0,1,0,-1,0,1,0,-1,0,-1,0,0,0,1,0,-1,0,0,0,-1,0,1,0,1,0,-1,0,1,0,1,0,1,0,-1,0,0,0,-1,0,-1,0,-1,0,-1,0,-1,0,1,0,-1
%N A087003 a(2n) = 0 and a(2n+1) = mu(2n+1); also the sum of Mobius function values computed for terms of 3x+1 trajectory started at n, provided that Collatz conjecture is true.
%C A087003 Observe that (these summatory) terms are from {-1,0,1}, so behave like Mobius function values, not like Mertens function values. Moreover, empirically: a(n) deviates from mu(initial-value) = mu(n) only if iv = n is an even squarefree number (i.e., it is from A039956). - This comment, like also the next one, concerns the original Collatz-related definition of this sequence. - _Antti Karttunen_, Sep 18 2017
%C A087003 From _Marc LeBrun_, Feb 19 2004: (Start)
%C A087003 Absolute values are the same as those of A091069. First consider the descending parts of Collatz (or 3x+1) trajectories, those that begin with even numbers 2^p k, with k odd. These go 2^p*k, 2^(p-1)*k, ... 2k, k. All but 2k and k are divisible by 4, a (rational) square, hence their mu values are all 0 and so they contribute nothing to the sum.
%C A087003 Then at the end, since mu(2k) = -mu(k), the last two steps cancel each other out. So every descending chain in a trajectory contributes 0. Of course the full trajectory of every even number consists entirely of descending chains, so A087003 is 0 for all even n.
%C A087003 On the other hand, the trajectory of every odd number consists of just that number followed by the trajectory of an even number (which contributes nothing) so A087003 is indeed equal to mu(n) for odd n.
%C A087003 (End)
%C A087003 The sequence is multiplicative; it may be defined as the Dirichlet inverse of the integers modulo 2 (A000035). - _Gerard P. Michon_, Apr 29 2007
%C A087003 a(n) appears in the second column of A156241 at every second row. - _Mats Granvik_, Feb 07 2009
%H A087003 Antti Karttunen, <a href="/A087003/b087003.txt">Table of n, a(n) for n = 1..10000</a>
%H A087003 G. P. Michon, <a href="http://www.numericana.com/answer/open.htm#collatz">The Collatz problem</a>.
%H A087003 G. P. Michon, <a href="http://www.numericana.com/answer/numbers.htm#multiplicative">Multiplicative functions</a>.
%H A087003 <a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
%F A087003 a(n) = A008683(n) + A292273(n). - _Antti Karttunen_, Sep 14 2017
%F A087003 Moebius transform of A209229. - _Andrew Howroyd_, Aug 04 2018
%F A087003 From _Jianing Song_, Aug 04 2018: (Start)
%F A087003 Multiplicative with a(2^e) = 0, a(p^e) = (-1 + (-1)^e)/2 for odd primes p.
%F A087003 Dirichlet g.f.: 1/((1 - 2^(-s))*zeta(s)).
%F A087003 (End)
%F A087003 From _Antti Karttunen_, Sep 01 2018: (Start)
%F A087003 a(n) = A000035(n)*A008683(n).
%F A087003 Dirichlet convolution of A318657/A046644 with itself.
%F A087003 (End)
%F A087003 Sum_{n>=1} a(n)/n^2 = A217739 . Sum_{n>=1} a(n)/n^3 = A233091. Sum_{n>=1} a(n)/n^4 = A300707. - _R. J. Mathar_, Dec 17 2024
%t A087003 c[x_] := (1-Mod[x, 2])*(x/2)+Mod[x, 2]*(3*x+1); c[1]=1; fpl[x_] := Delete[FixedPointList[c, x], -1] lf[x_] := Length[fpl[x]] Table[Apply[Plus, Table[MoebiusMu[Part[fpl[w], j]], {j, 1, lf[w]}]], {w, 1, 256}]
%t A087003 Riffle[MoebiusMu[Range[1,121,2]],0] (* _Harvey P. Dale_, Jan 24 2025 *)
%o A087003 (PARI)
%o A087003 A006370(n) = if(n%2, 3*n+1, n/2); \\ This function from _Michael B. Porter_, May 29 2010
%o A087003 A087003(n) = { my(s=1); while(n>1, s += moebius(n); n = A006370(n)); (s); }; \\ _Antti Karttunen_, Sep 14 2017
%o A087003 (PARI) a(n)={sumdiv(n, d,  my(e=valuation(d, 2)); if(d==1<<e, moebius(n/d), 0))} \\ _Andrew Howroyd_, Aug 04 2018
%o A087003 (PARI) A087003(n) = ((n%2)*moebius(n)); \\ _Antti Karttunen_, Sep 01 2018
%Y A087003 Cf. A006370, A008683, A039956, A292273, A099990, A209229.
%Y A087003 Cf. A000035 (the Dirichlet inverse), A318657/A318658 (the "Dirichlet Square Root").
%K A087003 sign,mult
%O A087003 1,1
%A A087003 _Labos Elemer_, Oct 02 2003
%E A087003 a(2n) = 0, a(2n+1) = mu(2n+1) added to the name as the new primary definition by _Antti Karttunen_, Sep 18 2017