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!)
A079707 In prime factorization of n replace odd primes with their prime predecessor. 1
1, 2, 2, 4, 3, 4, 5, 8, 4, 6, 7, 8, 11, 10, 6, 16, 13, 8, 17, 12, 10, 14, 19, 16, 9, 22, 8, 20, 23, 12, 29, 32, 14, 26, 15, 16, 31, 34, 22, 24, 37, 20, 41, 28, 12, 38, 43, 32, 25, 18, 26, 44, 47, 16, 21, 40, 34, 46, 53, 24, 59, 58, 20, 64, 33, 28, 61, 52, 38, 30, 67, 32, 71, 62, 18 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Result after A061395(n)-1 iterations = A061142(n).
LINKS
FORMULA
a(n) <= n; a(n) < n iff n > 1 is odd; a(n) = n iff n = 2^k.
A001222(a(n)) = A001222(n).
For 3-smooth numbers: a(2^i * 3^j) = 2^(i+j).
Multiplicative with 2->2 and prime(k)->prime(k-1), k>1.
Sum_{k=1..n} a(k) ~ c * n^2, where c = (1/2) * Product_{p prime > 2} ((p^2-p)/(p^2 - prevprime(p))) = 0.3310558934..., where prevprime is A151799. - Amiram Eldar, Nov 29 2022
MATHEMATICA
f[p_, e_] := If[p == 2, 2, NextPrime[p, -1]]^e; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 29 2022 *)
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 1] == 2, f[i, 1], precprime(f[i, 1]-1))^f[i, 2]); } \\ Amiram Eldar, Nov 29 2022
CROSSREFS
Sequence in context: A171580 A246796 A177235 * A233511 A205793 A178431
KEYWORD
nonn,easy,mult
AUTHOR
Reinhard Zumkeller, Jan 31 2003
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 28 14:43 EDT 2024. Contains 372913 sequences. (Running on oeis4.)