OFFSET
1,2
FORMULA
a(2n) = prime(n) a(2n+1)= LCM of composite numbers between prime(n) and prime(n+1). a(1) = a(3) = 1 by choice.
MAPLE
A109920 := proc(n) local p; if n mod 2 = 0 then ithprime(n/2) ; elif n = 1 then 1 ; else p := ithprime((n-1)/2) ; lcm(seq(i, i=p+1..nextprime(p)-1)) ; fi ; end: for n from 1 to 80 do printf("%d, ", A109920(n)) ; od ; # R. J. Mathar, May 02 2007
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Jul 16 2005
EXTENSIONS
More terms from R. J. Mathar, May 02 2007
STATUS
approved