A075442 Slowest-growing sequence of primes whose reciprocals sum to 1.
2, 3, 7, 43, 1811, 654149, 27082315109, 153694141992520880899, 337110658273917297268061074384231117039, 8424197597064114319193772925959967322398440121059128471513803869133407474043
Offset: 1
References
- R. K. Guy, Unsolved Problems in Number Theory, D11.
Links
- Robert G. Wilson v, Table of n, a(n) for n = 1..14
- K. S. Brown, Odd, Greedy and Stubborn (Unit Fractions)
- Eric Weisstein's World of Mathematics, Egyptian Fraction
Programs
-
Mathematica
x=1; lst={}; Do[n=Ceiling[1/x]; If[PrimeQ[n], n++ ]; While[ !PrimeQ[n], n++ ]; x=x-1/n; AppendTo[lst, n], {10}]; lst a[n_] := a[n] = Block[{sm = Sum[1/(a[i]), {i, n - 1}]}, NextPrime[ Max[ a[n - 1], 1/(1 - sm)]]]; a[0] = 1; Array[a, 10] (* Robert G. Wilson v, Oct 28 2010 *)
-
PARI
a(n)=if(n<3, return(prime(n))); my(x=1.); for(i=1,n-1,x-=1/a(i)); nextprime(1/x) \\ Charles R Greathouse IV, Apr 29 2015
-
PARI
a_vector(N=10)= my(r=1, v=vector(N)); for(i=1, N, v[i]= nextprime(1+1/r); r-= 1/v[i]); v; \\ Ruud H.G. van Tol, Jul 29 2023
Comments