OFFSET
1,1
COMMENTS
EXAMPLE
Applying the definition of the base-2 MR-expansion to 1/17 gives 1/17->2/17->4/17->8/17->16/17->32/17->15/17->30/17->13/17->26/17->9/17->18/17->1/17->..., which shows that the expansion begins {5,1,1,1,...} and has period 4=(17-1)/4.
MATHEMATICA
a[p_] := 1 + Sum[2 Cos[2^n Pi/((2 p + 1) )], {n, 1, p}];
Select[Range[500], Reduce[a[#]^2 == 2 # + 1, Integers] &];
2 % + 1 (* Gerry Martens, May 01 2016 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
John W. Layman, Jan 19 2009
STATUS
approved