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.

A176766 Smallest power of 6 whose decimal expansion contains n.

This page as a plain text file.
%I A176766 #12 Apr 03 2024 17:14:25
%S A176766 10077696,1,216,36,46656,46656,6,7776,2176782336,1296,10077696,
%T A176766 2821109907456,1296,13060694016,6140942214464815497216,
%U A176766 101559956668416,216,60466176,470184984576,21936950640377856,170581728179578208256,216
%N A176766 Smallest power of 6 whose decimal expansion contains n.
%C A176766 This is to 6 as A176763 is to 3 and as A030001 is to 2.
%H A176766 Paolo Xausa, <a href="/A176766/b176766.txt">Table of n, a(n) for n = 0..10000</a>
%F A176766 a(n) = MIN{A000400(i) such that n in decimal representation is a substring of A000400(i)}.
%F A176766 a(n) = 6^A062523(n). - _Michel Marcus_, Sep 30 2014
%e A176766 a(1) = 1 because 6^0 = 1 has "1" as a substring (not a proper substring, though).
%e A176766 a(2) = 216 because 6^3 = 216 has "2" as a substring.
%e A176766 a(3) = 36 because 6^2 = 36 has "3" as a substring.
%t A176766 A176766[n_] := Block[{k = -1}, While[StringFreeQ[IntegerString[6^++k], IntegerString[n]]]; 6^k]; Array[A176766, 50, 0] (* _Paolo Xausa_, Apr 03 2024 *)
%Y A176766 Cf. A000400, A030001, A176763, A176764-A176773.
%K A176766 base,easy,nonn
%O A176766 0,1
%A A176766 _Jonathan Vos Post_, Apr 25 2010
%E A176766 Corrected and extended by _Sean A. Irvine_ and _Jon E. Schoenfield_, May 05 2010
%E A176766 a(0) prepended by _Paolo Xausa_, Apr 03 2024