A244956 Smallest positive multiple of n whose base-5 representation contains only 0's and 1's.
1, 6, 6, 156, 5, 6, 126, 656, 126, 30, 781, 156, 26, 126, 30, 656, 3281, 126, 3781, 780, 126, 3256, 3151, 97656, 25, 26, 756, 756, 15631, 30, 31, 3776, 16401, 3876, 630, 756, 3256, 3876, 156, 3280, 656, 126, 15781, 3256, 630, 16376, 3901, 472656, 15631, 150
Offset: 1
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=5)
- Chai Wah Wu, Pigeonholes and repunits, Amer. Math. Monthly, 121 (2014), 529-533.
Programs
-
Mathematica
Module[{nn=10,b5},b5=Rest[FromDigits[#,5]&/@Tuples[{0,1},nn]];Table[SelectFirst[b5,Mod[ #,n]==0&],{n,100}]] (* Harvey P. Dale, Feb 01 2024 *)
Extensions
Data corrected, offset corrected, Mathematica program replaced, and b-file replaced by Harvey P. Dale, Feb 01 2024