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.

A063569 6^a(n) is smallest positive power of 6 containing the string 'n'.

This page as a plain text file.
%I A063569 #7 Nov 14 2019 14:36:15
%S A063569 9,3,3,2,6,6,1,5,12,4,9,16,4,13,28,18,3,10,15,21,26,3,22,12,27,26,17,
%T A063569 7,16,4,13,22,24,12,27,19,2,21,22,30,13,14,22,25,17,15,6,15,28,15,21,
%U A063569 31,46,23,28,18,6,15,20,17,10,8,11,33,14,6,6,8,18,9,11,22,26,17,16,33
%N A063569 6^a(n) is smallest positive power of 6 containing the string 'n'.
%H A063569 Chai Wah Wu, <a href="/A063569/b063569.txt">Table of n, a(n) for n = 0..10000</a>
%t A063569 a = {}; Do[k = 1; While[ StringPosition[ ToString[6^k], ToString[n] ] == {}, k++ ]; a = Append[a, k], {n, 0, 60} ]; a
%o A063569 (Python)
%o A063569 def A063569(n):
%o A063569     m, k, s = 1, 6, str(n)
%o A063569     while s not in str(k):
%o A063569         m += 1
%o A063569         k *= 6
%o A063569     return m # _Chai Wah Wu_, Nov 14 2019
%Y A063569 Essentially the same as A062523.
%K A063569 base,nonn
%O A063569 0,1
%A A063569 _Robert G. Wilson v_, Aug 10 2001