login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


Least k such that decimal representation of k*n contains only digits 0 and 8.
3

%I #6 Jan 02 2015 22:49:00

%S 8,4,296,2,16,148,1144,1,98765432,8,8,74,616,572,592,5,5224,49382716,

%T 4632,4,3848,4,38296,37,32,308,326255144,286,303752,296,28648,25,

%U 26936,2612,2288,24691358,24,2316,2072,2,2168,1924,204856,2,197530864,19148

%N Least k such that decimal representation of k*n contains only digits 0 and 8.

%H Chai Wah Wu, <a href="/A096687/b096687.txt">Table of n, a(n) for n = 1..9998</a>

%F a(n) = A078247(n)/n.

%o (Python)

%o def A096687(n):

%o ....if n > 0:

%o ........for i in range(1,2**n):

%o ............q, r = divmod(8*int(bin(i)[2:]),n)

%o ............if not r:

%o ................return q

%o ....return 1 # _Chai Wah Wu_, Jan 02 2015

%Y Cf. A004290, A078241-A078248, A079339, A096681-A096688.

%K base,nonn

%O 1,1

%A _Ray Chandler_, Jul 12 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 20 09:27 EDT 2024. Contains 376068 sequences. (Running on oeis4.)