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.
%I A292779 #21 May 19 2021 10:22:32 %S A292779 1,-2,-11,-11,-92,151,-578,-578,-578,19105,-39944,-39944,-571385, %T A292779 1022938,5805907,5805907,-37240814,-37240814,-424661303,-424661303, %U A292779 3062123098,13522476301,-17858583308,-17858583308,-17858583308,829430026135,829430026135,829430026135 %N A292779 Interpret the values of the Moebius function mu(k) for k = n to 1 as a balanced ternary number. %C A292779 Balanced ternary is much like regular ternary, but with the crucial difference of using the digit -1 instead of the digit 2. Then some powers of 3 are added, others are subtracted. %C A292779 Since the least significant digit is always 1, a(n) is never a multiple of 3. %C A292779 If mu(n) = 0, then a(n) is the same as a(n - 1). %C A292779 Run lengths are given by A076259. - _Andrey Zabolotskiy_, Oct 13 2017 %H A292779 Seiichi Manyama, <a href="/A292779/b292779.txt">Table of n, a(n) for n = 1..1000</a> %H A292779 Wikipedia, <a href="https://en.wikipedia.org/wiki/Balanced_ternary">Balanced ternary</a> %F A292779 a(n) = Sum_{k = 1 .. n} mu(k) 3^(k - 1). %e A292779 mu(1) = 1, so a(1) = 1 * 3^0 = 1. %e A292779 mu(2) = -1, so a(2) = -1 * 3^1 + 1 * 3^0 = -3 + 1 = -2. %e A292779 mu(3) = -1, so a(3) = -1 * 3^2 + -1 * 3^1 + 1 * 3^0 = -9 - 3 + 1 = -11. %e A292779 mu(4) = 0, so a(4) = 0 * 3^3 + -1 * 3^2 + -1 * 3^1 + 1 * 3^0 = -9 - 3 + 1 = -11. %p A292779 a:= proc(n) option remember; `if`(n=0, 0, %p A292779 a(n-1)+3^(n-1)*numtheory[mobius](n)) %p A292779 end: %p A292779 seq(a(n), n=1..33); # _Alois P. Heinz_, Oct 13 2017 %t A292779 Table[3^Range[0, n - 1].MoebiusMu[Range[n]], {n, 50}] %o A292779 (PARI) a(n) = sum(k=1, n, moebius(k)*3^(k-1)); \\ _Michel Marcus_, Oct 01 2017 %Y A292779 Cf. A008683, A127513, A292524. %K A292779 easy,sign,base %O A292779 1,2 %A A292779 _Alonso del Arte_, Sep 22 2017