OFFSET
0,3
COMMENTS
Of course the terms of A004290 are already in base 10 (they just happen to involve only the digits 0 and 1), so there is no justification for this sequence other than curiosity.
a(n) < 2^n. - Chai Wah Wu, Apr 29 2015
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..9998
MATHEMATICA
s = With[{c = Rest[Union[FromDigits /@ Flatten[Table[Tuples[{1, 0}, i], {i, 10}], 1]]]}, Join[{0}, Flatten[Table[Select[c, Divisible[#, n] &, 1], {n, 120}]]]]; FromDigits[IntegerDigits@ #, 2] & /@ s (* Michael De Vlieger, Apr 29 2015, after Harvey P. Dale at A004290 *)
PROG
(Python)
def A257345(n):
if n > 0:
for i in range(1, 2**n):
x = int(format(i, 'b'))
if not x % n:
return int(str(x), 2)
return 0 # Chai Wah Wu, Apr 29 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Apr 29 2015
EXTENSIONS
More terms from Chai Wah Wu, Apr 29 2015
STATUS
approved