OFFSET
1,2
COMMENTS
The sequence consists of the numbers of the form 2^i*5^j (A003592) except for {2, 4, 5, 8, 16, 32}. - Giovanni Resta, Nov 13 2018
EXAMPLE
20 is in the sequence because 20^10 divides 10^20.
5 is not in the sequence because 5^10 does not divide 10^5.
MATHEMATICA
Select[Union@ Flatten@ Table[2^a * 5^b, {a, 0, Log[2, #/(1)]}, {b, 0, Log[5, #/(2^a)]}] &[10^5], PowerMod[10, #, #^10] == 0 &] (* Michael De Vlieger, Oct 15 2018 *)
m = 10^5; DeleteCases[Union @@ Table[2^a*5^b, {a, 0, Log2@ m}, {b, Boole[0 < a < 6], Log[5, m/2^a]}], 5] (* Giovanni Resta, Nov 13 2018 *)
PROG
(PARI) isok(n) = Mod(10, n^10)^n == 0; \\ Michel Marcus, Oct 14 2018
(GAP) Filtered([1..16000], k->PowerMod(10, k, k^10)=0); # Muniru A Asiru, Oct 16 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Kritsada Moomuang, Oct 14 2018
STATUS
approved