OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Ed Pegg Jr., 'Binary' Puzzle
Eric M. Schmidt, Sage code to compute this sequence (use b=3)
Chai Wah Wu, Pigeonholes and repunits, Amer. Math. Monthly, 121 (2014), 529-533.
MATHEMATICA
Module[{nn=10, b3}, b3=Rest[FromDigits[#, 3]&/@Tuples[{0, 1}, nn]]; Table[SelectFirst[b3, Mod[ #, n]==0&], {n, 60}]] (* Harvey P. Dale, Feb 01 2024 *)
PROG
(PARI) a(n, b=3) = if (n, k=1; while(vecmax(digits(k*n, b))>1, k++); k*n); \\ Michel Marcus, Jul 10 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric M. Schmidt, Jul 09 2014
EXTENSIONS
Data changed, offset changed, Mathematica program replaced, and b-file replaced by Harvey P. Dale, Feb 01 2024
STATUS
approved