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.

A248266 Egyptian fraction representation of sqrt(40) (A010494) using a greedy function.

This page as a plain text file.
%I A248266 #6 Oct 20 2019 21:30:15
%S A248266 6,4,14,320,571786,469930223859,260342286471149560589985,
%T A248266 110737149164265654381526929767261159120340941327,
%U A248266 13640751783742037895965317463353502238298025074840803034014381823166601709380037834476485770683
%N A248266 Egyptian fraction representation of sqrt(40) (A010494) using a greedy function.
%t A248266 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[ 40]]
%Y A248266 Egyptian fraction representations of the square roots: A006487, A224231, A248235-A248322.
%Y A248266 Egyptian fraction representations of the cube roots: A129702, A132480-A132574.
%K A248266 nonn
%O A248266 0,1
%A A248266 _Robert G. Wilson v_, Oct 04 2014