OFFSET
1,1
COMMENTS
a(n+1)-a(n) is divisible by 6 for n > 1.
EXAMPLE
First three terms of A181103 are 2, 3, 7, so a(3) = 2*3*7 = 42.
PROG
(Magma) A181103:=function(n); S:=[2, 3]; if n le 2 then return S[n]; end if; p:=5; for k in [3..n] do while not IsPrime(Abs(S[k-2]+S[k-1]-p)) do p:=NextPrime(p); end while; Append(~S, p); if k eq n then return p; end if; p:=NextPrime(p); end for; end function; A181737:=function(n); S:=[ A181103(k): k in [1..n] ]; T:=[ m eq 1 select S[1] else Self(m-1)*S[m]: m in [1..n] ]; return T[n]; end function; [ A181737(n): n in [1..20] ]; // Klaus Brockhaus, Dec 19 2010
CROSSREFS
Cf. A181103.
KEYWORD
nonn,easy
AUTHOR
STATUS
approved