OFFSET
1,1
EXAMPLE
a(17) = 24. 24 has the prime factorization of 2^3 *3^1. So we want the smallest integer > 24 that is divisible by both 3 and 1, the exponents in the prime-factorization of 24. 27 is divisible by both 3 and 1, so a(18) = 27.
MAPLE
A141451 := proc(n) option remember ; local prev, ifs, a, gooda, e ; if n =1 then 2; else prev := procname(n-1) ; ifs := ifactors(prev)[2] ; for a from prev+1 do gooda := true; for e in ifs do if a mod op(2, e) <> 0 then gooda := false ; break; fi; od; if gooda then RETURN(a) ; fi; od: fi: end: for n from 1 to 120 do printf("%d, ", A141451(n)) ; od: # R. J. Mathar, Sep 12 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 07 2008
EXTENSIONS
Extended by R. J. Mathar, Sep 12 2008
STATUS
approved