|
|
A259255
|
|
With a(1) = 1, a(n) is the smallest number not already in the sequence such that -1 + Product_{i=1..n} a(i) is a square.
|
|
1
|
|
|
1, 2, 5, 17, 13, 97, 3077, 155333, 147223992353, 182758163483477540989, 634072602906397751091977058984828897557
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
PROG
|
(PARI) v=[1]; n=1; while(n<10^6, s=-1+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,hard,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|