OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..22 (terms < 10^1000)
MATHEMATICA
L = {1}; While[Length[L] < 22, p = Times @@ L; q = Ceiling[Sqrt[p + 1]]; While[ MemberQ[L, q^2 - p], q++]; AppendTo[L, q^2 - p]]; L (* Giovanni Resta, Jun 22 2015 *)
PROG
(PARI) v=[1]; n=1; while(n<10^7, s=n+prod(i=1, #v, v[i]); if(issquare(s)&&!vecsearch(vecsort(v), n), v=concat(v, n); n=0); n++); v
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Derek Orr, Jun 22 2015
EXTENSIONS
a(11)-a(14) from Giovanni Resta, Jun 22 2015
STATUS
approved