login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004287 Least positive multiple of n written in base 7 using only 0 and 1. 2
0, 1, 11, 111, 11, 101, 111111, 10, 11, 1011, 101, 10011, 111111, 1011, 110, 11001, 1111, 100111, 1101111, 111, 1111, 1110, 11101, 101011, 111111, 101, 111001, 1011, 110, 1111111, 1011111, 100111, 11011, 10011, 100111, 1010, 1101111 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Chai Wah Wu, Table of n, a(n) for n = 0..10000

PROG

(Python)

def A004287(n):

....if n > 0:

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

............s = bin(i)[2:]

............if not int(s, 7) % n:

................return int(s)

....return 0 # Chai Wah Wu, Dec 30 2014

CROSSREFS

Sequence in context: A266513 A055016 A259372 * A061493 A093788 A327992

Adjacent sequences:  A004284 A004285 A004286 * A004288 A004289 A004290

KEYWORD

nonn,base

AUTHOR

David W. Wilson

EXTENSIONS

Added a(0) from Chai Wah Wu, Dec 30 2014

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 17 22:36 EDT 2019. Contains 328134 sequences. (Running on oeis4.)