OFFSET
1,1
COMMENTS
REFERENCES
E. Trost, Primzahlen, Birkhäuser-Verlag, 1953, pages 30-31.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..206
P. A. Clement, Congruences for sets of primes, Amer. Math. Monthly, 56 (1949), 23-25.
EXAMPLE
a(2) = 1 + 3 + gcd(3*5, 4*(2! + 1) + 3) = 19.
MAPLE
A073829 := proc(n) n+4*((n-1)!+1) ; end proc:
A167053 := proc(n) option remember ; local aprev; if n = 1 then 3; else aprev := procname(n-1) ; 1+aprev+gcd(aprev*(aprev+2), A073829(aprev)) ; end if; end proc:
seq(A167053(n), n=1..60) ; # R. J. Mathar, Dec 17 2009
MATHEMATICA
A073829[n_] := 4((n-1)! + 1) + n;
a[1] = 3;
a[n_] := a[n] = 1 + a[n-1] + GCD[a[n-1] (a[n-1] + 2), A073829[a[n-1]]];
Array[a, 60] (* Jean-François Alcover, Mar 25 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Oct 27 2009
EXTENSIONS
Definition shortened and values from a(4) on replaced by R. J. Mathar, Dec 17 2009
STATUS
approved