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!)
A233511 Replace the largest prime factor p>2 in n (if any) with the prime preceding p. 2
1, 2, 2, 4, 3, 4, 5, 8, 6, 6, 7, 8, 11, 10, 9, 16, 13, 12, 17, 12, 15, 14, 19, 16, 15, 22, 18, 20, 23, 18, 29, 32, 21, 26, 25, 24, 31, 34, 33, 24, 37, 30, 41, 28, 27, 38, 43, 32, 35, 30, 39, 44, 47, 36, 35, 40, 51, 46, 53, 36, 59, 58, 45, 64, 55, 42, 61, 52, 57, 50, 67, 48, 71, 62, 45 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This endomorphism a:N->N replaces the largest prime factor in n with the prime preceding it. For coherence, when there is no prime divisor or when the largest one is 2, a(n)=n. Some interesting properties: a(n)<=n; bigomega(a(n)) = bigomega(n); invariant elements of a(n) are the powers of 2 (A000079), all primes form a simple orbit terminating with 2 and containing no composite, 2^m terminates orbits of all numbers with m prime factors (with multiplicity); etc.
LINKS
EXAMPLE
a(28)=a(2*2*7)=2*2*5=20, a(20)=12, a(12)=8, a(8)=8.
MATHEMATICA
Table[Times @@ If[Last@ # > 2, ReplacePart[#, {-1} -> NextPrime[Last@ #, -1]], #] &@ Flatten@ Apply[Table[#1, {#2}] &, FactorInteger@ n, {1}], {n, 75}] (* Michael De Vlieger, Apr 11 2016 *)
PROG
(PARI) A233511(n)=local(p); p=LargestPrimeFactor(n); return
((n\p)*PreviousPrime(p)) \\ See the links for the auxiliary scripts
CROSSREFS
Cf. A000040 (primes), A000079 (powers of 2), A233570.
Sequence in context: A246796 A177235 A079707 * A205793 A178431 A233574
KEYWORD
nonn
AUTHOR
Stanislav Sykora, Dec 11 2013
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 21 10:20 EDT 2024. Contains 372735 sequences. (Running on oeis4.)