OFFSET
1,2
COMMENTS
It is easy to see that every prime is in the sequence.
MAPLE
ispfree := proc(a, b)
local alow ;
alow := floor(a);
if nextprime(alow) < b then
false;
else
true;
end if;
end proc:
A218121c := proc(n)
option remember;
local k ;
if n = 1 then
return 1;
elif n = 2 then
return 5/2 ;
else
if ispfree(ithprime(n)/procname(n-1), ithprime(n+1)/procname(n-1)) then
return procname(n-1) ;
end if ;
for k from n by -1 do
if ispfree( ithprime(n)*ithprime(k)/ithprime(n+1), ithprime(k) )
and ithprime(n+1)/ithprime(k) > procname(n-1) then
return ithprime(n+1)/ithprime(k) ;
end if;
end do:
end if;
end proc:
A218123 := proc(n)
denom(A218121c(n)) ;
end proc: # R. J. Mathar, Dec 02 2012
KEYWORD
nonn,frac
AUTHOR
Vladimir Shevelev, Oct 21 2012
STATUS
approved