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 A277546 #14 Apr 02 2017 12:08:15 %S A277546 1,2,3,4,5,6,7,1,1,2,3,4,5,6,7,2,1,2,3,4,5,6,7,3,1,2,3,4,5,6,7,4,1,2, %T A277546 3,4,5,6,7,5,1,2,3,4,5,6,7,6,1,2,3,4,5,6,7,7,1,2,3,4,5,6,7,1,1,2,3,4, %U A277546 5,6,7,1,1,2,3,4,5,6,7,2,1,2,3,4,5,6 %N A277546 a(n) = n/8^m mod 8, where 8^m is the greatest power of 8 that divides n. %C A277546 a(n) is the rightmost nonzero digit in the base 8 expansion of n. %H A277546 Clark Kimberling, <a href="/A277546/b277546.txt">Table of n, a(n) for n = 1..10000</a> %e A277546 a(11) = (11/8 mod 8) = 3. %t A277546 Table[Mod[n/8^IntegerExponent[n, 8], 8], {n, 1, 160}] %t A277546 m8[n_]:=Module[{idn=IntegerDigits[n,8]},While[idn[[-1]]==0,idn = Most[ idn]];idn[[-1]]]; Array[m8,90] (* _Harvey P. Dale_, Apr 02 2017 *) %o A277546 (PARI) a(n) = n/8^valuation(n, 8) % 8; \\ _Michel Marcus_, Oct 20 2016 %Y A277546 Cf. A010877. %K A277546 nonn,easy %O A277546 1,2 %A A277546 _Clark Kimberling_, Oct 19 2016