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 A297154 #8 Dec 26 2017 21:26:04 %S A297154 1,0,1,0,3,7,17,0,3,7,9,8,14,7,1,0,51,21,47,8,3,7,48,19,51,7,9,8,27, %T A297154 67,32,0,16,7,13,24,38,7,9,19,39,63,161,8,3,7,153,68,38,20,13,8,141, %U A297154 63,34,19,51,7,138,56,152,7,9,0,31,55,149,8,46,71,105,57,101,7,17,8,160,60,89,68,27,7,81,72,160,7 %N A297154 Balanced ternary representation of A083254(n), 2*phi(n)-n. %H A297154 Antti Karttunen, <a href="/A297154/b297154.txt">Table of n, a(n) for n = 1..16384</a> %F A297154 If A083254(n) >= 0, then a(n) = A117967(A083254(n)), otherwise a(n) = A117968(-A083254(n)). %F A297154 For all n >= 1, A117966(a(n)) = A083254(n). %o A297154 (Scheme) (define (A297154 n) (let ((x (A083254 n))) (if (>= x 0) (A117967 x) (A117968 (- x))))) %Y A297154 Cf. A000010, A083254, A117966, A117967, A117968. %Y A297154 Cf. also A297153, A295882. %K A297154 nonn %O A297154 1,5 %A A297154 _Antti Karttunen_, Dec 26 2017