OFFSET
1,2
REFERENCES
J. W. L. Glaisher, On circulating decimals, Proc. Camb. Phil. Soc., 3 (1878), pp. 185-206.
D. H. Lehmer, Guide to Tables in the Theory of Numbers. Bulletin No. 105, National Research Council, Washington, DC, 1941, pp. 7-12.
LINKS
Eric Weisstein's World of Mathematics, Decimal Expansion.
FORMULA
EXAMPLE
11 is in the sequence because 1 + 1 = 2 and 1/11 = 0.09 09 09... with period 2.
41 is in the sequence because 4 + 1 = 5 and 1/41 = 0.02439 02439 ... with period 5.
MAPLE
with(numtheory): nn:= 2343: T:=array(1..nn): U:=array(1..nn): X:=array(1..nn): Y:=array(1..nn):k:=1:for n from 2 to 999999 do:for p from 1 to 55 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 T[k]:=n : U[k]:=p: k:=k+1:else fi:od: for n from 1 to nn do:p1:= T[n]: l:=length(p1):n0:=p1:s:=0:for m from 1 to l do:q:=n0:u:=irem(q, 10):v:=iquo(q, 10):n0:=v :s:=s+u:od: X[n]:=s: od: for n from 1 to nn do:if X[n]= U[n] then printf(`%d, `, T[n]):else fi:od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, May 28 2010
STATUS
approved