The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064802 a(n) = Min { m > n | prime factorizations of m and n differ in one factor only}, a(1) = 1. 3
1, 3, 5, 6, 7, 9, 11, 12, 15, 14, 13, 18, 17, 21, 21, 24, 19, 27, 23, 28, 33, 26, 29, 36, 35, 34, 45, 42, 31, 42, 37, 48, 39, 38, 49, 54, 41, 46, 51, 56, 43, 63, 47, 52, 63, 58, 53, 72, 77, 70, 57, 68, 59, 81, 65, 84, 69, 62, 61, 84, 67, 74, 99, 96, 85, 78, 71, 76, 87, 98, 73 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(A000040(k)) = A000040(k + 1).
A094457 gives next smaller comparable number, replacing the prime factor 2 with 1. - Michael De Vlieger, Jan 31 2015
From Peter Munn, Oct 13 2023: (Start)
For n > 1, a(n) is the smallest number m > n in the factorization neighborhood of n given by A127185(m, n) <= 2.
Usually, the minimum m is achieved by replacing the largest prime factor with the next prime. So through the first 60 terms about 1 term in 5 differs from the corresponding term of A253550, but this proportion drops to 611 of the first 10000 terms. Nevertheless, I see reasons (deriving from the distribution of the lengths of prime gaps) to doubt that the asymptotic density of {n : a(n) <> A253550(n)} is less than 611/10000.
(End)
LINKS
EXAMPLE
n = 20 = 2 * 2 * 5: as 2 * 3 * 5 > 2 * 2 * 7 = 28 we have a(20) = 28.
MATHEMATICA
f[n_] := Block[{g}, g[x_] := Flatten[Table[#1, {#2}] & @@@ FactorInteger@ x]; If[n == 1, 1, Min[Times @@ MapAt[NextPrime, g[n], #] & /@ Range[Length@ g[n]]]]]; Array[f, 71] (* Michael De Vlieger, Jan 31 2015 *)
CROSSREFS
Sequence in context: A050876 A346125 A320472 * A233570 A181766 A047584
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Oct 21 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 23 07:08 EDT 2024. Contains 372760 sequences. (Running on oeis4.)