OFFSET
1,1
LINKS
Ray Chandler, Table of n, a(n) for n = 1..406 (terms up to 1000 digits)
FORMULA
EXAMPLE
3 is in the sequence because 1/3 = 0.3333...
142857 is in the sequence because 1/7 = 0.142857 142857 ...
1 is in the sequence because 1/9 = 0.1111....
MAPLE
with(numtheory): nn:= 100: T:=array(1..nn):k:=1: U:=array(1..nn):k:=1: for n from 2 to 200 do:x:=1/n:for p from 1 to 200 while(irem(10^p, n)<>1 or gcd(n, 10)<> 1) do:od: if irem(10^p, n) = 1 and gcd(n, 10) = 1 then y:=floor(x*10^p): T[k]:=y: U[k]:=n : k:=k+1:else fi:od:print(T):
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, May 29 2010
EXTENSIONS
Name corrected by T. D. Noe, Jul 07 2010
STATUS
approved