OFFSET
1,1
COMMENTS
Complement of A003592.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Repeating Decimal
EXAMPLE
1/3=0.3333..., 1/6=0.16666..., 1/7=0.142857142857..., ...
MAPLE
isA085837 := proc(n)
return (numtheory[factorset](n) minus {2, 5} <> {} );
end proc:
A085837 := proc(n)
option remember;
if n = 1 then
3;
else
for a from procname(n-1)+1 do
if isA085837(a) then
return a;
end if;
end do:
end if;
end proc: # R. J. Mathar, Jul 16 2012
MATHEMATICA
Select[ Range[84], MatchQ[ RealDigits[1/#], {{___, {__}}, 0|-1}] &] (* From Jean-François Alcover, Nov 07 2011 *)
Select[Range[100], Depth[RealDigits[1/#]]>3&] (* Harvey P. Dale, May 28 2015 *)
PROG
(PARI) isok(k) = my(p=5); k>0 && !(#setunion(Set(factor(k)[, 1]), [2, p])==2); \\ Arkadiusz Wesolowski, Mar 08 2026
(Python)
from sympy import integer_log
def A085837(n):
def f(x): return n+sum((x//5**i).bit_length() for i in range(integer_log(x, 5)[0]+1))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Feb 24 2025
CROSSREFS
KEYWORD
nonn,easy,nice,base
AUTHOR
Eric W. Weisstein, Jul 04 2003
EXTENSIONS
Definition corrected by Robert Israel, Jul 09 2014
STATUS
approved
