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.

A117116 Denominators of an Egyptian Fraction for phi = (1+sqrt(5))/2.

Original entry on oeis.org

1, 2, 9, 145, 37986, 2345721887, 26943815937041299094, 811625643619814151937413504618770581764, 697120590223140234675813998970770820981012350673738243594006422610850113672220
Offset: 0

Views

Author

Keywords

Comments

For each term, the largest possible unit fraction is used.

Examples

			a(4) = 145 because 1/145 is the largest unit fraction less than phi - 1/1 - 1/2 - 1/9.
		

Crossrefs

Cf. A001622.

Programs

  • Maple
    v[0]:=1: for n from 1 to 10 do x:=ceil(1/((1+sqrt(5))/2-add(1/v[i],i=0..n-1)));while not x::integer do Digits:=2*Digits; x:=ceil(1/((1+sqrt(5))/2-add(1/v[i],i=0..n-1))) od; v[n]:=x; od: seq(v[i],i=0..8);  # Paolo P. Lava, May 03 2018
  • Mathematica
    a = {1}; k = N[(Sqrt[5] - 1)/2, 1000]; Do[s = Ceiling[1/k]; AppendTo[a, s]; k = k - 1/s, {n, 1, 10}]; a (* Artur Jasinski, Sep 22 2008 *)
  • PARI
    x = (1 + sqrt(5))/2 - 1;
    f(x, k) = if(k<1, x, f(x, k - 1) - 1/n(x, k));
    n(x, k) = ceil(1/f(x, k - 1));
    for(k = 0, 9, print1(if(k==0, 1, n(x, k)), ", ")) \\ Indranil Ghosh, Mar 27 2017

Extensions

Edited by Don Reble, Apr 21 2006