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 A096687 #9 Feb 04 2025 11:38:03 %S A096687 8,4,296,2,16,148,1144,1,98765432,8,8,74,616,572,592,5,5224,49382716, %T A096687 4632,4,3848,4,38296,37,32,308,326255144,286,303752,296,28648,25, %U A096687 26936,2612,2288,24691358,24,2316,2072,2,2168,1924,204856,2,197530864,19148 %N A096687 Least k such that decimal representation of k*n contains only digits 0 and 8. %H A096687 Chai Wah Wu, <a href="/A096687/b096687.txt">Table of n, a(n) for n = 1..9998</a> %F A096687 a(n) = A078247(n)/n. %o A096687 (Python) %o A096687 def A096687(n): %o A096687 if n > 0: %o A096687 for i in range(1, 2**n): %o A096687 q, r = divmod(8*int(bin(i)[2:]), n) %o A096687 if not r: %o A096687 return q %o A096687 return 1 # _Chai Wah Wu_, Jan 02 2015 %Y A096687 Cf. A004290, A078241-A078248, A079339, A096681-A096688. %K A096687 base,nonn %O A096687 1,1 %A A096687 _Ray Chandler_, Jul 12 2004