reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
return int(x) # Chai Wah Wu, Sep 02 2023
(Python)
from fractions import Fraction
def A087708(n):
x = Fraction(n)
while x.denominator > 1 or x<=n:
x = Fraction(5*x.__ceil__(), 3)
return int(x) # Chai Wah Wu, Sep 02 2023
approved
editing
J. C. Lagarias and N. J. A. Sloane, Approximate squaring (<a href="http://www.research.attneilsloane.com/~njas/doc/apsq.pdfwww.research.attneilsloane.com/~njas/doc/apsq.ps
_N. J. A. Sloane (njas(AT)research.att.com), _, Sep 29 2003
nonn,new
nonn
N. J. A. Sloane (njas, (AT)research.att.com), Sep 29 2003
J. C. Lagarias and N. J. A. Sloane, Approximate squaring (<a href="http://www.research.att.com/~njas/doc/apsq.pdf">pdf</a>, <a href="http://www.research.att.com/~njas/doc/apsq.ps">ps</a>), preprint, 2003Experimental Math., 13 (2004), 113-128.
nonn,new
nonn
c2 := proc(x, y) x*ceil(y); end; r := 5/3; ch := proc(x) local n, y; global r; y := c2(r, x); for n from 1 to 20 do if whattype(y) = 'integer' then RETURN([x, n, y]); else y := c2(r, y); fi; od: RETURN(['NULL', 'NULL', 'NULL']); end; [seq(ch(n)[3], n=1..100)];
nonn,new
nonn