cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A248271 Egyptian fraction representation of sqrt(45) (A010499) using a greedy function.

This page as a plain text file.
%I A248271 #6 Oct 20 2019 21:32:11
%S A248271 6,2,5,122,138674,32476589259,7827697016386517458238,
%T A248271 674742854143668103289252692160450020023615629,
%U A248271 480580099090725670530151893237450499682750267119621001128141465878491826900413350973083878
%N A248271 Egyptian fraction representation of sqrt(45) (A010499) using a greedy function.
%t A248271 Egyptian[nbr_] := Block[{lst = {IntegerPart[nbr]}, cons = N[ FractionalPart[ nbr], 2^20], denom, iter = 8}, While[ iter > 0, denom = Ceiling[ 1/cons]; AppendTo[ lst, denom]; cons -= 1/denom; iter--]; lst]; Egyptian[ Sqrt[ 45]]
%Y A248271 Egyptian fraction representations of the square roots: A006487, A224231, A248235-A248322.
%Y A248271 Egyptian fraction representations of the cube roots: A129702, A132480-A132574.
%K A248271 nonn
%O A248271 0,1
%A A248271 _Robert G. Wilson v_, Oct 04 2014