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.

A277544 a(n) = n/6^m mod 6, where 6^m is the greatest power of 6 that divides n.

This page as a plain text file.
%I A277544 #10 Oct 26 2016 15:24:08
%S A277544 1,2,3,4,5,1,1,2,3,4,5,2,1,2,3,4,5,3,1,2,3,4,5,4,1,2,3,4,5,5,1,2,3,4,
%T A277544 5,1,1,2,3,4,5,1,1,2,3,4,5,2,1,2,3,4,5,3,1,2,3,4,5,4,1,2,3,4,5,5,1,2,
%U A277544 3,4,5,2,1,2,3,4,5,1,1,2,3,4,5,2,1,2
%N A277544 a(n) = n/6^m mod 6, where 6^m is the greatest power of 6 that divides n.
%C A277544 a(n) is the rightmost nonzero digit in the base 6 expansion of n.
%H A277544 Clark Kimberling, <a href="/A277544/b277544.txt">Table of n, a(n) for n = 1..10000</a>
%F A277544 a(n) = A244414(n) mod 6. - _Michel Marcus_, Oct 20 2016
%e A277544 a(8) = (8/6 mod 6) = 2.
%t A277544 Table[Mod[n/6^IntegerExponent[n, 6], 6], {n, 1, 160}]
%o A277544 (PARI) a(n) = n/6^valuation(n, 6) % 6; \\ _Michel Marcus_, Oct 20 2016
%Y A277544 Cf. A010875, A244414.
%K A277544 nonn,easy
%O A277544 1,2
%A A277544 _Clark Kimberling_, Oct 19 2016