login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A238898
Least number m such that lcm(1,2,3,...,m) = lcm(n,n+1,n+2,...,m).
1
1, 2, 4, 6, 8, 10, 10, 14, 16, 18, 18, 22, 22, 26, 26, 26, 32, 34, 34, 38, 38, 38, 38, 46, 46, 50, 50, 54, 54, 58, 58, 62, 64, 64, 64, 64, 64, 74, 74, 74, 74, 82, 82, 86, 86, 86, 86, 94, 94, 98, 98, 98, 98, 106, 106, 106, 106, 106, 106, 118, 118, 122, 122, 122
OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
Richard Stong, Twice a Prime Power is Enough (solution to Problem 11761), Amer. Math. Monthly, 123 (2016), pp. 402-403.
Bob Tomper, Problem 11761, Amer. Math. Monthly, 121 (2014), p. 266.
FORMULA
For n > 1, a(n) = 2*A031218(n-1) [Stong].
MATHEMATICA
Table[m = n; While[LCM @@ Range[m] != LCM @@ Range[n, m], m++]; m, {n, 100}]
f[n_] := If[n < 3, n, m = n - 1; While[ !PrimePowerQ@ m, m--]; 2m]; Array[f, 64] (* Robert G. Wilson v, Mar 06 2018 after Charles R. Greathouse IV *)
PROG
(PARI) a(n)=if(n>2, while(!isprimepower(n--), ); 2*n, n) \\ Charles R Greathouse IV, Jul 10 2015
CROSSREFS
Cf. A003418 (LCM), A031218.
Sequence in context: A079431 A081472 A097660 * A176995 A225793 A154809
KEYWORD
nonn
AUTHOR
T. D. Noe, Mar 13 2014
STATUS
approved