OFFSET
1,3
LINKS
Dimiter Skordev, Table of n, a(n) for n = 1..138 (terms less than 10^7).
Dimiter Skordev, Python script
EXAMPLE
30 = 11110_2; 11110_5 = 780 = 26*30.
MATHEMATICA
Prepend[Select[Range[12000], Divisible[FromDigits[IntegerDigits[#, 2], 5], #] &], 0] (* Amiram Eldar, Jan 29 2020 *)
PROG
(PARI) isok(n) = (n == 0) || (fromdigits(digits(n, 2), 5) % n) == 0; \\ Michel Marcus, Jan 29 2020
(Magma) [0] cat [k:k in [1..12000]|Seqint(Intseq(Seqint(Intseq(k, 2))), 5) mod k eq 0]; // Marius A. Burtea, Jan 29 2020
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Dimiter Skordev, Jan 29 2020
STATUS
approved