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 A088151 #4 Feb 16 2025 08:32:51 %S A088151 1,0,0,1,0,0,1,1,1,0,0,0,1,2,1,2,2,0,0,1,1,1,0,2,1,1,0,0,1,0,1,1,1,2, %T A088151 0,2,0,2,1,1,1,0,1,0,1,0,0,0,1,2,2,2,1,1,0,1,2,1,1,1,1,1,1,0,0,1,1,0, %U A088151 2,2,1,0,0,0,0,1,1,2,1,2,1,0,0,1,1,0,2,2,0,0,0,2,1,1,0,0,1,2,0,0,1,1 %N A088151 Value of n-th digit in ternary representation of n^n. %C A088151 a(n)=d(n) with n^n = Sum(d(k)*3^k: 0<=d(k)<3, k>=0). %H A088151 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Ternary.html">Ternary</a> %F A088151 a(n) = floor(n^n / 3^n) mod 3. %e A088151 n=7, 7^7=3110367 -> '1112211200121', '111221-------': a(7)=1. %Y A088151 Cf. A007089, A000312, A088150, A088152, A088153, A088154, A088155, A088156, A088157. %K A088151 nonn,base %O A088151 0,14 %A A088151 _Reinhard Zumkeller_, Sep 20 2003