OFFSET
1,1
COMMENTS
Note that a(1) = 3 and a(2) = 4 use -2 as the preceding prime. - Robert Israel, Nov 18 2015
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..1000
EXAMPLE
6th and 7th different values of LCM-s are 840 and 2520. Deviation of immediate preceding primes(839,2503) are:1 and 17. For n=1 LCM[1]=1 and prime=-2 is the largest with deviation 3. So the sequence starts with 3.
MAPLE
f:= proc(n) local m;
m:= ilcm($1..n);
if m < 3 then m + 2
else m - prevprime(m)
fi
end proc:
A000961:= select(t -> nops(numtheory:-factorset(t))<=1, [$1..1000]):
map(f, A000961); # Robert Israel, Nov 18 2015
PROG
(PARI) N=2; print1("3, 4"); for(n=3, 1e3, if(isprimepower(n, &p), N*=p; print1(", "N-precprime(N-1)))) \\ Charles R Greathouse IV, Nov 18 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 15 2000
STATUS
approved